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

Specific query returns an exception if filter a boolean column by "equals" operator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.14.0
    • None

    Description

      Data:
      Use the attached dataset

      Query:

       select *
       from dfs.tmp.`Test_data`
       where bool_col = true and part_col in ('Partition_two')
      

      Expected result:
      The query should return result normally

      Actual result:
      Exception happens:

      Error: SYSTEM ERROR: ClassCastException: org.apache.drill.common.expression.TypedFieldExpr cannot be cast to org.apache.drill.exec.expr.stat.ParquetFilterPredicate
      

      Notes:
      It works OK if use "is" operator or if not use "*" in the select statement

      Attachments

        1. Test_data.tar.gz
          1 kB
          Anton Gozhiy

        Issue Links

          Activity

            People

              arina Arina Ielchiieva
              angozhiy Anton Gozhiy
              Vova Vysotskyi Vova Vysotskyi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: