[ 
https://issues.apache.org/jira/browse/SPARK-11683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Luis Antonio Torres closed SPARK-11683.
---------------------------------------
    Resolution: Fixed

> DataFrameWriter.insertInto() fails on non-default schema
> --------------------------------------------------------
>
>                 Key: SPARK-11683
>                 URL: https://issues.apache.org/jira/browse/SPARK-11683
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.4.1
>            Reporter: Luis Antonio Torres
>            Priority: Minor
>
> On Spark 1.4.1, when using DataFramWriter.insertInto() method on a Hive table 
> created in a non-default schema like so:
> `myDF.write.insertInto("my_db.some_table")`
> the following exception is thrown:
> org.apache.spark.sql.AnalysisException: no such table my_db.some_table;
> The table exists because I can query it with `sqlContext.sql("SELECT * FROM 
> my_db.some_table")`
> However, when some_table is created in the default schema and the call to 
> insertInto becomes:
> `myDF.write.insertInto("some_table")`
> it works fine.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to