[ https://issues.apache.org/jira/browse/HIVE-5756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13840571#comment-13840571 ]
Eric Hanson commented on HIVE-5756: ----------------------------------- Regarding (1), that is a good observation. I had assumed the type checker would not allow that. Fortunately, the plan will not vectorize if the two different IF outputs have different types. I think we should leave it this way since having two different output types for the IF and ELSE branches is a rare scenario. We could do another JIRA later to handle that case in vectorized mode. > Implement vectorization support for IF conditional expression for long, > double, timestamp and boolean inputs > ------------------------------------------------------------------------------------------------------------ > > Key: HIVE-5756 > URL: https://issues.apache.org/jira/browse/HIVE-5756 > Project: Hive > Issue Type: Sub-task > Reporter: Eric Hanson > Assignee: Eric Hanson > Attachments: HIVE-5756.1.patch, HIVE-5756.2.patch, HIVE-5756.3.patch, > HIVE-5756.4.patch, HIVE-5756.5.patch > > > Implement full, end-to-end support for IF in vectorized mode, including new > VectorExpression class(es), VectorizationContext translation to a > VectorExpression, and unit tests for these, as well as end-to-end ad hoc > testing. An end-to-end .q test is recommended but optional. > This is high priority because IF is the most popular conditional expression. -- This message was sent by Atlassian JIRA (v6.1#6144)