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

'SHOW TABLE EXTENDED LIKE' command does not strip single/double quotes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.5.0
    • Fix Version/s: 0.14.0
    • Component/s: Query Processor
    • Labels:
      None

      Description

      hive> SHOW TABLE EXTENDED LIKE pokes;
      OK
      tableName:pokes
      owner:carl
      location:hdfs://localhost/user/hive/warehouse/pokes
      inputformat:org.apache.hadoop.mapred.TextInputFormat
      outputformat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
      columns:struct columns { i32 num}
      partitioned:false
      partitionColumns:
      totalNumberFiles:0
      totalFileSize:0
      maxFileSize:0
      minFileSize:0
      lastAccessTime:0
      lastUpdateTime:1274517075221
      
      hive> SHOW TABLE EXTENDED LIKE "p*";
      FAILED: Error in metadata: MetaException(message:Got exception: javax.jdo.JDOUserException ')' expected at character 54 in "database.name == dbName && ( tableName.matches("(?i)"p.*""))")
      FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
      
      hive> SHOW TABLE EXTENDED LIKE 'p*';
      OK
      
      hive> SHOW TABLE EXTENDED LIKE `p*`;
      OK
      tableName:pokes
      owner:carl
      location:hdfs://localhost/user/hive/warehouse/pokes
      inputformat:org.apache.hadoop.mapred.TextInputFormat
      outputformat:org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
      columns:struct columns { i32 num}
      partitioned:false
      partitionColumns:
      totalNumberFiles:0
      totalFileSize:0
      maxFileSize:0
      minFileSize:0
      lastAccessTime:0
      lastUpdateTime:1274517075221
      
      

        Attachments

        1. HIVE-1363.2.patch
          8 kB
          Chaoyu Tang
        2. HIVE-1363.1.patch
          8 kB
          Chaoyu Tang
        3. HIVE-1363.patch
          7 kB
          Chaoyu Tang

          Issue Links

            Activity

              People

              • Assignee:
                ctang Chaoyu Tang
                Reporter:
                cwsteinbach Carl Steinbach
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: