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

ClickHouse parameterized view #1167

Open
flipchart opened this issue Mar 8, 2024 · 1 comment · May be fixed by #1181
Open

ClickHouse parameterized view #1167

flipchart opened this issue Mar 8, 2024 · 1 comment · May be fixed by #1181

Comments

@flipchart
Copy link

I'd like to parse ClickHouse SQL which contains parameters for their parameterized views. The SQL looks like

CREATE VIEW view AS SELECT * FROM TABLE WHERE Column1={column1:datatype1}

Note the parameter is in the { } brackets. I don't think this could be implemented in the Dialect as curly braces are tokenized without deferring to the dialect. It would probably have to be handled by the tokenizer as a special case like numbers are for MySQL & Hive.

@alamb
Copy link
Collaborator

alamb commented Mar 11, 2024

Makes sense to me 👍

@Lordworms Lordworms linked a pull request Mar 15, 2024 that will close this issue
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 a pull request may close this issue.

2 participants