You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "nsivabalan (via GitHub)" <gi...@apache.org> on 2026/06/25 02:41:24 UTC

Re: [I] Create hive table from existing hoodie Table failed when the table schema is not defined [hudi]

nsivabalan commented on issue #15341:
URL: https://github.com/apache/hudi/issues/15341#issuecomment-4795353433

   This appears to be fixed on current `master`. `HoodieCatalogTable.tableSchema` ([HoodieCatalogTable.scala#L152-L162](https://github.com/apache/hudi/blob/master/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/catalyst/catalog/HoodieCatalogTable.scala#L152-L162)) loads the schema from the Hudi meta directory when the user-defined schema is empty, and `CreateHoodieTableCommand` then passes that resolved schema to the metastore. The exact `CREATE TABLE <t> USING hudi LOCATION '<path>'` (no schema specified) flow is exercised by `Test Create Table From Existing Hoodie Table` in `TestCreateTable.scala`. The handling was introduced in [HUDI-3198 / #4584](https://github.com/apache/hudi/pull/4584) (commit 5e0171a5ee3b). Closing as fixed — please reopen with a current-version repro if you still hit this.


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org