Git Product home page Git Product logo

Comments (12)

guiyanakuang avatar guiyanakuang commented on July 25, 2024 2

Thanks to capturing these failed tests, @williamhyun
I conducted some investigation.
Prior to #1055, it was just coincidence that these tests would pass, after #1055 was fixed so that the push-down judgement could continue to be executed.

  1. testIsNaN[format = orc] This test is no longer working.
    When orc is not written to Double.NaN, and DoubleStatistics sum is a finite value, we can correctly push down no_nans = NaN and skip this stripe.
  2. testNotNaN[format = orc] is still a valid test.
    The reason this test doesn't pass is that the statistics check for the Float type is missing.
    } else if (category == TypeDescription.Category.DOUBLE) {
    DoubleColumnStatistics dstas = (DoubleColumnStatistics) cs;
    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;
    }
    }

    category == TypeDescription.Category.DOUBLE || category == TypeDescription.Category.FLOAT

from orc.

williamhyun avatar williamhyun commented on July 25, 2024 1

Thank you @guiyanakuang !
I am retesting on both Iceberg and Spark.

from orc.

williamhyun avatar williamhyun commented on July 25, 2024 1

Thank you, I am rerunning the tests here:

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

Thank you for reporting, @williamhyun .

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

Oh, thank you, @guiyanakuang !

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

I also quickly re-checked the Iceberg test. So, TestMetricsRowGroupFilter passed except the following one mentioned by @guiyanakuang .

shouldRead = shouldRead(isNaN("no_nans"));
Assert.assertTrue("Should read: NaN counts are not tracked in Parquet metrics", shouldRead);

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

If you get the results, please share them to the dev mailing list, @williamhyun .

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

@williamhyun
ORC-1147 landed to main/branch-1.7/1.6. Could you rerun the integration tests, please?

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

Thank you for rerunning it. Yes, I saw Spark passed and Iceberg has only the following. If we comment out the test, it will pass cleanly.

org.apache.iceberg.data.TestMetricsRowGroupFilter > testIsNaN[format = orc] FAILED
    java.lang.AssertionError: Should read: NaN counts are not tracked in Parquet metrics
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.assertTrue(Assert.java:42)
        at org.apache.iceberg.data.TestMetricsRowGroupFilter.testIsNaN(TestMetricsRowGroupFilter.java:308)

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

BTW,

  • if you feel ok, please close this issue and move forward, @williamhyun . :)
  • Since the same patches are in the branch-1.6, I'll trigger integration test for them separately as a release manager of Apache ORC 1.6.14 as a part of #1081 .

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

One more thing. @williamhyun . If you don't mind, please follow the style of #1081 and update your release issue, #1046 . It will be greatly helpful for people to track your efforts and progress.

from orc.

dongjoon-hyun avatar dongjoon-hyun commented on July 25, 2024

Thank you for verifying and closing this.

from orc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.