[
https://issues.apache.org/jira/browse/SPARK-11683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006202#comment-15006202
]
Luis Antonio Torres commented on SPARK-11683:
---------------------------------------------
I see. Thanks for the quick reply! In that case, I'm closing this issue.
Unfortunately, our company uses HDP releases so it might be a while before I
get to work with 1.6.0
> 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]