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

Column names or parts of column names may be incorrectly converted to lowercase #1

Closed
ianmcook opened this issue Aug 31, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@ianmcook
Copy link
Owner

ianmcook commented Aug 31, 2019

When a column name matches the name of a SQL function that queryparser translates, then that column name is converted to lowercase. This also occurs for parts of columns names that are separated from other parts by periods. For example:

parse_expression("Length > 2")
#length > 2

parse_expression("Petal.Length > 2")
#Petal.length > 2

As a workaround until this is resolved, enclose variable names in backticks:

parse_expression("`Length` > 2")
#Length > 2

parse_expression("`Petal.Length` > 2")
#Petal.Length > 2
@ianmcook ianmcook changed the title Periods in names are sometimes treated like word boundaries Variable names or parts of variable names may be incorrectly converted to lowercase Aug 31, 2019
@ianmcook ianmcook changed the title Variable names or parts of variable names may be incorrectly converted to lowercase Column names or parts of column names may be incorrectly converted to lowercase Aug 31, 2019
@ianmcook
Copy link
Owner Author

Fixed in e6fb07d

@ianmcook ianmcook added the bug Something isn't working label Aug 31, 2019
ianmcook pushed a commit that referenced this issue Mar 29, 2020
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