You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/03/16 08:02:00 UTC

[jira] [Work logged] (HIVE-24868) Support specifying Respect/Ignore Nulls in function parameter list

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

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

                Author: ASF GitHub Bot
            Created on: 16/Mar/21 08:01
            Start Date: 16/Mar/21 08:01
    Worklog Time Spent: 10m 
      Work Description: kasakrisz opened a new pull request #2077:
URL: https://github.com/apache/hive/pull/2077


   ### What changes were proposed in this pull request?
   Change function parsing to enable specifying null treatment in function actual parameter list.
   Semantic is the same as specifying it in the standard way: it affects all parameters and two parameters can not have different null treatment.
   
   ### Why are the changes needed?
   Compatibility with other database engines like Impala.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes. Null treatment can be specified like in this example:
   ```
   select last_value(b ignore nulls) over(partition by a order by b) from t1;
   ```
   Existing behavior not changed.
   
   ### How was this patch tested?
   ```
   mvn test -Dtest=TestNullTreatment,TestParseWithinGroupClause -pl parser
   mvn test -Dtest.output.overwrite -DskipSparkTests -Dtest=TestMiniLlapLocalCliDriver -Dqfile=windowing_navfn.q -pl itests/qtest -Pitests
   ```


----------------------------------------------------------------
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:
users@infra.apache.org


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

            Worklog Id:     (was: 566759)
    Remaining Estimate: 0h
            Time Spent: 10m

> Support specifying Respect/Ignore Nulls in function parameter list
> ------------------------------------------------------------------
>
>                 Key: HIVE-24868
>                 URL: https://issues.apache.org/jira/browse/HIVE-24868
>             Project: Hive
>          Issue Type: Improvement
>          Components: Parser
>            Reporter: Krisztian Kasa
>            Assignee: Krisztian Kasa
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> {code}
> select last_value(b ignore nulls) over(partition by a order by b) from t1;
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)