@@ -9,7 +9,7 @@ output : 5
99
1010ast : length(to_binary(NULL))
1111raw expr : length(to_binary(NULL))
12- checked expr : length<Binary NULL>(to_binary<String NULL>(CAST(NULL AS String NULL)))
12+ checked expr : length<Binary NULL>(to_binary<Variant NULL>(CAST(NULL AS Variant NULL)))
1313optimized expr : NULL
1414output type : UInt64 NULL
1515output domain : {NULL}
@@ -203,6 +203,87 @@ evaluation (internal):
203203+--------+------------------------------------------------+
204204
205205
206+ ast : to_binary(parse_json('{"k1":"val","k2":100}'))
207+ raw expr : to_binary(parse_json('{"k1":"val","k2":100}'))
208+ checked expr : to_binary<Variant>(parse_json<String>("{\"k1\":\"val\",\"k2\":100}"))
209+ optimized expr : 40000002100000021000000210000003200000026B316B3276616C5064
210+ output type : Binary
211+ output domain : Undefined
212+ output : 40000002100000021000000210000003200000026B316B3276616C5064
213+
214+
215+ ast : to_binary(parse_json('10'))
216+ raw expr : to_binary(parse_json('10'))
217+ checked expr : to_binary<Variant>(parse_json<String>("10"))
218+ optimized expr : 2000000020000002500A
219+ output type : Binary
220+ output domain : Undefined
221+ output : 2000000020000002500A
222+
223+
224+ ast : to_binary(parse_json('123456'))
225+ raw expr : to_binary(parse_json('123456'))
226+ checked expr : to_binary<Variant>(parse_json<String>("123456"))
227+ optimized expr : 2000000020000005500001E240
228+ output type : Binary
229+ output domain : Undefined
230+ output : 2000000020000005500001E240
231+
232+
233+ ast : to_binary(parse_json('"abcd"'))
234+ raw expr : to_binary(parse_json('"abcd"'))
235+ checked expr : to_binary<Variant>(parse_json<String>("\"abcd\""))
236+ optimized expr : 200000001000000461626364
237+ output type : Binary
238+ output domain : Undefined
239+ output : 200000001000000461626364
240+
241+
242+ ast : to_binary(to_bitmap('1,2,3'))
243+ raw expr : to_binary(to_bitmap('1,2,3'))
244+ checked expr : to_binary<Bitmap>(to_bitmap<String>("1,2,3"))
245+ optimized expr : 0100000000000000000000003A300000010000000000020010000000010002000300
246+ output type : Binary
247+ output domain : Undefined
248+ output : 0100000000000000000000003A300000010000000000020010000000010002000300
249+
250+
251+ ast : to_binary(to_bitmap('100,25,50,700'))
252+ raw expr : to_binary(to_bitmap('100,25,50,700'))
253+ checked expr : to_binary<Bitmap>(to_bitmap<String>("100,25,50,700"))
254+ optimized expr : 0100000000000000000000003A300000010000000000030010000000190032006400BC02
255+ output type : Binary
256+ output domain : Undefined
257+ output : 0100000000000000000000003A300000010000000000030010000000190032006400BC02
258+
259+
260+ ast : to_binary(st_geometryfromwkt('SRID=4326;POINT(1.0 2.0)'))
261+ raw expr : to_binary(st_geometryfromwkt('SRID=4326;POINT(1.0 2.0)'))
262+ checked expr : to_binary<Geometry>(st_geometryfromwkt<String>("SRID=4326;POINT(1.0 2.0)"))
263+ optimized expr : 0101000020E6100000000000000000F03F0000000000000040
264+ output type : Binary
265+ output domain : Undefined
266+ output : 0101000020E6100000000000000000F03F0000000000000040
267+
268+
269+ ast : to_binary(st_geometryfromwkb(unhex('0101000020797f000066666666a9cb17411f85ebc19e325641')))
270+ raw expr : to_binary(st_geometryfromwkb(unhex('0101000020797f000066666666a9cb17411f85ebc19e325641')))
271+ checked expr : to_binary<Geometry>(st_geometryfromwkb<Binary>(from_hex<String>("0101000020797f000066666666a9cb17411f85ebc19e325641")))
272+ optimized expr : 0101000020797F000066666666A9CB17411F85EBC19E325641
273+ output type : Binary
274+ output domain : Undefined
275+ output : 0101000020797F000066666666A9CB17411F85EBC19E325641
276+
277+
278+ ast : to_binary(st_geographyfromewkt('SRID=4326;POINT(-122.35 37.55)'))
279+ raw expr : to_binary(st_geographyfromewkt('SRID=4326;POINT(-122.35 37.55)'))
280+ checked expr : to_binary<Geography>(st_geographyfromewkt<String>("SRID=4326;POINT(-122.35 37.55)"))
281+ optimized expr : 0101000020E61000006666666666965EC06666666666C64240
282+ output type : Binary
283+ output domain : Undefined
284+ output : 0101000020E61000006666666666965EC06666666666C64240
285+
286+
206287ast : TRY_from_base64('QWJj')::String
207288raw expr : CAST(TRY_from_base64('QWJj') AS String)
208289checked expr : CAST(try_from_base64<String>("QWJj") AS String)
@@ -291,3 +372,84 @@ evaluation (internal):
291372+--------+------------------------------------------------+
292373
293374
375+ ast : TRY_to_binary(parse_json('{"k1":"val","k2":100}'))
376+ raw expr : TRY_to_binary(parse_json('{"k1":"val","k2":100}'))
377+ checked expr : try_to_binary<Variant>(parse_json<String>("{\"k1\":\"val\",\"k2\":100}"))
378+ optimized expr : 40000002100000021000000210000003200000026B316B3276616C5064
379+ output type : Binary NULL
380+ output domain : Undefined
381+ output : 40000002100000021000000210000003200000026B316B3276616C5064
382+
383+
384+ ast : TRY_to_binary(parse_json('10'))
385+ raw expr : TRY_to_binary(parse_json('10'))
386+ checked expr : try_to_binary<Variant>(parse_json<String>("10"))
387+ optimized expr : 2000000020000002500A
388+ output type : Binary NULL
389+ output domain : Undefined
390+ output : 2000000020000002500A
391+
392+
393+ ast : TRY_to_binary(parse_json('123456'))
394+ raw expr : TRY_to_binary(parse_json('123456'))
395+ checked expr : try_to_binary<Variant>(parse_json<String>("123456"))
396+ optimized expr : 2000000020000005500001E240
397+ output type : Binary NULL
398+ output domain : Undefined
399+ output : 2000000020000005500001E240
400+
401+
402+ ast : TRY_to_binary(parse_json('"abcd"'))
403+ raw expr : TRY_to_binary(parse_json('"abcd"'))
404+ checked expr : try_to_binary<Variant>(parse_json<String>("\"abcd\""))
405+ optimized expr : 200000001000000461626364
406+ output type : Binary NULL
407+ output domain : Undefined
408+ output : 200000001000000461626364
409+
410+
411+ ast : TRY_to_binary(to_bitmap('1,2,3'))
412+ raw expr : TRY_to_binary(to_bitmap('1,2,3'))
413+ checked expr : try_to_binary<Bitmap>(to_bitmap<String>("1,2,3"))
414+ optimized expr : 0100000000000000000000003A300000010000000000020010000000010002000300
415+ output type : Binary NULL
416+ output domain : Undefined
417+ output : 0100000000000000000000003A300000010000000000020010000000010002000300
418+
419+
420+ ast : TRY_to_binary(to_bitmap('100,25,50,700'))
421+ raw expr : TRY_to_binary(to_bitmap('100,25,50,700'))
422+ checked expr : try_to_binary<Bitmap>(to_bitmap<String>("100,25,50,700"))
423+ optimized expr : 0100000000000000000000003A300000010000000000030010000000190032006400BC02
424+ output type : Binary NULL
425+ output domain : Undefined
426+ output : 0100000000000000000000003A300000010000000000030010000000190032006400BC02
427+
428+
429+ ast : TRY_to_binary(st_geometryfromwkt('SRID=4326;POINT(1.0 2.0)'))
430+ raw expr : TRY_to_binary(st_geometryfromwkt('SRID=4326;POINT(1.0 2.0)'))
431+ checked expr : try_to_binary<Geometry>(st_geometryfromwkt<String>("SRID=4326;POINT(1.0 2.0)"))
432+ optimized expr : 0101000020E6100000000000000000F03F0000000000000040
433+ output type : Binary NULL
434+ output domain : Undefined
435+ output : 0101000020E6100000000000000000F03F0000000000000040
436+
437+
438+ ast : TRY_to_binary(st_geometryfromwkb(unhex('0101000020797f000066666666a9cb17411f85ebc19e325641')))
439+ raw expr : TRY_to_binary(st_geometryfromwkb(unhex('0101000020797f000066666666a9cb17411f85ebc19e325641')))
440+ checked expr : try_to_binary<Geometry>(st_geometryfromwkb<Binary>(from_hex<String>("0101000020797f000066666666a9cb17411f85ebc19e325641")))
441+ optimized expr : 0101000020797F000066666666A9CB17411F85EBC19E325641
442+ output type : Binary NULL
443+ output domain : Undefined
444+ output : 0101000020797F000066666666A9CB17411F85EBC19E325641
445+
446+
447+ ast : TRY_to_binary(st_geographyfromewkt('SRID=4326;POINT(-122.35 37.55)'))
448+ raw expr : TRY_to_binary(st_geographyfromewkt('SRID=4326;POINT(-122.35 37.55)'))
449+ checked expr : try_to_binary<Geography>(st_geographyfromewkt<String>("SRID=4326;POINT(-122.35 37.55)"))
450+ optimized expr : 0101000020E61000006666666666965EC06666666666C64240
451+ output type : Binary NULL
452+ output domain : Undefined
453+ output : 0101000020E61000006666666666965EC06666666666C64240
454+
455+
0 commit comments