forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AIRFLOW-2441] Fix bugs in HiveCliHook.load_df
This PR fixes HiveCliHook.load_df to: 1. encode delimiter with the specified encoding before passing it to pandas.DataFrame.to_csv so as not to fail 2. flush output file by pandas.DataFrame.to_csv before executing LOAD DATA statement 3. remove header and row index from output file by pandas.DataFrame.to_csv so as to read it as expected via Hive Closes apache#3334 from sekikn/AIRFLOW-2441
- Loading branch information
1 parent
f7c33af
commit 74027c9
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters