Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-28154

Throw friendly exception if the table does not support partition transform

    XMLWordPrintableJSON

Details

    Description

      At present, create basic tables such as orc/parquet with partition transform will succeed. However, we only support iceberg tables for partition transform now, so i think we need to throw a friendly exception if the table does not support partition transform, to avoid user misunderstanding that the basic tables have such ability.

       

      // This create statement will succeed,but the table won't have any partition info in fact.

      create table customers (customer_id int,first_name string,last_name string) partitioned by spec(TRUNCATE(2, last_name)) stored as orc; 

      Attachments

        Issue Links

          Activity

            People

              zhangbutao Butao Zhang
              zhangbutao Butao Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: