Alexey Serbin has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/18791 )

Change subject: WIP KUDU-2671: Restore custom hash schemas properly
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/18791/1/java/kudu-backup-common/src/main/scala/org/apache/kudu/backup/TableMetadata.scala
File 
java/kudu-backup-common/src/main/scala/org/apache/kudu/backup/TableMetadata.scala:

http://gerrit.cloudera.org:8080/#/c/18791/1/java/kudu-backup-common/src/main/scala/org/apache/kudu/backup/TableMetadata.scala@385
PS1, Line 385:     val schema = getKuduSchema(metadata)
             :     
metadata.getPartitions.getRangeAndHashPartitionsList.asScala.map { rhp =>
             :       val lower = 
getPartialRow(rhp.getBounds.getLowerBoundsList.asScala, schema)
             :       val upper = 
getPartialRow(rhp.getBounds.getUpperBoundsList.asScala, schema)
             :       val currentRange = new RangePartitionWithCustomHashSchema(
             :         lower,
             :         upper,
             :         RangePartitionBound.INCLUSIVE_BOUND,
             :         RangePartitionBound.EXCLUSIVE_BOUND)
             :       rhp.getHashPartitionsList.asScala.map { hp =>
             :         currentRange.addHashPartitions(hp.getColumnNamesList, 
hp.getNumBuckets, hp.getSeed)
             :       }
             :       options.addRangePartition(currentRange)
             :     }
I'm not sure I understand how this affects the code in 
createTableRangePartitionByRangePartition() from 
src/main/scala/org/apache/kudu/backup/KuduRestore.scala

Is it necessary to modify the code in 
createTableRangePartitionByRangePartition() correspondingly, so it calls 
options.addRangePartition() with proper hash schema for ranges having custom 
hash schemas?



--
To view, visit http://gerrit.cloudera.org:8080/18791
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I8c28b306f2b630a609231a8fb2a5f5652b028d8e
Gerrit-Change-Number: 18791
Gerrit-PatchSet: 1
Gerrit-Owner: Mahesh Reddy <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 27 Jul 2022 20:04:14 +0000
Gerrit-HasComments: Yes

Reply via email to