Coder Social home page Coder Social logo

blazingsql-testing-files's People

Contributors

aucahuasi avatar ayushdg avatar beckernick avatar christian8491 avatar derekmorr avatar diegodfrf avatar felipeblazing avatar jeanp413 avatar kharoc avatar rommeldb avatar wmalpica avatar

Watchers

 avatar  avatar  avatar  avatar

blazingsql-testing-files's Issues

[BUG] Coalesce in distributed mode (nRALS=2) produces wrong results

Describe the bug
The following coalesceTest queries produces wrong results with nRALS = 2.

queryId = "TEST_06"
query = """select SUM(COALESCE(n2.n_nationkey, 100)),
        COUNT(DISTINCT(COALESCE(n1.n_nationkey,32))),
        n2.n_regionkey as n1key from nation as n1
        full outer join nation as n2
        on n1.n_nationkey = n2.n_nationkey + 6
        GROUP BY n2.n_regionkey"""

queryId = 'TEST_09'
query = """select SUM(COALESCE(n2.n_nationkey, 100)),
      COUNT(DISTINCT(COALESCE(n1.n_nationkey,32))),
      COALESCE(n2.n_regionkey, 100) as n1key from nation as n1
      full outer join nation as n2
      on n1.n_nationkey = n2.n_nationkey + 6
      GROUP BY COALESCE(n2.n_regionkey, 100)"""

Current log:

ERROR: Different values

==============================
Coalesce
==============================
select SUM(COALESCE(n2.n_nationkey, 100)),
                    COUNT(DISTINCT(COALESCE(n1.n_nationkey,32))),
                    n2.n_regionkey as n1key from nation as n1
                    full outer join nation as n2
                    on n1.n_nationkey = n2.n_nationkey + 6
                    GROUP BY n2.n_regionkey

=============== New query: TEST_06 - parquet =================
                           #BLZ:                                                                                                                   
   EXPR$0  EXPR$1  n1key   
0    47.0     5.0    1.0
1    50.0     5.0    0.0
1    58.0     5.0    4.0
2    68.0     5.0    2.0
0    77.0     4.0    3.0
3   600.0     6.0    NaN
#DRILL:
   EXPR$0  EXPR$1  n1key
1    47.0     5.0    1.0
0    50.0     5.0    0.0
2    58.0     5.0    4.0
4    68.0     5.0    2.0
3    77.0     3.0    3.0
5   600.0     6.0    NaN
TEST_06 Test Coalesce - parquet
#QUERY:
select SUM(COALESCE(n2.n_nationkey, 100)),
                    COUNT(DISTINCT(COALESCE(n1.n_nationkey,32))),
                    n2.n_regionkey as n1key from nation as n1
                    full outer join nation as n2
                    on n1.n_nationkey = n2.n_nationkey + 6
                    GROUP BY n2.n_regionkey
RESULT:
ERROR:
Different values
Fail
TOTAL TIME: 
541.649341583252
CRASHED NODES: 
TOTAL NODES: 
===================================================
select SUM(COALESCE(n2.n_nationkey, 100)),
                  COUNT(DISTINCT(COALESCE(n1.n_nationkey,32))),
                  COALESCE(n2.n_regionkey, 100) as n1key from nation as n1
                  full outer join nation as n2
                  on n1.n_nationkey = n2.n_nationkey + 6
                  GROUP BY COALESCE(n2.n_regionkey, 100)

=============== New query: TEST_09 - parquet =================
                           #BLZ:                                                                                                                   
   EXPR$0  EXPR$1  n1key   
0    47.0     5.0    1.0
1    50.0     5.0    0.0
0    58.0     5.0    4.0
2    68.0     5.0    2.0
1    77.0     4.0    3.0
2   600.0     6.0  100.0
#DRILL:
   EXPR$0  EXPR$1  n1key
1    47.0     5.0    1.0
0    50.0     5.0    0.0
2    58.0     5.0    4.0
4    68.0     5.0    2.0
3    77.0     3.0    3.0
5   600.0     6.0  100.0
TEST_09 Test Coalesce - parquet
#QUERY:
select SUM(COALESCE(n2.n_nationkey, 100)),
                  COUNT(DISTINCT(COALESCE(n1.n_nationkey,32))),
                  COALESCE(n2.n_regionkey, 100) as n1key from nation as n1
                  full outer join nation as n2
                  on n1.n_nationkey = n2.n_nationkey + 6
                  GROUP BY COALESCE(n2.n_regionkey, 100)
RESULT:
ERROR:
Different values
Fail
TOTAL TIME: 
415.5755043029785
CRASHED NODES: 
TOTAL NODES: 
===================================================

Expected behavior
The above queries should generate a right output.

Environment overview

  • Environment location: Bare-metal
  • Method of cuDF install: conda nightly branch-0.19
  • Method of BSQL install: From source, nightly branch-0.19

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.