cloud-fan commented on a change in pull request #34441:
URL: https://github.com/apache/spark/pull/34441#discussion_r740012766



##########
File path: 
sql/core/src/test/resources/sql-tests/results/string-functions.sql.out
##########
@@ -533,39 +533,35 @@ AABB
 
 
 -- !query
-SELECT lpad('abc', 5, x'12')
+SELECT lpad('abc', 5, x'57')
 -- !query schema
-struct<>
+struct<lpad(abc, 5, X'57'):string>
 -- !query output
-org.apache.spark.sql.AnalysisException
-cannot resolve 'lpad('abc', 5, X'12')' due to data type mismatch: Arguments 
'str' and 'pad' of function 'lpad' must be the same type.; line 1 pos 7
+WWabc

Review comment:
       @viirya this changes/fixes the behavior of non-ansi (now it's the same 
with spark 3.2).




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

Reply via email to