xiarixiaoyao commented on code in PR #5791:
URL: https://github.com/apache/hudi/pull/5791#discussion_r892051496


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieBaseRelation.scala:
##########
@@ -509,12 +510,22 @@ abstract class HoodieBaseRelation(val sqlContext: 
SQLContext,
     StructType(dataStructSchema.filterNot(f => 
partitionColumns.contains(f.name)))
 
   private def isSchemaEvolutionEnabled = {
+    // Auto set schema evolution
+    // Wrapped as a function, this function is triggered only when called, 
minimize the time cosumption.
+    def detectSchemaEvolution(): Boolean = {

Review Comment:
   I'm sorry we might not be able to do that,
    we need metaclient to  detect schema evolution, if we create metaclient in 
HoodieCatalog::loadTable, it will be time cost



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to