Help Center/
MapReduce Service/
Component Operation Guide (LTS) (Ankara Region)/
Using Spark/
Spark FAQ/
What Should I Do If Statistics of Hudi or Hive Tables Created Using Spark SQLs Are Empty Before Data Is Inserted?
Updated on 2024-11-29 GMT+08:00
What Should I Do If Statistics of Hudi or Hive Tables Created Using Spark SQLs Are Empty Before Data Is Inserted?
Symptom
When Spark SQLs are used to create Hudi or Hive tables, the table statistics are empty before data is inserted.
Solution
You can use either of the following methods to collect the statistics:
- Run the analyze command to trigger statistics collection. If no data is inserted, run the desc formatted table_name command to check whether the value of totalsize is 0 after the analyze command is executed.
- Set spark.sql.statistics.size.autoUpdate.enabled to true and insert data. Statistics collection will be triggered in the background.
Parent topic: Spark FAQ
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot