Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13785 Investigate recent test failures.
  3. HIVE-13792

Show create table should not show stats info in the table properties

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.3.0
    • Query Planning
    • None

    Description

      From the test org.apache.hadoop.hive.cli.TestHBaseCliDriver.testCliDriver_hbase_queries failure, we are printing table stats in show create table parameters. This info should be skipped since it would be incorrect when you just copy them to create a table.

      PREHOOK: query: SHOW CREATE TABLE hbase_table_1_like
      PREHOOK: type: SHOW_CREATETABLE
      PREHOOK: Input: default@hbase_table_1_like
      POSTHOOK: query: SHOW CREATE TABLE hbase_table_1_like
      POSTHOOK: type: SHOW_CREATETABLE
      POSTHOOK: Input: default@hbase_table_1_like
      
      CREATE EXTERNAL TABLE `hbase_table_1_like`(
        `key` int COMMENT 'It is a column key',
        `value` string COMMENT 'It is the column string value')
      ROW FORMAT SERDE
        'org.apache.hadoop.hive.hbase.HBaseSerDe'
      STORED BY
        'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
      WITH SERDEPROPERTIES (
        'hbase.columns.mapping'='cf:string',
        'serialization.format'='1')
      TBLPROPERTIES (
        'COLUMN_STATS_ACCURATE'='{\"BASIC_STATS\":\"true\"}',
        'hbase.table.name'='hbase_table_0',
        'numFiles'='0',
        'numRows'='0',
        'rawDataSize'='0',
        'totalSize'='0',
      

      Attachments

        1. HIVE-13792.1.patch
          2 kB
          Aihua Xu
        2. HIVE-13792.2.patch
          7 kB
          Aihua Xu
        3. HIVE-13792.3.patch
          8 kB
          Aihua Xu
        4. HIVE-13792.final.patch
          8 kB
          Aihua Xu

        Activity

          People

            aihuaxu Aihua Xu
            aihuaxu Aihua Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: