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(clickhouse): absorb _parse_ternary logic in _parse_conjunction #1646

Merged
merged 6 commits into from
May 18, 2023

Conversation

georgesittas
Copy link
Collaborator

Fixes #1645

sqlglot/parser.py Outdated Show resolved Hide resolved
@georgesittas georgesittas changed the title Fix(clickhouse): use _parse_expression in _parse_if to allow ternaries Fix(clickhouse): absorb _parse_ternary logic in _parse_conjunction May 18, 2023
@georgesittas georgesittas merged commit c4ef23c into main May 18, 2023
@georgesittas georgesittas deleted the jo/ternary_fix branch May 18, 2023 17:46
adrianisk pushed a commit to adrianisk/sqlglot that referenced this pull request Jun 21, 2023
…obymao#1646)

* Fix(clickhouse): use _parse_expression in _parse_if to allow ternaries

* Refactor ternary parsing logic

* Add another AST test

* Fixup

* Fixup

* DRY
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.

Clickhouse: Ternary if parsing (2)
2 participants