Created
November 1, 2018 10:10
-
-
Save vanerpool/9be57e925f33ba37172be1ab2f825f19 to your computer and use it in GitHub Desktop.
Revisions
-
sirpantene revised this gist
Nov 1, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,2 @@ # insert overwrite table partition df.write.mode("overwrite").partitionBy("col1","col2","col3").insertInto("db_name.table_name") -
sirpantene created this gist
Nov 1, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ df.write.mode("overwrite").partitionBy("col1","col2","col3").insertInto("db_name.table_name")