Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +-------------------------------+-------------------+
- | data_type | encoding |
- +-------------------------------+-------------------+
- | bigint | delta |
- | bigint | delta32k |
- | character varying(256) | lzo |
- | bigint | runlength |
- | bigint | bytedict |
- | timestamp without time zone | bytedict |
- | integer | runlength |
- +-------------------------------+-------------------+
- x.write.format("com.databricks.spark.redshift")
- .option("url","jdbc:redshift://<url>:<port>/<schema>?user=<user>&password=<pass>")
- .option("dbtable","<tbl_nm>")
- .option("diststyle","KEY").option("distkey","<key>")
- .option("sortkeyspec","SORTKEY(<sort1>)")
- .option("tempdir","<path>")
- .mode("error").save()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement