Skip to content

feat: add Schema.from_sqlglot method to produce an Ibis schema from SQLGlot #11351

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

IndexSeek
Copy link
Member

Description of changes

I wanted to tackle #11310 by adding a new class method for Schema.

I wrote a unit test that tries a ton of types (it may be overkill), but it seems to be working and
my manual testing has been successful too.

Should this also support a dialect argument? I wasn't sure if this should be a requirement for
the end user (It's defaulting to duckdb now to map the types).

Issues (partially) closed

#11310 - I can tackle renaming to_sqlglot to to_sqlglot_columns_definition and
change the behavior of the former in a separate PR.

@github-actions github-actions bot added the tests Issues or PRs related to tests label Jun 18, 2025
@IndexSeek IndexSeek force-pushed the feat-from-sqlglot branch from 1e1ff48 to 685d66f Compare July 5, 2025 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Issues or PRs related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant