t3rmin4t0r commented on a change in pull request #656: HIVE-21742 :
Vectorization: CASE result type casting
URL: https://github.com/apache/hive/pull/656#discussion_r289582845
##########
File path: ql/src/test/results/clientpositive/spark/vectorized_case.q.out
##########
@@ -688,13 +688,13 @@ STAGE PLANS:
native: true
vectorizationSchemaColumns:
[0:member:decimal(10,0)/DECIMAL_64, 1:attr:decimal(10,0)/DECIMAL_64,
2:ROW__ID:struct<writeid:bigint,bucketid:int,rowid:bigint>]
Select Operator
- expressions: CASE WHEN ((member = 1)) THEN (1) ELSE ((attr
+ 2)) END (type: decimal(11,0))
+ expressions: CASE WHEN ((member = 1)) THEN (CAST( 1 AS
decimal(11,0))) ELSE ((attr + 2)) END (type: decimal(11,0))
Review comment:
Missed constant fold again?
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]