Skip to content

Conversation

@Gezi-lzq
Copy link
Contributor

@Gezi-lzq Gezi-lzq commented Nov 3, 2025

Related to #2979

@Gezi-lzq Gezi-lzq requested review from Copilot and superhx and removed request for 1sonofqiu, superhx and woshigaopp November 3, 2025 02:21
@Gezi-lzq Gezi-lzq changed the title feat(timestamp): enhance RecordBinder to support TIMESTAMP and TIME types in union handling feat(timestamp): enhance RecordBinder to support TIMESTAMP types in union handling Nov 3, 2025
@Gezi-lzq Gezi-lzq changed the title feat(timestamp): enhance RecordBinder to support TIMESTAMP types in union handling feat(timestamp): enhance RecordBinder to support TIMESTAMP and TIME types in union handling Nov 3, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors test code to improve test coverage and maintainability by introducing helper methods for comprehensive round-trip testing of Avro-to-Iceberg conversions, and fixes a bug in handling optional timestamp and time fields.

  • Introduced assertFieldRoundTrips helper method to test both direct and optional (union with null) field conversions
  • Added support for resolving union types in TIMESTAMP and TIME fields in RecordBinder
  • Updated field count expectations to account for optional field handling

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
AvroRecordBinderTest.java Refactored test methods to use assertFieldRoundTrips helper for comprehensive testing of both direct and optional fields; added new test for union field counting; updated field count assertions
RecordBinder.java Extended union resolution logic to include TIMESTAMP and TIME types alongside existing MAP and LIST types

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Gezi-lzq Gezi-lzq enabled auto-merge (squash) November 3, 2025 03:01
@Gezi-lzq Gezi-lzq changed the title feat(timestamp): enhance RecordBinder to support TIMESTAMP and TIME types in union handling fix(binder): enhance RecordBinder to support TIMESTAMP and TIME types in union handling Nov 3, 2025
@Gezi-lzq Gezi-lzq merged commit 1c620eb into main Nov 3, 2025
8 checks passed
@Gezi-lzq Gezi-lzq deleted the fix/timestamp-union branch November 3, 2025 03:03
Gezi-lzq added a commit that referenced this pull request Nov 4, 2025
…ypes in union handling (#2981)

* feat(timestamp): enhance RecordBinder to support TIMESTAMP and TIME types in union handling

* test(avro): add missing import for AvroRecordBinderTest
Gezi-lzq added a commit that referenced this pull request Nov 4, 2025
…ypes in union handling (#2981) (#2988)

* feat(timestamp): enhance RecordBinder to support TIMESTAMP and TIME types in union handling

* test(avro): add missing import for AvroRecordBinderTest
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.

3 participants