kudu-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "helifu" <hzhel...@corp.netease.com>
Subject 答复: Single value range partitions using the Java API
Date Wed, 20 Feb 2019 11:48:25 GMT

It seems the range should be:
  [(123, 'abc'), (123, 'abc\0'))
        ^             ^
        |             |
   lower_bound    upper_bound

And the function 'incrementColumn()' here may help:

2018-10-24 15:17:53

发件人: user-return-1611-hzhelifu=corp.netease.com@kudu.apache.org <user-return-1611-hzhelifu=corp.netease.com@kudu.apache.org>
代表 Nabeelah Harris
发送时间: 2019年2月20日 18:27
收件人: user@kudu.apache.org
主题: Single value range partitions using the Java API

Hi there

Using Impala to interact with Kudu, one is able to add range partitions with single values,
i.e 'VALUE = (123, “abc”)'. How would I go about creating the same type of range partition
using the Java API?

When adding a new range partition, the Java API for 'AlterTableOptions.addRangePartition'
expects lower and upper bound ‘PartialRow’ objects, where the upper bound must explicitly
be greater than the lower bound. 


View raw message