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

Allow implicit cast from strings to boolean

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.9.0
    • Component/s: Functions - Drill
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: