allisonwang-db commented on a change in pull request #31791:
URL: https://github.com/apache/spark/pull/31791#discussion_r607467949



##########
File path: 
sql/core/src/test/resources/sql-tests/results/postgreSQL/numeric.sql.out
##########
@@ -4793,33 +4793,43 @@ Infinity
 -- !query
 select * from range(cast(0.0 as decimal(38, 18)), cast(4.0 as decimal(38, 18)))
 -- !query schema
-struct<id:bigint>
+struct<>
 -- !query output
-0
-1
-2
-3
+org.apache.spark.sql.AnalysisException
+Table-valued function range with alternatives: 
+    range(start: long, end: long, step: long, numSlices: integer)
+    range(start: long, end: long, step: long)
+    range(start: long, end: long)
+    range(end: long)
+cannot be applied to (decimal(38,18), decimal(38,18)): Incompatible input data 
type. Expected: long; Found: decimal(38,18); line 1 pos 14

Review comment:
       cc @cloud-fan when the ansi mode enabled, we can't implicitly cast 
decimal(38, 18) to long.




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