Uploaded image for project: 'Parquet'
  1. Parquet
  2. PARQUET-250

StatisticsFilter "And"'s semantic error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.6.0
    • None
    • parquet-mr

    Description

      public Boolean visit(And and) {
          return and.getLeft().accept(this) && and.getRight().accept(this);
        }
      

      visit(And and) is used to determine whether a row group "canDrop", therefore, in "And" situation, either left "canDrop" or right "canDrop" would lead the row group "canDrop", so we need a "||" here to make the choice.

      Therefore, it should be:

      public Boolean visit(And and) {
          return and.getLeft().accept(this) || and.getRight().accept(this);
        }
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yijieshen Yijie Shen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: