[
https://issues.apache.org/jira/browse/SPARK-5821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Cheng Lian updated SPARK-5821:
------------------------------
Description:
When you run CTAS command such as
{code sql}
CREATE TEMPORARY TABLE jsonTable
USING org.apache.spark.sql.json.DefaultSource
OPTIONS (
path /a/b/c/d
) AS
SELECT a, b FROM jt
{code}
you will run into failure if you don't have write permission for directory
/a/b/c whether d is a directory or file.
was:
When you run CTAS command such as
"CREATE TEMPORARY TABLE jsonTable
USING org.apache.spark.sql.json.DefaultSource
OPTIONS (
path /a/b/c/d
) AS
SELECT a, b FROM jt",
you will run into failure if you don't have write permission for directory
/a/b/c whether d is a directory or file.
> JSONRelation should check if delete is successful for the overwrite operation.
> ------------------------------------------------------------------------------
>
> Key: SPARK-5821
> URL: https://issues.apache.org/jira/browse/SPARK-5821
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.3.0
> Reporter: Yanbo Liang
>
> When you run CTAS command such as
> {code sql}
> CREATE TEMPORARY TABLE jsonTable
> USING org.apache.spark.sql.json.DefaultSource
> OPTIONS (
> path /a/b/c/d
> ) AS
> SELECT a, b FROM jt
> {code}
> you will run into failure if you don't have write permission for directory
> /a/b/c whether d is a directory or file.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]