openinx commented on a change in pull request #1978:
URL: https://github.com/apache/iceberg/pull/1978#discussion_r549600016



##########
File path: flink/src/main/java/org/apache/iceberg/flink/FlinkCatalog.java
##########
@@ -359,6 +363,14 @@ public void createTable(ObjectPath tablePath, 
CatalogBaseTable table, boolean ig
     PartitionSpec spec = toPartitionSpec(((CatalogTable) 
table).getPartitionKeys(), icebergSchema);
 
     ImmutableMap.Builder<String, String> properties = ImmutableMap.builder();
+
+    // Set the equality field columns.
+    List<String> equalityFieldColumns = toEqualityColumns(table.getSchema());
+    if (!equalityFieldColumns.isEmpty()) {
+      properties.put(TableProperties.EQUALITY_FIELD_COLUMNS,
+          org.apache.commons.lang.StringUtils.join(equalityFieldColumns, ","));

Review comment:
       Sounds great.  I did not realize that there's a `Joiner` in Guava.  
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to