Merging upstream version 24.1.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
9689eb837b
commit
d5706efe6b
70 changed files with 55134 additions and 50721 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue