Skip to content

Commit

Permalink
Remove deprecated API usage in KuduTableProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
lzeiming authored and Praveen2112 committed May 18, 2021
1 parent 68ea403 commit 6d0d774
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -330,7 +330,7 @@ public static Map<String, Object> toMap(KuduTable table)
private static List<RangePartition> getRangePartitionList(KuduTable table, long deadline)
{
List<RangePartition> rangePartitions = new ArrayList<>();
if (!table.getPartitionSchema().getRangeSchema().getColumns().isEmpty()) {
if (!table.getPartitionSchema().getRangeSchema().getColumnIds().isEmpty()) {
try {
for (LocatedTablet tablet : table.getTabletsLocations(deadline)) {
Partition partition = tablet.getPartition();
Expand Down Expand Up @@ -365,7 +365,7 @@ private static RangeBoundValue buildRangePartitionBound(KuduTable table, byte[]
Schema schema = table.getSchema();
PartitionSchema partitionSchema = table.getPartitionSchema();
PartitionSchema.RangeSchema rangeSchema = partitionSchema.getRangeSchema();
List<Integer> rangeColumns = rangeSchema.getColumns();
List<Integer> rangeColumns = rangeSchema.getColumnIds();

int numColumns = rangeColumns.size();

Expand Down Expand Up @@ -427,7 +427,7 @@ public static PartitionDesign getPartitionDesign(KuduTable table)
}).collect(toImmutableList());
partitionDesign.setHash(hashPartitions);

List<Integer> rangeColumns = partitionSchema.getRangeSchema().getColumns();
List<Integer> rangeColumns = partitionSchema.getRangeSchema().getColumnIds();
if (!rangeColumns.isEmpty()) {
RangePartitionDefinition definition = new RangePartitionDefinition();
definition.setColumns(rangeColumns.stream()
Expand Down

0 comments on commit 6d0d774

Please sign in to comment.