uros-db commented on code in PR #55631: URL: https://github.com/apache/spark/pull/55631#discussion_r3200786908
########## sql/core/src/test/resources/sql-tests/results/st-functions.sql.out: ########## @@ -768,6 +768,200 @@ org.apache.spark.SparkIllegalArgumentException } +-- !query +SELECT ST_AsBinary(NULL) +-- !query schema +struct<st_asbinary(NULL, NDR):binary> +-- !query output +NULL + + +-- !query +SELECT hex(ST_AsBinary(ST_GeogFromWKB(X'0101000000000000000000F03F0000000000000040'))) +-- !query schema +struct<hex(st_asbinary(st_geogfromwkb(X'0101000000000000000000F03F0000000000000040'), NDR)):string> +-- !query output +0101000000000000000000F03F0000000000000040 + + +-- !query +SELECT hex(ST_AsBinary(ST_GeogFromWKB(X'00000000013FF00000000000004000000000000000'), 'NDR')) +-- !query schema +struct<hex(st_asbinary(st_geogfromwkb(X'00000000013FF00000000000004000000000000000'), NDR)):string> +-- !query output +0101000000000000000000F03F0000000000000040 + + +-- !query +SELECT hex(ST_AsBinary(ST_GeogFromWKB(X'0101000000000000000000F03F0000000000000040'), 'XDR')) +-- !query schema +struct<hex(st_asbinary(st_geogfromwkb(X'0101000000000000000000F03F0000000000000040'), XDR)):string> +-- !query output +00000000013FF00000000000004000000000000000 + + +-- !query +SELECT hex(ST_AsBinary(ST_GeomFromWKB(X'0101000000000000000000F03F0000000000000040'))) +-- !query schema +struct<hex(st_asbinary(st_geomfromwkb(X'0101000000000000000000F03F0000000000000040', 0), NDR)):string> +-- !query output +0101000000000000000000F03F0000000000000040 + + +-- !query +SELECT hex(ST_AsBinary(ST_GeomFromWKB(X'00000000013FF00000000000004000000000000000'), 'NDR')) +-- !query schema +struct<hex(st_asbinary(st_geomfromwkb(X'00000000013FF00000000000004000000000000000', 0), NDR)):string> Review Comment: Added error class and regenerated golden file. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
