1
0
Fork 0

Merging upstream version 25.5.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 21:41:14 +01:00
parent 298e7a8147
commit 029b9c2c73
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
136 changed files with 80990 additions and 72541 deletions

View file

@ -56,6 +56,34 @@ class TestDoris(Validator):
"postgres": "SELECT STRING_AGG('aa', ',')",
},
)
self.validate_all(
"SELECT LAG(1, 1, NULL) OVER (ORDER BY 1)",
read={
"doris": "SELECT LAG(1, 1, NULL) OVER (ORDER BY 1)",
"postgres": "SELECT LAG(1) OVER (ORDER BY 1)",
},
)
self.validate_all(
"SELECT LAG(1, 2, NULL) OVER (ORDER BY 1)",
read={
"doris": "SELECT LAG(1, 2, NULL) OVER (ORDER BY 1)",
"postgres": "SELECT LAG(1, 2) OVER (ORDER BY 1)",
},
)
self.validate_all(
"SELECT LEAD(1, 1, NULL) OVER (ORDER BY 1)",
read={
"doris": "SELECT LEAD(1, 1, NULL) OVER (ORDER BY 1)",
"postgres": "SELECT LEAD(1) OVER (ORDER BY 1)",
},
)
self.validate_all(
"SELECT LEAD(1, 2, NULL) OVER (ORDER BY 1)",
read={
"doris": "SELECT LEAD(1, 2, NULL) OVER (ORDER BY 1)",
"postgres": "SELECT LEAD(1, 2) OVER (ORDER BY 1)",
},
)
def test_identity(self):
self.validate_identity("COALECSE(a, b, c, d)")