Adding upstream version 25.18.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1341bc6477
commit
b35dbeb6b6
81 changed files with 34133 additions and 33517 deletions
|
@ -598,12 +598,12 @@ WHERE
|
|||
self.validate_all(
|
||||
"DIV0(foo, bar)",
|
||||
write={
|
||||
"snowflake": "IFF(bar = 0, 0, foo / bar)",
|
||||
"sqlite": "IIF(bar = 0, 0, CAST(foo AS REAL) / bar)",
|
||||
"presto": "IF(bar = 0, 0, CAST(foo AS DOUBLE) / bar)",
|
||||
"spark": "IF(bar = 0, 0, foo / bar)",
|
||||
"hive": "IF(bar = 0, 0, foo / bar)",
|
||||
"duckdb": "CASE WHEN bar = 0 THEN 0 ELSE foo / bar END",
|
||||
"snowflake": "IFF(bar = 0 AND NOT foo IS NULL, 0, foo / bar)",
|
||||
"sqlite": "IIF(bar = 0 AND NOT foo IS NULL, 0, CAST(foo AS REAL) / bar)",
|
||||
"presto": "IF(bar = 0 AND NOT foo IS NULL, 0, CAST(foo AS DOUBLE) / bar)",
|
||||
"spark": "IF(bar = 0 AND NOT foo IS NULL, 0, foo / bar)",
|
||||
"hive": "IF(bar = 0 AND NOT foo IS NULL, 0, foo / bar)",
|
||||
"duckdb": "CASE WHEN bar = 0 AND NOT foo IS NULL THEN 0 ELSE foo / bar END",
|
||||
},
|
||||
)
|
||||
self.validate_all(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue