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

Allow implicit cast from strings to boolean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.9.0
    • Functions - Drill
    • None

    Description

      The following query fails:

      select * from dfs.`bool.json` where key = 'true';
      Error in expression at index -1.  Error: Missing function implementation: [castINT(BIT-REQUIRED)].  Full expression: --UNKNOWN EXPRESSION--..
      

      The reason is that a prior fix for DRILL-2590 removed the implicit casting from string literals to boolean. That fix is valid for non-string values.

      Attachments

        Activity

          People

            cchang@maprtech.com Chun Chang
            amansinha100 Aman Sinha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: