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

Dispatch the char_length function properly for the hive dialect #20

Closed
wants to merge 4 commits into from
Closed

Dispatch the char_length function properly for the hive dialect #20

wants to merge 4 commits into from

Conversation

cpcloud
Copy link
Contributor

@cpcloud cpcloud commented Mar 26, 2015

char_length is the standard SQLAlchemy way to get the length of a scalar string value in an expression. Hive only has length, so the Hive dialect should compile char_length expressions into length calls.

@jingw jingw closed this in e361b27 Apr 3, 2015
@jingw
Copy link
Contributor

jingw commented Apr 3, 2015

Sorry for the delay on this. I fixed it a slightly different way (override visit_char_length_func).

@cpcloud
Copy link
Contributor Author

cpcloud commented Apr 3, 2015

Cool! Thanks.

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 this pull request may close these issues.

2 participants