Help Center>
MapReduce Service>
Component Operation Guide (LTS)>
Using Hudi>
Hudi Schema Evolution>
SparkSQL Schema Evolution and Syntax Description>
Enabling Schema Evolution
Updated on 2024-05-29 GMT+08:00
Enabling Schema Evolution
![](https://support.huaweicloud.com/intl/en-us/cmpntguide-lts-mrs/public_sys-resources/caution_3.0-en-us.png)
- Schema evolution cannot be disabled once being enabled.
- This section applies only to MRS 3.2.0 and earlier versions.
- To use spark-beeline, log in to FusionInsight Manager, choose Cluster > Services > Spark2x, and click the Configurations tab then the All Configurations sub-tab.
Search for spark.sql.extensions in the search box and change its value of JDBCServer to org.apache.spark.sql.hive.FISparkSessionExtension,org.apache.spark.sql.hudi.HoodieSparkSessionExtension,org.apache.spark.sql.hive.CarbonInternalExtensions.
- For SQL operations, run the following command before running any SQL statements:
set hoodie.schema.evolution.enable=true
- For API calls, specify the following parameter in DataFrame options:
hoodie.schema.evolution.enable -> true
Parent topic: SparkSQL Schema Evolution and Syntax Description
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