Mahesh Reddy has posted comments on this change. ( http://gerrit.cloudera.org:8080/18582 )
Change subject: KUDU-2671 refactor PartitionSchema::CreatePartitions() ...................................................................... Patch Set 5: (4 comments) http://gerrit.cloudera.org:8080/#/c/18582/5/src/kudu/common/partition.h File src/kudu/common/partition.h: http://gerrit.cloudera.org:8080/#/c/18582/5/src/kudu/common/partition.h@332 PS5, Line 332: 'ranges_with_hash_schemas nit: add last underscore so 'ranges_with_hash_schemas_'. Maybe add something to signify that it's a field of PartitionSchema as well. http://gerrit.cloudera.org:8080/#/c/18582/5/src/kudu/common/partition.cc File src/kudu/common/partition.cc: http://gerrit.cloudera.org:8080/#/c/18582/5/src/kudu/common/partition.cc@531 PS5, Line 531: hash_schema_} Should we make a similar change in EncodeRangeBounds for the ranges without custom hash schemas instead of relying on empty vectors? http://gerrit.cloudera.org:8080/#/c/18582/5/src/kudu/master/catalog_manager.cc File src/kudu/master/catalog_manager.cc: http://gerrit.cloudera.org:8080/#/c/18582/5/src/kudu/master/catalog_manager.cc@1931 PS5, Line 1931: const auto ranges_with_hash_schemas_size = : partition_schema.ranges_with_hash_schemas().size() nit: Any reason why this isn't outside of the if condition? I understand the scope is only within the if condition but just asking since it caught my eye as it looks odd. http://gerrit.cloudera.org:8080/#/c/18582/5/src/kudu/master/catalog_manager.cc@2670 PS5, Line 2670: RETURN_NOT_OK(partition_schema.CreatePartitions( : {}, {{ *ops[0].split_row, *ops[1].split_row }}, schema, &partitions)); How does adding a range with a custom hash schema work now? It's unclear how the partitions will be created for a new range with a custom hash schema as it doesn't seem like there's a way to propagate the custom hash schema to CreatePartitions() with these changes. -- To view, visit http://gerrit.cloudera.org:8080/18582 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I5bac1f8ee349577e2f912530a28776415ed0a5b0 Gerrit-Change-Number: 18582 Gerrit-PatchSet: 5 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Abhishek Chennaka <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Attila Bukor <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Mahesh Reddy <[email protected]> Gerrit-Reviewer: Tidy Bot (241) Gerrit-Comment-Date: Fri, 03 Jun 2022 22:32:36 +0000 Gerrit-HasComments: Yes
