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

Explicit casting to boolean fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Component/s: Execution - Data Types
    • Labels:
      None

      Description

      0: jdbc:drill:schema=dfs.TpcHMulti> select cast(C_CUSTKEY as boolean) as booleantest from customer limit 1;
      Query failed: org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "c20bd69f-bb5c-443e-a01b-8571b4c86490"
      endpoint {
      address: "drillats1.qa.lab"
      user_port: 31010
      control_port: 31011
      data_port: 31012
      }
      error_type: 0
      message: "Failure while parsing sql. < IllegalArgumentException:[ No enum constant org.apache.drill.common.types.TypeProtos.MinorType.BOOLEAN ]"
      ]
      Error: exception while executing query (state=,code=0)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                adityakishore Aditya Kishore
                Reporter:
                inramana Ramana Inukonda Nagaraj
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: