It doesn't seem that I am able to use  'incrementColumn()' since it's not
public. I did however go ahead and add a suffix of 'Character.MAX_VALUE' to
the string, and now the single value range partitions are being created
perfectly.

Thank you!



On Wed, Feb 20, 2019 at 1:48 PM helifu <[email protected]> wrote:

> 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=
>
>

-- 
Nabeelah Harris
[email protected] |
https://impact.com
<https://www.linkedin.com/company/impact-martech/>
<https://www.facebook.com/ImpactMarTech/>
<https://twitter.com/impactmartech>
<https://www.youtube.com/c/impactmartech>

Reply via email to