Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-283 Add Table Partitioning
  3. TAJO-369

Add CREATE EXTERNAL TABLE... BY PARTITION statement to parser

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.8.0
    • 0.8.0
    • SQL Parser
    • None

    Description

      I found parse error when I wrote 'CREATE EXTERNAL TABLE BY PARTITION' statement as follows:

      2013-12-03 16:42:36,800 ERROR master.GlobalEngine (GlobalEngine.java:executeQuery(172)) - 
      Stack Trace:
      org.apache.tajo.engine.parser.SQLSyntaxError: ERROR: mismatched input 'PARTITION' expecting <EOF>
      LINE 1:123  ... ON 'hdfs://localhost:9010/tajo/warehouse/sales_column3' PARTITION BY COLUMN(col1)
      	at org.apache.tajo.engine.parser.SQLAnalyzer.parse(SQLAnalyzer.java:64)
      	at org.apache.tajo.master.GlobalEngine.executeQuery(GlobalEngine.java:134)
      	at org.apache.tajo.master.TajoMasterClientService$TajoMasterClientProtocolServiceHandler.submitQuery(TajoMasterClientService.java:131)
      	at org.apache.tajo.ipc.TajoMasterClientProtocol$TajoMasterClientProtocolService$2.callBlockingMethod(TajoMasterClientProtocol.java:228)
      

      SQLAnalyzer needs to support this statement.

      Attachments

        Activity

          People

            blrunner JaeHwa Jung
            blrunner JaeHwa Jung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: