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

Allow skipping utf8 converison in Python3 #543

Open
csringhofer opened this issue Jul 18, 2024 · 0 comments
Open

Allow skipping utf8 converison in Python3 #543

csringhofer opened this issue Jul 18, 2024 · 0 comments

Comments

@csringhofer
Copy link
Collaborator

Ran some benchmarks on local Impala dev environment:
Query: select * from tpch_parquet.lineitem"
returns 6 million rows (numbers, strings)

ClientFetchWaitTimer looks like this:
Impyla (Python2, fetchcolumnar()) 7s967ms
Impyla (Python3, fetchcolumnar()): 14s163ms
Impyla (Python2, fetchmany(1024)): 17s791ms
Impyla (Python3, fetchmany(1024)): 23s816ms

Based on cProfile the Python2 vs 3 differences come from _convert_strings_to_unicode().

Adding a cursor option like "convert_strings_to_unicode" similarly to "convert_types" would be useful.

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