-
Notifications
You must be signed in to change notification settings - Fork 6
Update expected output for coalsece short-circuit #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37288,11 +37288,11 @@ SELECT DISTINCT 87 * + 75 * - 22 AS col0 | |
| ---- | ||
| -143550 | ||
|
|
||
| # Datafusion - Datafusion expected results: | ||
| # Datafusion - Expected - -29 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is actually kind of cool -- @Omega359 's script left in the expected results, so we can see that after this change DataFusion is now actually generating the expected results
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in this case, -29
-900 |
||
| # Datafusion - Expected - -900 | ||
| query error DataFusion error: Arrow error: Divide by zero error | ||
| query II rowsort label-7077 | ||
| SELECT ALL 10 + COALESCE ( + - 39, - + ( COUNT ( * ) ) * + + MAX ( DISTINCT - 64 ) * + ( + 56 ) / + 0 ), - 60 * - - 15 AS col2 | ||
| ---- | ||
| -29 | ||
| -900 | ||
|
|
||
| query I rowsort | ||
| SELECT - COALESCE ( CASE 20 WHEN - 1 THEN + 14 * - + 5 + 29 ELSE NULL END, + 78 ) AS col2 | ||
|
|
@@ -44097,10 +44097,10 @@ SELECT ALL CAST ( NULL AS INTEGER ) + 53 * 66 * - + COUNT ( * ) * + - 26 + 19 | |
| ---- | ||
| NULL | ||
|
|
||
| # Datafusion - Datafusion expected results: | ||
| # Datafusion - Expected - -45 | ||
| query error DataFusion error: Arrow error: Divide by zero error | ||
| query I rowsort label-8381 | ||
| SELECT - - COALESCE ( - 45, NULLIF ( + 94, + - 92 - - - 61 + 19 * COUNT ( * ) * + - 36 * - 64 / - + 67 * ( + 58 ) / COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) * + 59, + 63 ) | ||
| ---- | ||
| -45 | ||
|
|
||
| query I rowsort label-8382 | ||
| SELECT - - 84 * - 45 * - - CASE - 72 WHEN 91 THEN COUNT ( * ) WHEN + 31 THEN NULL ELSE NULL END AS col0 | ||
|
|
@@ -49579,10 +49579,10 @@ SELECT - 68 - 41 | |
| ---- | ||
| -109 | ||
|
|
||
| # Datafusion - Datafusion expected results: | ||
| # Datafusion - Expected - NULL | ||
| query error DataFusion error: Arrow error: Divide by zero error | ||
| query I rowsort label-9427 | ||
| SELECT CASE - 92 WHEN - - 20 * - 46 + - - 8 THEN - 70 WHEN + ( - 2 ) THEN 73 - + - CAST ( 51 AS INTEGER ) + + + 53 WHEN - 59 THEN CAST ( ( 23 ) AS INTEGER ) * 82 WHEN MIN ( 80 ) / COALESCE ( - 4, - COUNT ( * ) / 0 ) + 72 / 9 THEN 36 * 81 + + 0 * 78 END + 43 AS col2 | ||
| ---- | ||
| NULL | ||
|
|
||
| query I rowsort label-9428 | ||
| SELECT CAST ( NULL AS INTEGER ) - + - COALESCE ( 4, MIN ( 32 ) ) + MAX ( - 73 ) AS col0 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given these are in files "good" I think they should be succeeding
I confirmed (for this one) that this is the answer that postgres gives