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

[BUG] column with names that are keywords cant be escaped in views #349

Open
jeffreyaven opened this issue Dec 21, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@jeffreyaven
Copy link
Member

Describe the bug
If a response body has a top level field which is a keyword, such as desc it can be escaped in a naked SELECT statement, but the same statement fails in a view

To Reproduce

stackql  >>CREATE VIEW vw_formula_urls AS SELECT * FROM (SELECT name as formula_name, homepage, "desc" as description FROM homebrew.formula.formula) t;
DDL Execution Completed
stackql  >>SELECT * FROM vw_formula_urls WHERE formula_name = 'stackql';
error:  You have an error in your stackql syntax; parser error: Code: INVALID_ARGUMENT
syntax error at position 59 near 'desc'
@jeffreyaven jeffreyaven added the bug Something isn't working label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant