Skip to content

Commit 2ab1847

Browse files
committed
fix postgreSQL/boolean.sql
1 parent 53c9a9b commit 2ab1847

File tree

1 file changed

+36
-24
lines changed

1 file changed

+36
-24
lines changed

sql/core/src/test/resources/sql-tests/results/postgreSQL/boolean.sql.out

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ true
5353
-- !query 6
5454
SELECT boolean('test') AS error
5555
-- !query 6 schema
56-
struct<error:boolean>
56+
struct<>
5757
-- !query 6 output
58-
NULL
58+
java.lang.IllegalArgumentException
59+
invalid input syntax for type boolean: test
5960

6061

6162
-- !query 7
@@ -69,9 +70,10 @@ false
6970
-- !query 8
7071
SELECT boolean('foo') AS error
7172
-- !query 8 schema
72-
struct<error:boolean>
73+
struct<>
7374
-- !query 8 output
74-
NULL
75+
java.lang.IllegalArgumentException
76+
invalid input syntax for type boolean: foo
7577

7678

7779
-- !query 9
@@ -93,9 +95,10 @@ true
9395
-- !query 11
9496
SELECT boolean('yeah') AS error
9597
-- !query 11 schema
96-
struct<error:boolean>
98+
struct<>
9799
-- !query 11 output
98-
NULL
100+
java.lang.IllegalArgumentException
101+
invalid input syntax for type boolean: yeah
99102

100103

101104
-- !query 12
@@ -117,9 +120,10 @@ false
117120
-- !query 14
118121
SELECT boolean('nay') AS error
119122
-- !query 14 schema
120-
struct<error:boolean>
123+
struct<>
121124
-- !query 14 output
122-
NULL
125+
java.lang.IllegalArgumentException
126+
invalid input syntax for type boolean: nay
123127

124128

125129
-- !query 15
@@ -149,25 +153,28 @@ false
149153
-- !query 18
150154
SELECT boolean('o') AS error
151155
-- !query 18 schema
152-
struct<error:boolean>
156+
struct<>
153157
-- !query 18 output
154-
NULL
158+
java.lang.IllegalArgumentException
159+
invalid input syntax for type boolean: o
155160

156161

157162
-- !query 19
158163
SELECT boolean('on_') AS error
159164
-- !query 19 schema
160-
struct<error:boolean>
165+
struct<>
161166
-- !query 19 output
162-
NULL
167+
java.lang.IllegalArgumentException
168+
invalid input syntax for type boolean: on_
163169

164170

165171
-- !query 20
166172
SELECT boolean('off_') AS error
167173
-- !query 20 schema
168-
struct<error:boolean>
174+
struct<>
169175
-- !query 20 output
170-
NULL
176+
java.lang.IllegalArgumentException
177+
invalid input syntax for type boolean: off_
171178

172179

173180
-- !query 21
@@ -181,9 +188,10 @@ true
181188
-- !query 22
182189
SELECT boolean('11') AS error
183190
-- !query 22 schema
184-
struct<error:boolean>
191+
struct<>
185192
-- !query 22 output
186-
NULL
193+
java.lang.IllegalArgumentException
194+
invalid input syntax for type boolean: 11
187195

188196

189197
-- !query 23
@@ -197,17 +205,19 @@ false
197205
-- !query 24
198206
SELECT boolean('000') AS error
199207
-- !query 24 schema
200-
struct<error:boolean>
208+
struct<>
201209
-- !query 24 output
202-
NULL
210+
java.lang.IllegalArgumentException
211+
invalid input syntax for type boolean: 000
203212

204213

205214
-- !query 25
206215
SELECT boolean('') AS error
207216
-- !query 25 schema
208-
struct<error:boolean>
217+
struct<>
209218
-- !query 25 output
210-
NULL
219+
java.lang.IllegalArgumentException
220+
invalid input syntax for type boolean:
211221

212222

213223
-- !query 26
@@ -310,17 +320,19 @@ true false
310320
-- !query 38
311321
SELECT boolean(string(' tru e ')) AS invalid
312322
-- !query 38 schema
313-
struct<invalid:boolean>
323+
struct<>
314324
-- !query 38 output
315-
NULL
325+
java.lang.IllegalArgumentException
326+
invalid input syntax for type boolean: tru e
316327

317328

318329
-- !query 39
319330
SELECT boolean(string('')) AS invalid
320331
-- !query 39 schema
321-
struct<invalid:boolean>
332+
struct<>
322333
-- !query 39 output
323-
NULL
334+
java.lang.IllegalArgumentException
335+
invalid input syntax for type boolean:
324336

325337

326338
-- !query 40

0 commit comments

Comments
 (0)