Skip to content
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

fix(iceberg): fix map - arrow convert & fix sink nested types to iceberg #18463

Merged
merged 5 commits into from
Sep 11, 2024

Conversation

xxchan
Copy link
Member

@xxchan xxchan commented Sep 9, 2024

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added test labels as necessary. See details.
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

@github-actions github-actions bot added the type/fix Bug fix label Sep 9, 2024
@graphite-app graphite-app bot requested a review from a team September 9, 2024 07:32
@xxchan xxchan requested a review from a team as a code owner September 10, 2024 11:37
@xxchan xxchan requested a review from fuyufjh September 10, 2024 11:37
@xxchan xxchan changed the title fix: fix map - arrow convert fix: fix map - arrow convert & fix sink nested types to iceberg Sep 10, 2024
Signed-off-by: xxchan <[email protected]>
@xxchan xxchan force-pushed the xxchan/written-baboon branch from 2366134 to 6eef1cf Compare September 10, 2024 11:46
Signed-off-by: xxchan <[email protected]>
@xxchan xxchan force-pushed the xxchan/written-baboon branch from 7f5f492 to d4b685a Compare September 10, 2024 13:52
Signed-off-by: xxchan <[email protected]>
@xxchan xxchan force-pushed the xxchan/written-baboon branch from d4b685a to 76a232d Compare September 10, 2024 13:53
@xxchan xxchan requested a review from chenzl25 September 10, 2024 13:54
Copy link
Contributor

@chenzl25 chenzl25 left a comment

Choose a reason for hiding this comment

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

Great!

//
// map: The standard name in arrow is "entries", "key", "value".
// in iceberg-rs, it's called "key_value"
(left, right) => left.equals_datatype(right),
Copy link
Contributor

Choose a reason for hiding this comment

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

Comparing only the datatype. That's exactly what we need!

Comment on lines +16 to +19
v_decimal decimal(10,5),
v_map map<int, int>,
v_array array<int>,
v_struct struct<a:int, b:int>
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you ever tried nesting a nested type inside another nested type?

Copy link
Member Author

Choose a reason for hiding this comment

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

Just tried, and found a new icelake bug. It will fail to parse table metadata 🥵

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's fix this later

@chenzl25 chenzl25 changed the title fix: fix map - arrow convert & fix sink nested types to iceberg fix(iceberg): fix map - arrow convert & fix sink nested types to iceberg Sep 10, 2024
Signed-off-by: xxchan <[email protected]>
@xxchan
Copy link
Member Author

xxchan commented Sep 11, 2024

ping @risingwavelabs/cargo-lock

@xxchan xxchan enabled auto-merge September 11, 2024 02:50
@xxchan xxchan added this pull request to the merge queue Sep 11, 2024
@graphite-app graphite-app bot requested a review from a team September 11, 2024 03:02
Merged via the queue into main with commit 00150a3 Sep 11, 2024
32 of 33 checks passed
@xxchan xxchan deleted the xxchan/written-baboon branch September 11, 2024 03:46
xxchan added a commit that referenced this pull request Sep 11, 2024
github-merge-queue bot pushed a commit that referenced this pull request Sep 11, 2024
…pes to iceberg (#18463) to branch release-2.0 (#18490)

Signed-off-by: xxchan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants