Hi,
It seems the range should be:
[(123, 'abc'), (123, 'abc\0'))
^ ^
| |
lower_bound upper_bound
And the function 'incrementColumn()' here may help:
https://github.com/apache/kudu/blob/3e3bd1ccbc2b4b070c733b36b1971de63977428b/java/kudu-client/src/main/java/org/apache/kudu/client/PartialRow.java#L1311
何李夫
2018-10-24 15:17:53
-----邮件原件-----
发件人: [email protected]
<[email protected]> 代表 Nabeelah Harris
发送时间: 2019年2月20日 18:27
收件人: [email protected]
主题: 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.
Nabeelah=