xushiyan commented on code in PR #6409:
URL: https://github.com/apache/hudi/pull/6409#discussion_r954466051
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/catalyst/catalog/HoodieCatalogTable.scala:
##########
@@ -129,7 +129,17 @@ class HoodieCatalogTable(val spark: SparkSession, var
table: CatalogTable) exten
/**
* Table schema
*/
- lazy val tableSchema: StructType = table.schema
+ lazy val tableSchema: StructType = if (table.schema.nonEmpty) {
+ table.schema
+ } else {
+ val schemaFromMetaOpt = loadTableSchemaByMetaClient()
Review Comment:
this already handled in `parseSchemaAndConfigs()` , isn't it?
--
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]