Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-38216

When creating a Hive table, fail early if all the columns are partitioned columns

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • SQL
    • None

    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, 

      Attachments

        Activity

          People

            kaifeiYi yikaifei
            kaifeiYi yikaifei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: