Skip to content

Commit

Permalink
Update SLT tests for "Allow testing values with trailing whitespace ..."
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Oct 31, 2024
1 parent 005d146 commit 6d31916
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions datafusion/sqllogictest/test_files/map.slt
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ SELECT MAP {'a': 1, null: 2}
query ?
SELECT MAP {[1,2,3]:1, [2,4]:2};
----
{[1, 2, 3]: 1, [2, 4]: 2}
{[1, 2, 3]: 1, [2, 4]: 2}

# array with different type as key
# expect to fail due to type coercion error
Expand Down Expand Up @@ -483,7 +483,7 @@ SELECT MAP { MAP {1:'a', 2:'b'}:1, MAP {1:'c', 2:'d'}:2 };
query ?
SELECT MAP { MAP {1:'a', 2:'b', 3:'c'}:1, MAP {2:'c', 4:'d'}:2 };
----
{{1: a, 2: b, 3: c}: 1, {2: c, 4: d}: 2}
{{1: a, 2: b, 3: c}: 1, {2: c, 4: d}: 2}

# map as value
query ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ NULL
query TT
select 'a'::VARCHAR, ''::VARCHAR
----
a (empty)
a (empty)

skipif postgres
query TT
select 'a'::CHAR, ''::CHAR
----
a (empty)
a (empty)

query TT
select 'a'::TEXT, ''::TEXT
----
a (empty)
a (empty)

skipif postgres
query I
Expand Down
6 changes: 3 additions & 3 deletions datafusion/sqllogictest/test_files/select.slt
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ VALUES (-1)
query IIB
VALUES (2+1,2-1,2>1)
----
3 1 true
3 1 true

# multiple rows values
query I rowsort
Expand All @@ -472,8 +472,8 @@ VALUES (1),(2)
query IT rowsort
VALUES (1,'a'),(2,'b')
----
1 a
2 b
1 a
2 b

# table foo for distinct order by
statement ok
Expand Down
72 changes: 36 additions & 36 deletions datafusion/sqllogictest/test_files/window.slt
Original file line number Diff line number Diff line change
Expand Up @@ -3679,14 +3679,14 @@ SELECT
FROM score_board s
ORDER BY team_name, score;
----
Mongrels Apu 350 1
Mongrels Ned 666 1
Mongrels Meg 1030 2
Mongrels Burns 1270 2
Simpsons Homer 1 1
Simpsons Lisa 710 1
Simpsons Marge 990 2
Simpsons Bart 2010 2
Mongrels Apu 350 1
Mongrels Ned 666 1
Mongrels Meg 1030 2
Mongrels Burns 1270 2
Simpsons Homer 1 1
Simpsons Lisa 710 1
Simpsons Marge 990 2
Simpsons Bart 2010 2

query TTII
SELECT
Expand All @@ -3697,14 +3697,14 @@ SELECT
FROM score_board s
ORDER BY score;
----
Simpsons Homer 1 1
Mongrels Apu 350 1
Mongrels Ned 666 1
Simpsons Lisa 710 1
Simpsons Marge 990 2
Mongrels Meg 1030 2
Mongrels Burns 1270 2
Simpsons Bart 2010 2
Simpsons Homer 1 1
Mongrels Apu 350 1
Mongrels Ned 666 1
Simpsons Lisa 710 1
Simpsons Marge 990 2
Mongrels Meg 1030 2
Mongrels Burns 1270 2
Simpsons Bart 2010 2

query TTII
SELECT
Expand All @@ -3715,14 +3715,14 @@ SELECT
FROM score_board s
ORDER BY team_name, score;
----
Mongrels Apu 350 1
Mongrels Ned 666 2
Mongrels Meg 1030 3
Mongrels Burns 1270 4
Simpsons Homer 1 1
Simpsons Lisa 710 2
Simpsons Marge 990 3
Simpsons Bart 2010 4
Mongrels Apu 350 1
Mongrels Ned 666 2
Mongrels Meg 1030 3
Mongrels Burns 1270 4
Simpsons Homer 1 1
Simpsons Lisa 710 2
Simpsons Marge 990 3
Simpsons Bart 2010 4

query TTII
SELECT
Expand All @@ -3733,14 +3733,14 @@ SELECT
FROM score_board s
ORDER BY team_name, score;
----
Mongrels Apu 350 1
Mongrels Ned 666 1
Mongrels Meg 1030 1
Mongrels Burns 1270 1
Simpsons Homer 1 1
Simpsons Lisa 710 1
Simpsons Marge 990 1
Simpsons Bart 2010 1
Mongrels Apu 350 1
Mongrels Ned 666 1
Mongrels Meg 1030 1
Mongrels Burns 1270 1
Simpsons Homer 1 1
Simpsons Lisa 710 1
Simpsons Marge 990 1
Simpsons Bart 2010 1

# incorrect number of parameters for ntile
query error DataFusion error: Execution error: NTILE requires a positive integer, but finds NULL
Expand Down Expand Up @@ -4849,10 +4849,10 @@ SELECT
nth_value(column2, arrow_cast(2, 'Int32')) OVER (order by column1)
FROM t;
----
3 1 1 4 4 NULL NULL NULL NULL
4 1 1 5 5 3 3 4 4
5 2 2 6 6 4 4 4 4
6 2 2 NULL NULL 5 5 4 4
3 1 1 4 4 NULL NULL NULL NULL
4 1 1 5 5 3 3 4 4
5 2 2 6 6 4 4 4 4
6 2 2 NULL NULL 5 5 4 4

# NTILE specifies the argument types so the error is different
query error
Expand Down

0 comments on commit 6d31916

Please sign in to comment.