viirya commented on a change in pull request #34441:
URL: https://github.com/apache/spark/pull/34441#discussion_r740361733
##########
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:
Oh, I see. That is clear now. Make sense. I was confused because I saw
in previous PR you did the analysis failing explicitly in `StringL/RPad`. Now
we reply on the implicit cast behavior under non-ansi and ansi modes.
--
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]