Skip to content

[AIRFLOW-147] Added fetch_size parameter to HiveServer2Hook.to_csv()#1526

Merged
asfgit merged 1 commit intoapache:masterfrom
michaelmu:hive_hooks_fetch_size
May 23, 2016
Merged

[AIRFLOW-147] Added fetch_size parameter to HiveServer2Hook.to_csv()#1526
asfgit merged 1 commit intoapache:masterfrom
michaelmu:hive_hooks_fetch_size

Conversation

@michaelmu
Copy link

@michaelmu michaelmu commented May 19, 2016

Please accept this PR that addresses the following issues:
https://issues.apache.org/jira/browse/AIRFLOW-147

In short, the default behavior for the new impala dbapi which is used for the HiveServer2Hook reads a single line at a time when fetchall() is called. This PR provides the option to specify the row batch size in to_csv() and sets the default to 1000.

@landscape-bot
Copy link

Code Health
Repository health increased by 0.00% when pulling a5c00b3 on michaelmu:hive_hooks_fetch_size into aedb667 on apache:master.

@artwr
Copy link
Contributor

artwr commented May 23, 2016

LGTM

@asfgit asfgit merged commit a5c00b3 into apache:master May 23, 2016
@landscape-bot
Copy link

Code Health
Repository health increased by 0.00% when pulling a5c00b3 on michaelmu:hive_hooks_fetch_size into aedb667 on apache:master.

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.

4 participants