Giter VIP home page Giter VIP logo

Comments (4)

Yuhta avatar Yuhta commented on July 29, 2024 1

Why are we marking this as mismatch in the first place? Floating point numbers are compared with delta within epsilon, no?

from velox.

mbasmanova avatar mbasmanova commented on July 29, 2024

CC: @Krishna-Prasad-P-V

from velox.

kagamiori avatar kagamiori commented on July 29, 2024

Why are we marking this as mismatch in the first place? Floating point numbers are compared with delta within epsilon, no?

@Yuhta Unfortunately, our result comparison methods in QueryAssertions.cpp didn't compare this result with epsilon because the rest non-floating-point columns doesn't form unique keys. This is a limitation of our QueryAssertions, so it would be good to extend it.

from velox.

kagamiori avatar kagamiori commented on July 29, 2024

Here is where the condition for epsilon comparison was not satisfied in QueryAssertions:

if (not compareMaterializedRows(expectedRows, actualRows)) {
std::string note = numFloatingPointColumns > 0
? "\nNote: results are compared without epsilon because values at non-floating-point columns do not form unique keys."
: "";

QueryAssertions requires every row to have distinct combination of values at non-floating-point columns so that it can find the corresponding rows between the expected and actual result vectors. This condition was not satisfied in the fuzzer iteration of chi_squared_cdf(), so epsilon comparison was not used. One solution would be to add an additional "row_number" bigint column to the input vector and project this column to the result as well. Then this column would be able to distinctly identify the corresponding rows between the expected and actual result vectors and hence enable the epsilon comparison.

from velox.

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.