Apache Drill
  1. Apache Drill
  2. DRILL-416

Make Drill work with SELECT without FROM

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.4.0
    • Fix Version/s: Future
    • Component/s: None
    • Labels:
      None

      Description

      This works with postgres:

      [root@qa-node120 ~]# sudo -u postgres psql foodmart
      foodmart=# select 1+1.1;
      ?column?
      ----------
      2.1
      (1 row)

      But does not work with Drill:

      0: jdbc:drill:> select 1+1.1;
      Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "100f4d4c-1ee1-495e-9c2f-547aae75473d"
      endpoint

      { address: "qa-node118.qa.lab" user_port: 31010 control_port: 31011 data_port: 31012 }

      error_type: 0
      message: "Failure while parsing sql. < SqlParseException:[ Encountered \"<EOF>\" at line 1, column 12.\nWas expecting one of:....

        Activity

        Chun Chang created issue -
        Jake Farrell made changes -
        Field Original Value New Value
        Workflow no-reopen-closed, patch-avail [ 12848254 ] no-reopen-closed, patch-avail, testing [ 12860191 ]
        Chun Chang made changes -
        Priority Major [ 3 ] Blocker [ 1 ]
        Chun Chang made changes -
        Priority Blocker [ 1 ] Major [ 3 ]
        Jacques Nadeau made changes -
        Fix Version/s Future [ 12326743 ]
        Tony Stevenson made changes -
        Workflow no-reopen-closed, patch-avail, testing [ 12860191 ] Drill workflow [ 12933842 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Chun Chang
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development