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

For Dateadd function , DD and WK keyword is been considered as column names #411

Open
VinayakaCN opened this issue Aug 7, 2023 · 0 comments
Labels

Comments

@VinayakaCN
Copy link

VinayakaCN commented Aug 7, 2023

its a Great piece of work, but a small bug, for the below query, DD and WK keyword is been returned as columns , which ideally its not. so appreciate your fix.

SQL_parser = Parser("""
select
dateadd(dd,30, DateReleased),
dateadd(WK,2, DateReleased)
from test a
""")
SQL_parser.columns

Tip : probably adding DD WK YY/YYYY as reserved keywords and ignore from columns list.

@macbre macbre added the bug label Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants