Zouxxyy opened a new pull request, #8337:
URL: https://github.com/apache/paimon/pull/8337

   ### Purpose
   
   Support case-insensitive column matching when reading Parquet and ORC files.
   
   When `case-sensitive` is set to `false` at the catalog level, the format 
readers now resolve columns by case-insensitive name matching. This is useful 
for reading external data files whose column names differ only in case from the 
table schema (e.g. `Event_Name` in the file vs `event_name` in the table).
   
   Changes:
   - Add `caseSensitive()` to `FileFormatFactory.FormatContext` to propagate 
the catalog-level setting.
   - `FormatReadBuilder`: merge catalog-level `case-sensitive` into format 
options so it flows to readers.
   - **Parquet**: `ParquetReaderFactory` performs case-insensitive field 
matching (top-level and nested), with ambiguity detection for duplicate 
case-variant fields. `ParquetReaderUtil` mirrors this for nested column IO 
lookup.
   - **ORC**: propagate `IS_SCHEMA_EVOLUTION_CASE_SENSITIVE` to the ORC reader 
configuration.
   
   ### Tests
   
   - `ParquetCaseInsensitiveReadTest`: case-insensitive matching, 
case-sensitive returns null, nested structs, ambiguous duplicate detection.
   - `OrcCaseInsensitiveReadTest`: case-insensitive column matching via ORC 
schema evolution.


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