kasakrisz opened a new pull request #2056:
URL: https://github.com/apache/hive/pull/2056


   ### What changes were proposed in this pull request?
   1. Introduce `RESPECT NULLS` `IGNORE NULLS` syntax and map it to boolean 
values.
   2. Treat this value as a boolean parameter of the specified window function.
   3. `first/last_value` functions already supports this extra parameter.
   
   ### Why are the changes needed?
   Support specifying ignore nulls in a standard way.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, but existing behavior not changed. Ignore nulls can be specified two 
ways:
   ```
   Standard: select last_value(b) ignore nulls over
   Legacy:   select last_value(b, true) over
   ```
   
   ### How was this patch tested?
   ```
   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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to