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

show create table does not include partitioning info for kudu tables

    XMLWordPrintableJSON

Details

    Description

      When I do a CREATE TABLE for a Kudu table, using for example hash partitioning, I use this syntax:

      CREATE TABLE test_table_1 (id BIGINT, name STRING)
      DISTRIBUTE BY HASH(id) INTO 16 BUCKETS
      TBLPROPERTIES ( 'kudu.master_addresses'='host1.example.com:7051', 'kudu.key_columns'='id', 'kudu.table_name'='test_table_1', 'storage_handler'='com.cloudera.kudu.hive.KuduStorageHandler');
      );
      

      However when I execute SHOW CREATE TABLE I get the following output that does not include the DISTRIBUTE BY clause:

      CREATE TABLE default.test_table_1 (id BIGINT, name STRING)
      TBLPROPERTIES ('numFiles'='0',
      'kudu.master_addresses'='host1.example.com:7051', 'kudu.key_columns'='id', 'kudu.table_name'='test_table_1', 'transient_lastDdlTime'='1446674173',
      'COLUMN_STATS_ACCURATE'='false', 'totalSize'='0', 'numRows'='-1',
      'rawDataSize'='-1',
      'storage_handler'='com.cloudera.kudu.hive.KuduStorageHandler') 
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mpercy Mike Percy
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: