You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "thswlsqls (via GitHub)" <gi...@apache.org> on 2026/06/22 05:47:46 UTC
[PR] Kafka Connect: Fix case-insensitive field lookup with name mapping [iceberg]
thswlsqls opened a new pull request, #16915:
URL: https://github.com/apache/iceberg/pull/16915
Closes #15392
## Summary
- With a name mapping configured, `RecordConverter.lookupStructField` ignored `iceberg.tables.schema-case-insensitive`: fields differing only in case failed to match, and schema evolution then created duplicate columns.
- The `nameMapping == null` branch already handles this via `schema.caseInsensitiveField`; the name-mapping path did not.
- Fix: normalize the name map keys on both `put` (`createStructNameMap`) and `get` (`lookupStructField`) to lower case with `Locale.ROOT` when case-insensitive.
- Revives the approach from the stale-closed #15393 (credit to @annurahar).
## Testing done
- Added `TestRecordConverter#testNameMappingWithDifferentCaseAlias`, parameterized over case-insensitive true/false: an exact-case alias always matches; a different-case input matches only when case-insensitive.
- Regression: with the test in place but the fix reverted, the `caseInsensitive = true` case fails (expected 200, got null); with the fix it passes.
- `./gradlew :iceberg-kafka-connect:iceberg-kafka-connect:check` passed; `TestRecordConverter` runs 51 tests, 0 failures.
- Module is not a REVAPI target, so no revapi run.
---
**AI Disclosure**
- Model: Claude Opus 4.8
- Platform/Tool: Claude Code
- Human Oversight: human reviewed before submission
- Prompt Summary: Implement the case-insensitive name-mapping lookup fix in RecordConverter, add a regression test, and verify via the module check task.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Kafka Connect: Fix case-insensitive field lookup with name mapping [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #16915:
URL: https://github.com/apache/iceberg/pull/16915#issuecomment-5389278749
This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Kafka Connect: Fix case-insensitive field lookup with name mapping [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #16915: Kafka Connect: Fix case-insensitive field lookup with name mapping
URL: https://github.com/apache/iceberg/pull/16915
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Kafka Connect: Fix case-insensitive field lookup with name mapping [iceberg]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #16915:
URL: https://github.com/apache/iceberg/pull/16915#issuecomment-5310409280
This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org