saitharun15 commented on code in PR #11615: URL: https://github.com/apache/iceberg/pull/11615#discussion_r1852219386
########## spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/SparkReadConf.java: ########## @@ -355,4 +355,21 @@ public boolean reportColumnStats() { .defaultValue(SparkSQLProperties.REPORT_COLUMN_STATS_DEFAULT) .parse(); } + + public boolean deriveStatsFromManifestSessionConf() { + return confParser + .booleanConf() + .sessionConf(SparkSQLProperties.DERIVE_STATS_FROM_MANIFEST_ENABLED) + .defaultValue(SparkSQLProperties.DERIVE_STATS_FROM_MANIFEST_ENABLED_DEFAULT) + .parse(); + } + + public boolean deriveStatsFromManifestTableProperty() { + return confParser + .booleanConf() + .option(SparkReadOptions.DERIVE_STATS_FROM_MANIFEST_ENABLED) + .tableProperty(TableProperties.DERIVE_STATS_FROM_MANIFEST_ENABLED) + .defaultValue(TableProperties.DERIVE_STATS_FROM_MANIFEST_ENABLED_DEFAULT) + .parse(); + } Review Comment: This table-level property takes precedence over the session configuration when it is turned off, enabling users to derive statistics only for a specific table. -- 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: issues-unsubscr...@iceberg.apache.org 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