RussellSpitzer commented on code in PR #12327: URL: https://github.com/apache/iceberg/pull/12327#discussion_r1968561130
########## spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/Spark3Util.java: ########## @@ -858,6 +858,23 @@ public static String quotedFullIdentifier(String catalogName, Identifier identif .quoted(); } + public static org.apache.spark.sql.execution.datasources.PartitionSpec getInferredSpec( + SparkSession spark, Path rootPath) { + FileStatusCache fileStatusCache = FileStatusCache.getOrCreate(spark); + InMemoryFileIndex fileIndex = + new InMemoryFileIndex( Review Comment: ... I think this is ok .. I worry a little bit about making caches that we never clear but I don't think we have a safe way of invalidating this cache either. -- 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