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

parser.columns lost the 2nd `` quoted columns with operation #448

Open
zhaorenjie opened this issue Nov 3, 2023 · 0 comments
Open

parser.columns lost the 2nd `` quoted columns with operation #448

zhaorenjie opened this issue Nov 3, 2023 · 0 comments

Comments

@zhaorenjie
Copy link

reproduce in 2.9.0

>>> Parser("select `col1 with space` / `col2_anything` from table1;").columns
['col1 with space']
>>> Parser("select `col1 with space` / `col2_anything` from table1;").columns_aliases
{'col2_anything': 'col1 with space'}
>>> Parser("select `col1 with space` / `col2_anything` from table1;").columns_dict
{'select': ['col1 with space']}
>>> Parser("select `col1 with space` / `col2_anything` from table1;").columns_aliases_dict
{'select': ['col2_anything']}

I think the correct answer should be ['col1 with space', 'col2_anything'], but col2_anything is now recognized as "alias" ?

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

No branches or pull requests

1 participant