Member since
07-30-2018
6
Posts
1
Kudos Received
0
Solutions
11-16-2018
11:47 AM
How to save a table using HWC of a dataframe with hundred columns. This seems very impractical. val hive = com.hortonworks.spark.sql.hive.llap.HiveWarehouseBuilder.session(spark).build()
hive.createTable("newTable")
.ifNotExists()
.column("ws_sold_time_sk", "bigint")
... // 500 columns
.column("ws_ship_date_sk", "bigint")
.create()
df.write.format(HIVE_WAREHOUSE_CONNECTOR)
.option("table", "newTable")
.save()
... View more