You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "CHC (Jira)" <ji...@apache.org> on 2020/09/10 03:59:00 UTC
[jira] [Updated] (SPARK-32838) Connot overwite different partition
with same table
[ https://issues.apache.org/jira/browse/SPARK-32838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
CHC updated SPARK-32838:
------------------------
Description:
When:
{code:java}
CREATE TABLE tmp.spark3_snap (
id string
)
PARTITIONED BY (dt string)
STORED AS ORC
;
insert overwrite tmp.spark3_snap partition(dt='2020-09-09')
select 10;
insert overwrite tmp.spark3_snap partition(dt='2020-09-10')
select 1;
insert overwrite table tmp.spark3_snap partition(dt='2020-09-10')
select id from tmp.spark3_snap where dt='2020-09-09';
{code}
and it will be get a error: "Cannot overwrite a path that is also being read from"
related: https://issues.apache.org/jira/browse/SPARK-24194
was:
When:
{code:java}
CREATE TABLE tmp.spark3_snap (
id string
)
PARTITIONED BY (dt string)
STORED AS ORC
;
insert overwrite tmp.spark3_snap partition(dt='2020-09-09')
select 10;
insert overwrite tmp.spark3_snap partition(dt='2020-09-10')
select 1;
insert overwrite tmp.spark3_snap partition(dt='2020-09-10')
select id from tmp.spark3_snap where dt='2020-09-09';
{code}
and it will be get a error: "Cannot overwrite a path that is also being read from"
related: https://issues.apache.org/jira/browse/SPARK-24194
> Connot overwite different partition with same table
> ---------------------------------------------------
>
> Key: SPARK-32838
> URL: https://issues.apache.org/jira/browse/SPARK-32838
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.0.0
> Environment: hadoop 2.7 + spark 3.0.0
> Reporter: CHC
> Priority: Critical
>
> When:
> {code:java}
> CREATE TABLE tmp.spark3_snap (
> id string
> )
> PARTITIONED BY (dt string)
> STORED AS ORC
> ;
> insert overwrite tmp.spark3_snap partition(dt='2020-09-09')
> select 10;
> insert overwrite tmp.spark3_snap partition(dt='2020-09-10')
> select 1;
> insert overwrite table tmp.spark3_snap partition(dt='2020-09-10')
> select id from tmp.spark3_snap where dt='2020-09-09';
> {code}
> and it will be get a error: "Cannot overwrite a path that is also being read from"
> related: https://issues.apache.org/jira/browse/SPARK-24194
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org