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

Refactor!: move normalization logic in Dialect, update case-sensitivity info #1784

Merged
merged 8 commits into from
Jun 16, 2023

Conversation

georgesittas
Copy link
Collaborator

No description provided.

sqlglot/helper.py Outdated Show resolved Hide resolved
sqlglot/helper.py Outdated Show resolved Hide resolved
@georgesittas georgesittas changed the title Refactor!: move normalization logic in Dialect, handle BigQuery case-insensitivity Refactor!: move normalization logic in Dialect, update case-sensitivity info Jun 15, 2023
@georgesittas georgesittas force-pushed the jo/refactor_normalizations branch from b93574a to b2c906b Compare June 15, 2023 19:49
@georgesittas georgesittas force-pushed the jo/refactor_normalizations branch from b2c906b to d5a1305 Compare June 16, 2023 10:36
@georgesittas georgesittas merged commit 4084ba3 into main Jun 16, 2023
@georgesittas georgesittas deleted the jo/refactor_normalizations branch June 16, 2023 16:04
adrianisk pushed a commit to adrianisk/sqlglot that referenced this pull request Jun 21, 2023
…ty info (tobymao#1784)

* Refactor!: move normalization logic in Dialect, handle BigQuery case-insensitivity

* Move case_sensitive and _quote in Dialect to reduce overhead

* Move can_identify to Dialect, pass it down to Generator as a dialect_property

* Update other dialects that have case-insensitive identifiers too

* Implement heuristic for treating tables as case-sensitive

* Fix the heuristic condition

* Improve condition

* Add snowflake identifier docs in a comment
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