Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-1147

Use `isNaN` instead of `isFinite` to determine the contain NaN values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.7.3, 1.6.13
    • 1.7.4, 1.6.14
    • Java
    • None

    Description

            if (!Double.isFinite(dstas.getSum())) {
              LOG.debug("Not using predication pushdown on {} because stats contain NaN values",
                      predicate.getColumnName());
              return dstas.hasNull() ? TruthValue.YES_NO_NULL : TruthValue.YES_NO;
            }
      }
      

      The isFinite function does not determine whether there is a NaN write or not, and there is a possibility of a sum overflow; we should use `isNaN` instead to determine this

      Attachments

        Activity

          People

            Guiyankuang Yiqun Zhang
            Guiyankuang Yiqun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: