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

CONVERT_FROM gives no specific message with called with bad type value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Invoking CONVERT_FROM like this:

      SELECT CONVERT_FROM(CAST(NULL AS INTEGER), '') FROM INFORMATION_SCHEMA.CATALOGS;

      yields errors with no useful information (nothing specific to the problem):

      0: jdbc:drill:zk=local> SELECT CONVERT_FROM(CAST(NULL AS INTEGER), '') FROM INFORMATION_SCHEMA.CATALOGS;
      Query failed: AssertionError:

      Error: exception while executing query: Failure while executing query. (state=,code=0)
      0: jdbc:drill:zk=local>

      Invoking CONFIRM_FROM with a bad type string should yield a message saying that the type string was unrecognized (and eventually should list all valid type strings that Drill knows).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsbos Daniel Barclay
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: