forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conflict in velox/functions/lib/aggregates/CMakeLists.txt and vel…
…ox/functions/prestosql/aggregates/MinMaxAggregates.cpp (#503) Add min, max Spark aggregate functions (facebookincubator#9868) Summary: There are two semantic differences between Presto and Spark. 1. Nested NULLs are compared as values in Spark and as "unknown value" in Presto. 2. The timestamp type represents a time instant in microsecond precision in Spark, but millisecond precision in Presto. Therefore, we need to implement min and max functions for Spark. In this PR, 1. Move Presto `min` and `max` aggregation function implements to lib folder. 2. Add `getMinFunctionFactory` and `getMaxFunctionFactory` which allow callers to register max & min functions with different behaviors. Pull Request resolved: facebookincubator#9868 Reviewed By: mbasmanova Differential Revision: D60051468 Pulled By: kevinwilfong fbshipit-source-id: 1f056420d6909174a35d336e4e1b413a87ef7665 Co-authored-by: zhli1142015 <[email protected]>
- Loading branch information
1 parent
a49683d
commit efd55fb
Showing
16 changed files
with
1,162 additions
and
587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.