File tree Expand file tree Collapse file tree
sql/core/src/test/resources/sql-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ SELECT false AS `false`;
2323SELECT boolean (' t' ) AS true;
2424
2525-- [SPARK-27931] Trim the string when cast string type to boolean type
26- SELECT boolean (' f ' ) AS ` true ` ;
26+ SELECT boolean (' f ' ) AS ` false ` ;
2727
2828SELECT boolean (' true' ) AS true;
2929
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ SELECT boolean(' f ') AS `false`
3939-- !query 4 schema
4040struct<false:boolean>
4141-- !query 4 output
42- NULL
42+ false
4343
4444
4545-- !query 5
@@ -127,23 +127,23 @@ SELECT boolean('on') AS true
127127-- !query 15 schema
128128struct<true:boolean>
129129-- !query 15 output
130- NULL
130+ true
131131
132132
133133-- !query 16
134134SELECT boolean('off') AS `false`
135135-- !query 16 schema
136136struct<false:boolean>
137137-- !query 16 output
138- NULL
138+ false
139139
140140
141141-- !query 17
142142SELECT boolean('of') AS `false`
143143-- !query 17 schema
144144struct<false:boolean>
145145-- !query 17 output
146- NULL
146+ false
147147
148148
149149-- !query 18
@@ -296,7 +296,7 @@ SELECT boolean(string(' true ')) AS true,
296296-- !query 36 schema
297297struct<true:boolean,false:boolean>
298298-- !query 36 output
299- NULL NULL
299+ true false
300300
301301
302302-- !query 37
You can’t perform that action at this time.
0 commit comments