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



##########
File path: 
sql/core/src/test/resources/sql-tests/results/udf/udf-group-by.sql.out
##########
@@ -377,43 +377,39 @@ struct<udf(udf(k)):int,every:boolean>
 -- !query
 SELECT every(udf(1))
 -- !query schema
-struct<>
+struct<min(udf(1)):int>
 -- !query output
-org.apache.spark.sql.AnalysisException
-cannot resolve 'every(CAST(udf(cast(1 as string)) AS INT))' due to data type 
mismatch: Input to function 'every' should have been boolean, but it's [int].; 
line 1 pos 7
+1
 
 
 -- !query
 SELECT some(udf(1S))
 -- !query schema
-struct<>
+struct<max(udf(1)):smallint>
 -- !query output
-org.apache.spark.sql.AnalysisException
-cannot resolve 'some(CAST(udf(cast(1 as string)) AS SMALLINT))' due to data 
type mismatch: Input to function 'some' should have been boolean, but it's 
[smallint].; line 1 pos 7
+1
 
 
 -- !query
 SELECT any(udf(1L))
 -- !query schema
-struct<>
+struct<max(udf(1)):bigint>
 -- !query output
-org.apache.spark.sql.AnalysisException
-cannot resolve 'any(CAST(udf(cast(1 as string)) AS BIGINT))' due to data type 
mismatch: Input to function 'any' should have been boolean, but it's [bigint].; 
line 1 pos 7
+1
 
 
 -- !query
 SELECT udf(every("true"))
 -- !query schema
-struct<>
+struct<udf(min(true)):string>
 -- !query output
-org.apache.spark.sql.AnalysisException
-cannot resolve 'every('true')' due to data type mismatch: Input to function 
'every' should have been boolean, but it's [string].; line 1 pos 11

Review comment:
       the behavior change is a bit scarying. Can you explain it?




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