gengliangwang commented on a change in pull request #31349:
URL: https://github.com/apache/spark/pull/31349#discussion_r569121032



##########
File path: sql/core/src/test/resources/sql-tests/results/postgreSQL/text.sql.out
##########
@@ -54,35 +54,37 @@ struct<two:string,f1:string>
 -- !query
 select length(42)
 -- !query schema
-struct<length(42):int>
+struct<>
 -- !query output
-2
+org.apache.spark.sql.AnalysisException
+cannot resolve 'length(42)' due to data type mismatch: argument 1 requires 
(string or binary) type, however, '42' is of int type.; line 1 pos 7

Review comment:
       Yes, only string literals are specially handled.




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

Reply via email to