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

Casting varchar to varbinary fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 1.2.0
    • Execution - Data Types
    • None

    Description

      git.commit.id.abbrev=5fbd274

      The below query fails :

      select concat(cast(cast('apache ' as varchar(7)) as varbinary(20)), 'drill') from `dummy.json`;
      Query failed: PARSE ERROR: From line 1, column 15 to line 1, column 66: Cast function cannot convert value of type VARCHAR(7) to type VARBINARY(20)
      
      
      [4b5916d1-6b96-42a0-9afa-80706f2bd263 on qa-node191.qa.lab:31010]
      Error: exception while executing query: Failure while executing query. (state=,code=0)
      

      I attached the error log.

      Attachments

        1. error.log
          17 kB
          Rahul Kumar Challapalli

        Activity

          People

            rkins Rahul Kumar Challapalli
            rkins Rahul Kumar Challapalli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: