Uploaded image for project: 'Apache HAWQ (Retired)'
  1. Apache HAWQ (Retired)
  2. HAWQ-705

\d combines hive tables with same prefix but different suffix (numbers) only

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0.0-incubating
    • Hcatalog, PXF
    • None

    Description

      repro steps
      1) in hive, created test table

      hive> CREATE TABLE test (name string, type string, supplier_key int, full_price double) row format delimited fields terminated by ',';
      OK
      Time taken: 1.586 seconds
      

      2) in hive, created second test table, randomly named test##

      hive> CREATE TABLE test22 (name string, type string) row format delimited fields terminated by ',';
      OK
      Time taken: 1.511 seconds
      

      3) in psql, tried describing schema and i got all test* tables combined into one:

      postgres=# \d hcatalog.*
      
      PXF Hive Table "default.test"
      
          Column    |  Type  
      
      --------------+--------
      
       type         | text
      
       name         | text
      
       supplier_key | int4
      
       full_price   | float8
      
       type         | text
      
       name         | text
      

      I repeated and found the same for other tables with number postfixes. It did not do this for tables with extra characters, however.

      hive> CREATE TABLE testabc (name string, type string) row format delimited fields terminated by ',';
      OK
      Time taken: 0.082 seconds
      
      postgres=# \d+ hcatalog.*
      
      PXF Hive Table "default.test"
      
          Column    |  Type  
      
      --------------+--------
      
       type         | text
      
       name         | text
      
       supplier_key | int4
      
       full_price   | float8
      
       type         | text
      
       name         | text
      
      
      PXF Hive Table "default.testabc"
      
       Column | Type
      
      --------+------
      
       type   | text
      
       name   | text
      

      Attachments

        Activity

          People

            odiachenko Oleksandr Diachenko
            godenyao Goden Yao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: