-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add map_union_min and map_union_max aggregate functions #9123
Comments
@mbasmanova Would you mind to review this PR or give us some feedback? Thanks. |
Would you clarify a bit about this use case? Which engine do you use? Have you considered opening an issue in PrestoDB to add these functions? |
We don't utilize any open-source query engines; instead, we develop our own query engines from scratch. Our engine is designed for querying data from a time-series database and is primarily implemented in Java. Last year, we began integrating Velox into our Java query engine, resulting in impressive performance improvements. Bravo to the Velox project! :)
I am not familiar with PrestoDB actually. |
@whutjs Thank you for sharing this context. Happy to hear you found Velox useful.
I see. Would it be fair to say that you may need to apply any aggregate function in a map_union_xxx style, not only sum, min, max?
PrestoDB project is hosted at https://github.com/prestodb/presto . Velox comes with 2 sets of function packages: PrestoSQL and SparkSQL. Presto package includes functions from Presto. These functions signatures and semantics match Presto 100%. Spark package includes functions from Spark and these match Spark semantics with ANSI SQL configuration disabled. Typically, engines other than Presto (Prestissimo) and Spark (Gluten) choose which function package to use to provide their own package. In the latter case these functions are placed in the engine's code repo. To add map_union_min/max to Velox repo, these need to be available either in Presto or Spark. Hence, if you are interested, you may open an issue in PrestoDB GitHub repo and see if folks there would be open to add these functions. Once they are available in PrestoDB, we can add them to Velox. Here is a recent issue that added a number of linear regression aggregate functions to PrestoDB: prestodb/presto#21328 and then to Velox: #8381 Hope this helps. |
You are right. We need
I understand now. Thanks |
Description
While Presto does not currently include the functions
map_union_min
andmap_union_max
, these functions are frequently used in our own use cases. We are interested in knowing whether the Velox community would be open to considering the addition of these functions. Any feedback is highly appreciated.The text was updated successfully, but these errors were encountered: