verdict-project / verdict

Interactive-Speed Analytics: 200x Faster, 200x Fewer Cluster Resources, Approximate Query Processing
http://verdictdb.org
Apache License 2.0
248 stars 66 forks source link

Occasional scaling error #316

Closed pyongjoo closed 5 years ago

pyongjoo commented 5 years ago

Often the scaled answers are not identical to the expected answers.

An example is: https://circleci.com/gh/mozafari/verdictdb/3092

pyongjoo commented 5 years ago

@Beastjoe I think this is something to do with inMemoryAggregate, but haven't found its cause. If you have any suggestions, let me know.

Beastjoe commented 5 years ago

I have encountered this problem before, like https://circleci.com/gh/mozafari/verdictdb/2226. It seems the redshift tests are more likely to go wrong.

dongyoungy commented 5 years ago

FYI, here are the ones that I have encountered:

queryCountDistinct3Test - org.verdictdb.coordinator.PrestoTpchSelectQueryCoordinatorTest
java.lang.AssertionError: expected:<2606> but was:<2868>
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.failNotEquals(Assert.java:834)
    at org.junit.Assert.assertEquals(Assert.java:645)
    at org.junit.Assert.assertEquals(Assert.java:631)
    at org.verdictdb.coordinator.PrestoTpchSelectQueryCoordinatorTest.queryCountDistinct3Test(PrestoTpchSelectQueryCoordinatorTest.java:194)
query17Test - org.verdictdb.coordinator.PostgreSqlTpchSelectQueryCoordinatorTest
java.lang.AssertionError: expected:<5371277.948571429> but was:<6409089.335714285>
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.failNotEquals(Assert.java:834)
    at org.junit.Assert.assertEquals(Assert.java:553)
    at org.junit.Assert.assertEquals(Assert.java:683)
    at org.verdictdb.coordinator.PostgreSqlTpchSelectQueryCoordinatorTest.query17Test(PostgreSqlTpchSelectQueryCoordinatorTest.java:403)
pyongjoo commented 5 years ago

A fix has been posted (hopefully): https://github.com/mozafari/verdictdb/pull/317