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

feat(table): add conversion from Arrow Schema to Iceberg #155

Merged
merged 9 commits into from
Oct 9, 2024

Conversation

zeroshade
Copy link
Member

In preparation for adding Data Reading, I'm splitting up the PRs to make them more reasonable to review.

This PR updates the version of the Arrow Go library being utilized and implements the conversions from Arrow Schemas to Iceberg Schemas, including name mapping for handling field IDs properly.

Tests are also included for this.

@github-actions github-actions bot added the INFRA label Sep 26, 2024
.github/workflows/go-ci.yml Outdated Show resolved Hide resolved
{"test_partitioned_by_hours", iceberg.GreaterThanEqual(iceberg.Reference("ts"), "2023-03-05T00:00:00+00:00"), 8},
{"test_partitioned_by_truncate", iceberg.GreaterThanEqual(iceberg.Reference("letter"), "e"), 8},
{"test_partitioned_by_bucket", iceberg.GreaterThanEqual(iceberg.Reference("number"), int32(5)), 6},
// for some reason when I run the provisioning locally i get 5 data files
// but GHA CI running spark provisioning ends up with only 4 files?
// anyone know why?
Copy link
Contributor

Choose a reason for hiding this comment

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

I forgot but what's correct here, 4 or 5 data files?

Copy link
Member Author

Choose a reason for hiding this comment

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

It looks like my local runs now match the CI runs in generating 4 files so that seems correct to me.

@nastra nastra merged commit 4929eea into apache:main Oct 9, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants