0AyanamiRei opened a new pull request, #67411:
URL: https://github.com/apache/doris/pull/67411

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: None
   
   Problem Summary: JSON schema inference lowercased field names before 
creating the table-valued function schema, while JSON readers match object keys 
case-sensitively. Uppercase keys therefore appeared as queryable lowercase 
columns but were silently materialized as NULL. Preserve the inferred key 
casing for JSON only, while retaining case-insensitive duplicate detection and 
the existing lowercase behavior for other file formats.
   
   ### Release note
   
   JSON table-valued functions now read inferred mixed-case and uppercase keys 
without silently producing NULL values.
   
   ### Check List (For Author)
   
   - Test: Regression test and manual tests
       - Regression test: `test_json_uppercase_keys` (raw and jsonpaths control)
       - Manual test: File Scanner V2, legacy scanner, and `http_stream` 
returned the two expected rows
       - Manual compatibility test: CSV inferred column names remained lowercase
   - Behavior changed: Yes. Inferred JSON field names preserve source casing.
   - Does this need documentation: No


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to