1
0
Fork 0

Adding upstream version 24.1.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 21:36:52 +01:00
parent 8b1190270c
commit dd3422a695
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
70 changed files with 55134 additions and 50721 deletions

View file

@ -6,6 +6,13 @@ class TestRedshift(Validator):
dialect = "redshift"
def test_redshift(self):
self.validate_all(
"SELECT SPLIT_TO_ARRAY('12,345,6789')",
write={
"postgres": "SELECT STRING_TO_ARRAY('12,345,6789', ',')",
"redshift": "SELECT SPLIT_TO_ARRAY('12,345,6789', ',')",
},
)
self.validate_all(
"GETDATE()",
read={
@ -473,6 +480,10 @@ FROM (
self.validate_identity("CREATE TABLE table_backup BACKUP YES AS SELECT * FROM event")
self.validate_identity("CREATE TABLE table_backup (i INTEGER, b VARCHAR) BACKUP NO")
self.validate_identity("CREATE TABLE table_backup (i INTEGER, b VARCHAR) BACKUP YES")
self.validate_identity(
"select foo, bar from table_1 minus select foo, bar from table_2",
"SELECT foo, bar FROM table_1 EXCEPT SELECT foo, bar FROM table_2",
)
def test_create_table_like(self):
self.validate_identity(