TEOTEO520 commented on code in PR #7789:
URL: https://github.com/apache/gravitino/pull/7789#discussion_r2300355273
##########
catalogs/hive-metastore-common/src/main/java/org/apache/gravitino/hive/converter/HiveTableConverter.java:
##########
@@ -88,6 +88,10 @@ public static Transform[] getPartitioning(Table table) {
BUILDER extends BaseColumn.BaseColumnBuilder<BUILDER, COLUMN>,
COLUMN extends BaseColumn>
Column[] getColumns(Table table, BUILDER columnBuilder) {
StorageDescriptor sd = table.getSd();
+ // Collect column names from sd.getCols() to check for duplicates
+ java.util.Set<String> columnNames =
+ sd.getCols().stream().map(f ->
f.getName()).collect(java.util.stream.Collectors.toSet());
Review Comment:
done, thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]