Skip to content

Make datasource option keys case-insensitive - #73

Draft
wenjie-zhang-glean wants to merge 1 commit into
linkedin:masterfrom
wenjie-zhang-glean:fix-case-insensitive-options
Draft

Make datasource option keys case-insensitive#73
wenjie-zhang-glean wants to merge 1 commit into
linkedin:masterfrom
wenjie-zhang-glean:fix-case-insensitive-options

Conversation

@wenjie-zhang-glean

Copy link
Copy Markdown

Summary

  • Resolve the recordType datasource option case-insensitively during schema inference, reads, and writes.
  • Preserve the existing exact-key behavior and the Example default.
  • Add unit coverage and an end-to-end ByteArray regression test using the lower-cased recordtype key.

Motivation

Spark datasource option keys are case-insensitive, and newer Spark runtimes can pass normalized lower-case keys to V1 FileFormat implementations. The connector previously looked up only the exact recordType spelling, so a supplied recordtype=ByteArray option silently fell back to Example.

Testing

  • mvn -Pscala-2.12 -Dscala.maven.version=4.9.2 clean test (37 tests passed)
  • mvn -Pscala-2.13 -Dscala.maven.version=4.9.2 clean test (37 tests passed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant