maropu commented on a change in pull request #26477: [SPARK-29776][SQL] rpad 
returning invalid value when parameter is empty
URL: https://github.com/apache/spark/pull/26477#discussion_r361252749
 
 

 ##########
 File path: 
sql/core/src/test/resources/sql-tests/results/postgreSQL/strings.sql.out
 ##########
 @@ -907,7 +907,7 @@ SELECT rpad('hi', 5, '')
 -- !query 110 schema
 struct<rpad(hi, 5, ):string>
 -- !query 110 output
-hi
+NULL
 
 Review comment:
   Thanks for the check. It seems presto throws an exception for that case;
   ```
   presto> select rpad('hi', 5, '');
   Query 20191225_040937_00004_htqqc failed: Padding string must not be empty
   ```

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