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

count(boolean) always returns 'true'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.0
    • Fix Version/s: 0.7.0
    • Component/s: Functions - Drill
    • Labels:
      None

      Description

      #Wed Oct 29 09:57:56 PDT 2014
      git.commit.id.abbrev=2871c3b

      count a boolean column always return the value 'true':

      0: jdbc:drill:schema=dfs.drillTestDirMondrian> select count(t.bool) from `complex.json` t where t.bool = true;
      ------------

      EXPR$0

      ------------

      true

      ------------
      1 row selected (0.145 seconds)
      0: jdbc:drill:schema=dfs.drillTestDirMondrian> select count(t.bool) from `complex.json` t where t.bool = false;
      ------------

      EXPR$0

      ------------

      true

      ------------
      1 row selected (0.169 seconds)

        Attachments

        1. DRILL-1619.patch
          6 kB
          Mehant Baid

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: