Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-10452

CREATE Iceberg tables with old PARTITIONED BY syntax

    XMLWordPrintableJSON

Details

    Description

      It's convenient for users to create Iceberg tables with the old syntax.

      It's also easier to migrate existing workloads to Iceberg because the SQL scripts that create the table definitions don't need to change that much.

      So users should be able to write the following:

      CREATE TABLE ice_t (i int)
      PARTITIONED BY (p int)
      STORED AS ICEBERG;
      

      Which should be equivalent to this:

      CREATE TABLE ice_t (i int, p int)
      PARTITION BY SPEC (p IDENTITY)
      STORED AS ICEBERG;
      

      Please note that the old-style CREATE TABLE creates IDENTITY-partitioned tables. For other partition transforms the users must use the new, more generic syntax.

      Hive also supports the PARTITIONED BY syntax, see https://github.com/apache/iceberg/pull/1612

      Attachments

        Activity

          People

            boroknagyz Zoltán Borók-Nagy
            boroknagyz Zoltán Borók-Nagy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: