gengliangwang commented on a change in pull request #24902: [SPARK-28093][SQL] 
Fix TRIM/LTRIM/RTRIM function parameter order issue
URL: https://github.com/apache/spark/pull/24902#discussion_r294800578
 
 

 ##########
 File path: sql/core/src/test/resources/sql-tests/inputs/string-functions.sql
 ##########
 @@ -38,3 +38,11 @@ SELECT substring('Spark SQL', 5, 1);
 SELECT substring('Spark SQL' from 5);
 SELECT substring('Spark SQL' from -3);
 SELECT substring('Spark SQL' from 5 for 1);
+
+-- trim/ltrim/rtrim
+SELECT trim('yxTomxx', 'xyz');
+SELECT trim('xxxbarxxx', 'x');
+SELECT ltrim('zzzytest', 'xyz');
 
 Review comment:
   Nit: add some characters of 'xyz' at the end

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


With regards,
Apache Git Services

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

Reply via email to