You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Jordan Birdsell (JIRA)" <ji...@apache.org> on 2016/10/22 02:22:58 UTC
[jira] [Updated] (KUDU-1722) Range Partition Failure on
UNIXTIME_MICROS using non-default bound types
[ https://issues.apache.org/jira/browse/KUDU-1722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jordan Birdsell updated KUDU-1722:
----------------------------------
Description:
Errors are returned when attempting to add range partition bounds for a unixtime_micros value:
{code}
Error creating table type-test on the master: invalid type int64 provided for column 'unixtime_micros_val' (expected timestamp)
{code}
This is happening because the logic to convert the values to make the LowerBound Inclusive and UpperBound Exclusive causes the unixtime_micros value to be converted to an int64. https://github.com/cloudera/kudu/blob/09bf03401e2ff6b1b2c041a2e94268ec5351d7b0/src/kudu/common/partition.cc#L1015
Since the partial row does not cast types, this causes the error.
was:
Errors are returned when attempting to add range partition bounds for a unixtime_micros value:
{code:python}
Error creating table type-test on the master: invalid type int64 provided for column 'unixtime_micros_val' (expected timestamp)
{code}
This is happening because the logic to convert the values to make the LowerBound Inclusive and UpperBound Exclusive causes the unixtime_micros value to be converted to an int64. https://github.com/cloudera/kudu/blob/09bf03401e2ff6b1b2c041a2e94268ec5351d7b0/src/kudu/common/partition.cc#L1015
Since the partial row does not cast types, this causes the error.
> Range Partition Failure on UNIXTIME_MICROS using non-default bound types
> ------------------------------------------------------------------------
>
> Key: KUDU-1722
> URL: https://issues.apache.org/jira/browse/KUDU-1722
> Project: Kudu
> Issue Type: Bug
> Affects Versions: 1.0.1
> Reporter: Jordan Birdsell
> Priority: Minor
>
> Errors are returned when attempting to add range partition bounds for a unixtime_micros value:
> {code}
> Error creating table type-test on the master: invalid type int64 provided for column 'unixtime_micros_val' (expected timestamp)
> {code}
> This is happening because the logic to convert the values to make the LowerBound Inclusive and UpperBound Exclusive causes the unixtime_micros value to be converted to an int64. https://github.com/cloudera/kudu/blob/09bf03401e2ff6b1b2c041a2e94268ec5351d7b0/src/kudu/common/partition.cc#L1015
> Since the partial row does not cast types, this causes the error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)