You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2022/02/15 09:54:00 UTC

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

    [ https://issues.apache.org/jira/browse/SPARK-38216?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org