You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "baishuo (JIRA)" <ji...@apache.org> on 2015/06/08 06:58:00 UTC

[jira] [Commented] (SPARK-8156) DataFrame created by hiveContext can not create table to other database except "defualt"

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

baishuo commented on SPARK-8156:
--------------------------------

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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org