nsivabalan commented on code in PR #19536:
URL: https://github.com/apache/hudi/pull/19536#discussion_r3738164701
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieBaseRelation.scala:
##########
@@ -174,7 +174,11 @@ abstract class HoodieBaseRelation(val sqlContext:
SQLContext,
} getOrElse {
Try(schemaResolver.getTableSchema) match {
case Success(schema) => schema
- case Failure(e) => throw e
+ case Failure(_) =>
+ // Schema not found on the dataset, so fetching schema from HMS.
+ logWarning(s"Schema not found on the dataset for $tableName, so
fetching schema from HMS.")
+ val catalogTable =
sparkSession.sessionState.catalog.externalCatalog.getTable(metaClient.getDbName,
metaClient.getTableName)
Review Comment:
if the table does not exist in the catalog, we should throw appropriate msg.
--
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]