Merging upstream version 26.12.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
d24d19e9ea
commit
69b6dd9501
70 changed files with 1134 additions and 340 deletions
|
@ -1569,3 +1569,29 @@ class TestDuckDB(Validator):
|
|||
""",
|
||||
"SELECT l_returnflag, l_linestatus, SUM(l_quantity) AS sum_qty, SUM(l_extendedprice) AS sum_base_price, SUM(l_extendedprice * (1 - l_discount)) AS sum_disc_price, SUM(l_extendedprice * (1 - l_discount) * (1 + l_tax)) AS sum_charge, AVG(l_quantity) AS avg_qty, AVG(l_extendedprice) AS avg_price, AVG(l_discount) AS avg_disc, COUNT(*) AS count_order",
|
||||
)
|
||||
|
||||
def test_at_sign_to_abs(self):
|
||||
self.validate_identity(
|
||||
"SELECT @col FROM t",
|
||||
"SELECT ABS(col) FROM t",
|
||||
)
|
||||
self.validate_identity(
|
||||
"SELECT @col + 1 FROM t",
|
||||
"SELECT ABS(col + 1) FROM t",
|
||||
)
|
||||
self.validate_identity(
|
||||
"SELECT (@col) + 1 FROM t",
|
||||
"SELECT (ABS(col)) + 1 FROM t",
|
||||
)
|
||||
self.validate_identity(
|
||||
"SELECT @(-1)",
|
||||
"SELECT ABS((-1))",
|
||||
)
|
||||
self.validate_identity(
|
||||
"SELECT @(-1) + 1",
|
||||
"SELECT ABS((-1) + 1)",
|
||||
)
|
||||
self.validate_identity(
|
||||
"SELECT (@-1) + 1",
|
||||
"SELECT (ABS(-1)) + 1",
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue