Uploaded image for project: 'Tajo'
  1. Tajo
  2. TAJO-816

NULL delimiter doesn't apply with HCatalogStore

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0, 0.8.1
    • Component/s: Catalog
    • Labels:
      None

      Description

      If we use csvfile.null with HCatalogStore, it will run without some exceptions. But we can't find serialization.null.format parameter on Hive as follows:

      • Tajo
        create external table table2 (id int, name text, score float, type text) using csv with ('csvfile.delimiter'='|','csvfile.null'=''
        > ) location 'hdfs://localhost:9010/tajo/warehouse/table2' ;
        
      • Hive
        hive> show create table table2;
        OK
        CREATE EXTERNAL TABLE table2(
          id int COMMENT '', 
          name string COMMENT '', 
          score float COMMENT '', 
          type string COMMENT '')
        ROW FORMAT DELIMITED 
          FIELDS TERMINATED BY '|' 
        STORED AS INPUTFORMAT 
          'org.apache.hadoop.mapred.TextInputFormat' 
        OUTPUTFORMAT 
          'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
        LOCATION
          'hdfs://localhost:9010/tajo/warehouse/table2'
        TBLPROPERTIES (
          'csvfile.null'='', 
          'transient_lastDdlTime'='1399433333', 
          'csvfile.delimiter'='|')
        

        Attachments

          Activity

            People

            • Assignee:
              blrunner Jaehwa Jung
              Reporter:
              blrunner Jaehwa Jung
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: