Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2775

message error not clear when doing a select or ctas on empty folder

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.13.0
    • Component/s: Metadata
    • Labels:
      None

      Description

      if you have an empty folder "emptyfolder", you get a cryptic error message when you try to query the folder or CTAS a table that has the same name of the empty folder:

      0: jdbc:drill:zk=local> select * from emptyfolder;
      Error: PARSE ERROR: Index: 0, Size: 0
      
      [Error Id: ef86154b-8219-4b48-84bf-cb318f7d4ae4 on abdel-11.qa.lab:31010] (state=,code=0)
      
      0: jdbc:drill:zk=local> create table emptyfolder as select * from `test.json`;
      Error: SYSTEM ERROR: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      
      [Error Id: 1c3965f4-1566-4df6-9bb6-a91211771976 on abdel-11.qa.lab:31010] (state=,code=0)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vitalii Vitalii Diravka
                Reporter:
                rkins Rahul Kumar Challapalli
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: