carbondata-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lk_hadoop"<lk_had...@163.com>
Subject Re: how to set database name when write dataframe into carbondata
Date Fri, 25 Aug 2017 05:53:25 GMT
ok,I find it :
df.write.format("org.apache.spark.sql.CarbonSource").option("dbName", "tpcds_carbon2").option("tableName",
s"${tables(i)}").mode(SaveMode.Append).save

2017-08-25 

lk_hadoop 



发件人:"lk_hadoop"<lk_hadoop@163.com>
发送时间:2017-08-25 13:50
主题:how to set database name when write dataframe into carbondata
收件人:"user.carbondata"<user@carbondata.apache.org>
抄送:

hi,all:
    I want to write a dataframe to carbondata, but I can only write to 'default' schema ,
how can I change it , my code :

    df.write.format("org.apache.spark.sql.CarbonSource").option("tableName", s"${tables(i)}").mode(SaveMode.Append).save

2017-08-25


lk_hadoop 
Mime
View raw message