wombatu-kun opened a new pull request, #18481:
URL: https://github.com/apache/hudi/pull/18481

   ### Describe the issue this Pull Request addresses
   
   Closes https://github.com/apache/hudi/issues/18451
   
   ### Summary and Changelog
   
   - Add guards to prevent non-Spark engines (Flink, Hive, Presto, Trino) from 
reading or writing Lance-format Hudi tables. Lance is Spark-only for 1.2.
   - Guards at multiple levels:
     - **Config-time (Flink)**: `HoodieTableFactory` rejects Lance on both 
source and sink; `HoodieHiveCatalog` rejects on table creation
     - **Read-time (Flink)**: `FlinkRowDataReaderContext` rejects Lance files
     - **Read-time (Hive)**: `HiveHoodieReaderContext` rejects Lance files early
     - **Factory-level (all engines)**: Base `HoodieFileReaderFactory` /
       `HoodieFileWriterFactory` throw for Lance; only Spark overrides to 
support it
   - Centralized error message `LANCE_SPARK_ONLY_ERROR_MSG` in 
`HoodieFileFormat`
   
   ### Impact
   
   Ensuring that for now users can only read/write lance base files with Spark 
until we add this support.
   
   ### Risk Level
   
   none
   
   ### Documentation Update
   
   none
   
   ### Contributor's checklist
   
   - [ ] Read through [contributor's 
guide](https://hudi.apache.org/contribute/how-to-contribute)
   - [ ] Enough context is provided in the sections above
   - [ ] Adequate tests were added if applicable
   


-- 
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