wangyum opened a new pull request #24551: [SPARK-27655][SQL] Persistent the table statistics to metadata after fall back to hdfs URL: https://github.com/apache/spark/pull/24551 ## What changes were proposed in this pull request? It's a real case. We need to join many times from different tables, but the statistics of some tables are incorrect. So this job need 43 min. It only need 3.7 min after `set spark.sql.statistics.persistentStatsAfterFallBack=true`. But the newly calculated statistics just for this SparkSession. So we need to recalculate statistics in the next time we start a new SparkSession. This PR adds a switch to start a new thread to persistent statistics to the Hive metastore. This is our job: - default(spark.sql.statistics.persistentStatsAfterFallBack=false):  - spark.sql.statistics.persistentStatsAfterFallBack=true:  ## How was this patch tested? unit tests and manual tests
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
