[ 
https://issues.apache.org/jira/browse/SPARK-8156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14576597#comment-14576597
 ] 

baishuo edited comment on SPARK-8156 at 6/8/15 4:57 AM:
--------------------------------------------------------

the following code:
hiveContext.sql("""use testdb""")
val df = (1 to 3).map(i => (i, s"val_$i", i * 2)).toDF("a", "b", "c")
 df.write
            .format("parquet")
            .mode(SaveMode.Overwrite)
            .saveAsTable("ttt3")

the table ttt3 will be created under the database "default"


was (Author: baishuo):
hiveContext.sql("""use testdb""")
val df = (1 to 3).map(i => (i, s"val_$i", i * 2)).toDF("a", "b", "c")
 df.write
            .format("parquet")
            .mode(SaveMode.Overwrite)
            .saveAsTable("ttt3")

the table ttt3 will be created under the database "default"

> DataFrame created by hiveContext can not create table  to other database 
> except "defualt"
> -----------------------------------------------------------------------------------------
>
>                 Key: SPARK-8156
>                 URL: https://issues.apache.org/jira/browse/SPARK-8156
>             Project: Spark
>          Issue Type: Bug
>            Reporter: baishuo
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to