Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myDf.show(30)
- myDf.write.mode(SaveMode.Append)
- .jdbc("jdbc:postgresql://<connectionString>", "apptest", props)
- +---------+------+-----------+-----+
- |countryid|kindid|publisherid| rank|
- +---------+------+-----------+-----+
- | 2| 5| 1440370637| 143|
- | 2| 5| 2114144780| 1558|
- | 2| 8| 199559784| 3684|
- | 2| 5| 1522258372| 1016|
- | 2| 9| 918480276| 1051|
- | 2| 5| 8788| 619|
- | 2| 5| 2760330013| 612|
- | 2| 5| 1733022508| 3427|
- | 2| 10| 1733020347| 2010|
- | 2| 8| 11867| 9431|
- | 2| 7| 512462197| 5089|
- | 2| 8| 1219783067| 83|
- | 2| 5| 1459628648| 4990|
- | 2| 5| 2447786955| 155|
- | 2| 5| 1985613413| 651|
- | 2| 5| 1560140870| 404|
- | 2| 5| 1445788622| 4737|
- | 2| 7| 2352155047|19288|
- | 2| 5| 1667560844| 87|
- | 2| 5| 1932266564| 764|
- | 2| 5| 1470914641| 31|
- | 2| 8| 2601082735| 341|
- | 2| 5| 1985796127| 21|
- | 2| 8| 510919182| 994|
- | 2| 5| 338483845| 3292|
- | 2| 5| 2303279333| 809|
- | 2| 5| 2454300331| 620|
- | 2| 8| 379213322| 570|
- | 2| 7| 260492638|20219|
- | 2| 5| 1435774759| 78|
- +---------+------+-----------+-----+
Add Comment
Please, Sign In to add comment