cloud-fan commented on a change in pull request #31859:
URL: https://github.com/apache/spark/pull/31859#discussion_r600214319
##########
File path:
sql/core/src/test/resources/sql-tests/results/ansi/string-functions.sql.out
##########
@@ -92,7 +92,7 @@ select right(null, -2), right("abcd", -2), right("abcd", 0),
right("abcd", 'a')
struct<>
-- !query output
org.apache.spark.sql.AnalysisException
-cannot resolve 'substring('abcd', (- CAST('a' AS DOUBLE)), 2147483647)' due to
data type mismatch: argument 2 requires int type, however, '(- CAST('a' AS
DOUBLE))' is of double type.; line 1 pos 61
+cannot resolve 'substring(NULL, (- -2), 2147483647)' due to data type
mismatch: argument 1 requires (string or binary) type, however, 'NULL' is of
null type.; line 1 pos 7
Review comment:
ditto
--
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]