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

Convert_to/Convert_From throw assertion when an incorrect encoding type is specified

    Details

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

      Description

      Below is the error from SQLLine. Replacing UTF-8 to UTF8 works fine.
      The error message need to accurately represent the problem.

      0: jdbc:drill:> select Convert_from(t.address.state,'UTF-8') from customers t limit 10;
      Query failed: AssertionError:

      Error: exception while executing query: Failure while executing query. (state=,code=0)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                parthc Parth Chandra
                Reporter:
                Neeraja Neeraja
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: