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

Add support for iceberg table with snowflake catalog #539

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

sfc-gh-jvasquezrojas
Copy link
Collaborator

@sfc-gh-jvasquezrojas sfc-gh-jvasquezrojas commented Oct 23, 2024

Please answer these questions before submitting your pull requests. Thanks!

  1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.

    Fixes SNOW-1514024

  2. Fill out the following pre-review checklist:

    • I am adding a new automated test(s) to verify correctness of my new code
    • I am adding new logging messages
    • I am adding new credentials
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

  • Add support for Iceberg Table with Snowflake Catalog
  • Add ClusterByOption and SnowflakeTable to create normal tables
  • Fix snowflake_clusterby not working with explicit expressions

@sfc-gh-jvasquezrojas sfc-gh-jvasquezrojas marked this pull request as ready for review October 23, 2024 22:17
@sfc-gh-jvasquezrojas sfc-gh-jvasquezrojas requested a review from a team as a code owner October 23, 2024 22:17
tests/test_core.py Outdated Show resolved Hide resolved
Comment on lines +722 to +733
metadata = MetaData()
user = Table(
"clustered_user",
metadata,
Column("Id", Integer, primary_key=True),
Column("name", String),
snowflake_clusterby=["Id", "name", text('"Id" > 5')],
)

create_table = CreateTable(user)

assert sql_compiler(create_table) == snapshot
Copy link
Collaborator

Choose a reason for hiding this comment

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

try:
metadata.create(..)
...
finally:
metadata.drop(...)

Copy link
Collaborator Author

@sfc-gh-jvasquezrojas sfc-gh-jvasquezrojas Oct 25, 2024

Choose a reason for hiding this comment

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

It is not necessary to test the compiler

@sfc-gh-jvasquezrojas sfc-gh-jvasquezrojas force-pushed the add_support_for_iceberg_table_with_snowflake_catalog branch from e570543 to 705535b Compare October 25, 2024 14:16
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.

2 participants