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

Ranga Reddy commented on SPARK-40798:
-------------------------------------

Hi [~ulysses] 

The current Jira will solve both the *Insert* and *Alter* partition values. 
{code:java}
CREATE EXTERNAL TABLE test_partition_value_tbl ( id INT, name STRING ) 
PARTITIONED BY (age INT) LOCATION 
'file:/tmp/spark-warehouse/test_partition_value_tbl'

-- This DDL should fail but worked:
ALTER TABLE test_partition_value_tbl ADD PARTITION(age='aaa'); 

-- This DML should fail but worked:
INSERT INTO test_partition_value_tbl PARTITION(age="aaa") VALUES (1, 
'ABC'){code}
Can we rename *SKIP_TYPE_VALIDATION_ON_ALTER_PARTITION* variable and update the 
description of this variable?

After that, I will commit my test case.

> Alter partition should verify value
> -----------------------------------
>
>                 Key: SPARK-40798
>                 URL: https://issues.apache.org/jira/browse/SPARK-40798
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: XiDuo You
>            Assignee: XiDuo You
>            Priority: Major
>             Fix For: 3.4.0
>
>
>  
> {code:java}
> CREATE TABLE t (c int) USING PARQUET PARTITIONED BY(p int);
> -- This DDL should fail but worked:
> ALTER TABLE t ADD PARTITION(p='aaa'); {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to