I got a warning by setting spark.sql.optimizer.metadataOnly to be true. I use this property mainly for querying partition columns without reading the parquet fi
spark.sql.optimizer.metadataOnly