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

[jira] [Updated] (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:all-tabpanel ]

yikf updated SPARK-38216:
-------------------------
    Description: 
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, 

  was:
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, such as 

`

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, 


> 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