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

Query over avrò file with HiveCatalogStore fails with RuntimeException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Catalog, Storage
    • Labels:
      None

      Description

      Query over avrò file with HiveCatalogstore fails with RuntimeException as following:

      default> \d nation_avro;
      
      table name: default.nation_avro
      table uri: hdfs://localhost:9010/user/hive/warehouse/nation_avro
      store type: AVRO
      number of rows: 0
      volume: 2.6 kB
      Options: 
      	'totalSize'='2616'
      	'numRows'='25'
      	'rawDataSize'='0'
      	'COLUMN_STATS_ACCURATE'='true'
      	'numFiles'='1'
      	'transient_lastDdlTime'='1447854230'
      
      schema: 
      n_nationkey	INT8
      n_name	TEXT
      n_regionkey	INT8
      n_comment	TEXT
      
      
      default> select * from nation_avro;
      ERROR: internal error: No Avro schema for table.
      

      Stack trace from TajoMaster logs:

      2015-11-18 22:45:40,253 ERROR org.apache.tajo.master.GlobalEngine:
      Stack Trace:
      java.lang.RuntimeException: No Avro schema for table.
              at org.apache.tajo.storage.avro.AvroUtil.getAvroSchema(AvroUtil.java:41)
              at org.apache.tajo.storage.avro.AvroScanner.init(AvroScanner.java:85)
              at org.apache.tajo.engine.planner.physical.SeqScanExec.initScanner(SeqScanExec.java:286)
              at org.apache.tajo.engine.planner.physical.SeqScanExec.init(SeqScanExec.java:191)
              at org.apache.tajo.engine.planner.physical.PartitionMergeScanExec.initScanExecutors(PartitionMergeScanExec.java:80)
              at org.apache.tajo.engine.planner.physical.PartitionMergeScanExec.init(PartitionMergeScanExec.java:67)
              at org.apache.tajo.master.exec.NonForwardQueryResultFileScanner.initSeqScanExec(NonForwardQueryResultFileScanner.java:123)
              at org.apache.tajo.master.exec.NonForwardQueryResultFileScanner.init(NonForwardQueryResultFileScanner.java:102)
              at org.apache.tajo.master.exec.QueryExecutor.execSimpleQuery(QueryExecutor.java:306)
              at org.apache.tajo.master.exec.QueryExecutor.execute(QueryExecutor.java:130)
              at org.apache.tajo.master.GlobalEngine.executeQuery(GlobalEngine.java:191)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                blrunner JaeHwa Jung
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: