beliefer commented on a change in pull request #31390:
URL: https://github.com/apache/spark/pull/31390#discussion_r578894516



##########
File path: sql/core/src/test/resources/sql-tests/inputs/postgreSQL/strings.sql
##########
@@ -647,7 +647,9 @@ SELECT repeat('Pg', 4);
 SELECT repeat('Pg', -4);
 
 SELECT trim(binary('\\000') from binary('\\000Tom\\000'));
--- [SPARK-28123] Add support btrim
+SELECT btrim(binary('\\000trim\\000'), binary('\\000'));
+SELECT btrim(binary(''), binary('\\000'));
+SELECT btrim(binary('\\000trim\\000'), binary(''));
 -- SELECT btrim(E'\\000trim\\000'::bytea, E'\\000'::bytea);
 -- SELECT btrim(''::bytea, E'\\000'::bytea);
 -- SELECT btrim(E'\\000trim\\000'::bytea, ''::bytea);

Review comment:
       OK




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to