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: allow switch from hive to iceberg table #625

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

nicor88
Copy link
Contributor

@nicor88 nicor88 commented Apr 16, 2024

Description

Fixes #478

Also add functional tests to be sure that we can switch smoothly from hive to iceberg, and from iceberg to hive.
This can be really helpfull, to allow users to change table type easily without a full-refresh.

For the functional tests I did a sort of hack, where I pass the table_type via a table_type var, that then it's used in the config like this: table_type=var("table_type"), works fine.

Models used to test - Optional

Provided functional tests to cover the implementation

Checklist

  • You followed contributing section
  • You kept your Pull Request small and focused on a single feature or bug fix.
  • You added unit testing when necessary
  • You added functional testing when necessary

@nicor88 nicor88 added the enable-functional-tests Label to trigger functional testing label Apr 16, 2024
Jrmyy
Jrmyy previously approved these changes Apr 17, 2024
@nicor88 nicor88 merged commit 107437c into main Apr 18, 2024
10 checks passed
@nicor88 nicor88 deleted the fix/allow_switch_from_hive_to_iceberg branch April 18, 2024 11:27
@svdimchenko
Copy link
Contributor

hey @nicor88 great job done! sorry for some late response from me here.
Do I understand correctly that this feature is appicable for table materialisation only ?

@nicor88
Copy link
Contributor Author

nicor88 commented Apr 19, 2024

@svdimchenko I believe that in case of incremental materialization we don't have 2 renames in case of iceberg, therefore I aspect that switching from hive to iceberg should work. But must be confirmed.

Edit: in case of incremental load the user must issue a full refresh, that's the only way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enable-functional-tests Label to trigger functional testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switching from hive table to iceberg table lead to failure
3 participants