[jira] [Commented] (SPARK-38216) When creating a Hive table, fail early if all the columns are partitioned columns

2022-02-15 Thread Apache Spark (Jira)


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

Apache Spark commented on SPARK-38216:
--

User 'Yikf' has created a pull request for this issue:
https://github.com/apache/spark/pull/35527

> When creating a Hive table, fail early if all the columns are partitioned 
> columns
> -
>
> Key: SPARK-38216
> URL: https://issues.apache.org/jira/browse/SPARK-38216
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.2.0
>Reporter: yikf
>Priority: Minor
> Fix For: 3.3.0
>
>
> In Hive the schema and partition columns must be disjoint sets, if hive table 
> which all columns are partitioned columns, so that other columns is empty, it 
> will fail when Hive create table, error msg as follow:
> `
> throw new HiveException(
> "at least one column must be specified for the table")
> `
> So when creating a Hive table, fail early if all the columns are partitioned 
> columns, 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-38216) When creating a Hive table, fail early if all the columns are partitioned columns

2022-02-15 Thread Apache Spark (Jira)


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

Apache Spark commented on SPARK-38216:
--

User 'Yikf' has created a pull request for this issue:
https://github.com/apache/spark/pull/35527

> When creating a Hive table, fail early if all the columns are partitioned 
> columns
> -
>
> Key: SPARK-38216
> URL: https://issues.apache.org/jira/browse/SPARK-38216
> Project: Spark
>  Issue Type: Improvement
>  Components: SQL
>Affects Versions: 3.2.0
>Reporter: yikf
>Priority: Minor
> Fix For: 3.3.0
>
>
> In Hive the schema and partition columns must be disjoint sets, if hive table 
> which all columns are partitioned columns, so that other columns is empty, it 
> will fail when Hive create table, error msg as follow:
> `
> throw new HiveException(
> "at least one column must be specified for the table")
> `
> So when creating a Hive table, fail early if all the columns are partitioned 
> columns, 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org