[ 
https://issues.apache.org/jira/browse/HIVE-21152?focusedWorklogId=729087&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-729087
 ]

ASF GitHub Bot logged work on HIVE-21152:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Feb/22 17:12
            Start Date: 17/Feb/22 17:12
    Worklog Time Spent: 10m 
      Work Description: kgyrtkirk merged pull request #2791:
URL: https://github.com/apache/hive/pull/2791


   


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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 729087)
    Time Spent: 20m  (was: 10m)

> Rewrite if expression to case and recognize simple case as an if
> ----------------------------------------------------------------
>
>                 Key: HIVE-21152
>                 URL: https://issues.apache.org/jira/browse/HIVE-21152
>             Project: Hive
>          Issue Type: Improvement
>          Components: CBO
>            Reporter: Zoltan Haindrich
>            Assignee: Zoltan Haindrich
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: HIVE-21152.01.patch, HIVE-21152.02.patch, 
> HIVE-21152.03.patch, HIVE-21152.04.patch, HIVE-21152.05.patch, 
> HIVE-21152.06.patch, HIVE-21152.07.patch
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> * {{IF}} is not part of the sql standard; however given its special form its 
> simpler - and currently in Hive it also has vectorized support
> * people writing standard sql may write: {{CASE WHEN member=1 THEN attr+1 
> else attr+2 END}} which is essentially an if.
> The idea is to rewrite IFs to CASEs for the cbo; and recognize simple 
> "CASE"-s as IFs to get vectorization on them if possible



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to