- 
                Notifications
    
You must be signed in to change notification settings  - Fork 514
 
fix: [iceberg] support avro union types in custom mapping #2979
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
          
 Hello @rmannibucau , I would like to understand the situation this PR aims to address, and what are the main differences compared to that test case.  | 
    
| 
           @Gezi-lzq you can remove the fix in the adapter and see how it fails. The diff is that existing test uses a struct which has a particular handling and my test a "primitive" which was not unwrapping the union and therefore not handling the logical type properly  | 
    
| 
           Good catch! @rmannibucau  It seems we indeed missed handling a scenario for the timestamp type here. automq/core/src/main/java/kafka/automq/table/binder/AvroValueAdapter.java Lines 97 to 100 in 18340f2 
 I believe the correct fix would be to add the condition  automq/core/src/main/java/kafka/automq/table/binder/RecordBinder.java Lines 159 to 161 in 18340f2 
  | 
    
| 
           @Gezi-lzq sounds good, do you take it over or do you want me to update the pr next week? Happy to close this pr while a new release works for unions ;)? (Im afk until next week)  | 
    
          
 Appreciate you pointing this out! Your work here definitely shows we need better test coverage for Union types.  | 
    
More detailed description of your change,
if necessary. The PR title and PR message become
the squashed commit message, so use a separate
comment to ping reviewers.
Summary of testing strategy (including rationale)
for the feature or bug fix. Unit and/or integration
tests are expected for any behaviour change and
system tests should be considered for larger changes.
Committer Checklist (excluded from commit message)