aokolnychyi commented on a change in pull request #3400:
URL: https://github.com/apache/iceberg/pull/3400#discussion_r737831634



##########
File path: 
spark/v3.2/spark/src/main/java/org/apache/iceberg/spark/SparkConfParser.java
##########
@@ -34,7 +35,8 @@
   private final Map<String, String> options;
 
   SparkConfParser(SparkSession spark, Table table, Map<String, String> 
options) {
-    this.properties = table.properties();
+    // use table ops as metadata tables have empty properties
+    this.properties = ((HasTableOperations) 
table).operations().current().properties();

Review comment:
       At this point, our metadata tables report empty properties. When we have 
a metadata scan and trying to determine the metadata split size, we need to 
access the properties set in the main table. We can either report the original 
table properties from metadata tables or we can do something similar to what I 
did here.
   




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to