-
Notifications
You must be signed in to change notification settings - Fork 72
Implement all (non-window) aggregation functions #9
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
Comments
Hi @nils-braun, I tried implementing some functions from the above list like, REGR_COUNT : I observed one thing by implementing REGR_COUNT most of the other function's plan was produced by the calcite using an already existing function like sum, count, etc. Some doubts:
Referred this doc for formulas: https://docs.yugabyte.com/latest/api/ysql/exprs/aggregate_functions/function-syntax-semantics/ Thanks |
Hi @rajagurunath Now to your issue: currently, I am using Dask's Immediately to my mind comes a "hacky", but probably working solution for this particular use case: you can calculate a temporary result column |
Hi @nils-braun , Thanks a lot for the in detailed explanation of the solution. I followed similar steps, developed this functionalities here: https://github.com/rajagurunath/dask-sql/tree/feature/regr_count And yes, I am also not sure about the calcite plan of sql nodes, even it produces slightly different plan for func I will raise this as a PR once the existing PR #191 was closed . I also enjoy developing this functionalities, exploring different frameworks, learning more |
Hi @nils-braun, Created a pull request for REGR_COUNT functionality here: #193 Please review and let me know if any changes needed. Thanks |
* Disable deploy/docker GHA workflows * Target branch-21.12 for testing * Cancel in progress runs when a new run is triggered * Make unique groups for style / python tests * Skip CodeCov step * Explicitly install SASL
* Feature/alter schema (#9) * ML model improvement : Adding "SHOW MODELS and DESCRIBE MODEL" Author: rajagurunath <[email protected]> Date: Mon May 24 02:37:40 2021 +0530 * fix typo * ML model improvement : added EXPORT MODEL * ML model improvement : refactoring for PR * ML model improvement : Adding stmts in notebook * ML model improvement : Adding stmts in notebook * ML model improvement : also test the non-happy path * ML model improvement : Added mlflow and <With> in sql for extra params * ML model improvement : Added mlflow and <With> in sql for extra params * Added Test cases for Export MODEL * Added ML documentation about the following: 1. SHOW MODELS 2. DESCRIBE MODEL 3. EXPORT MODEL * refactored based on PR * Added support only for sklearn compatible models * excluded mlflow part from code coverage * install mlflow in test cluster * Added test for non sklearn compatible model * [WIP] Added Alter schema * Added 1. Alter Schema 2. Alter Table * revert unwanted cells Co-authored-by: Gurunath LankupalliVenugopal <[email protected]> Co-authored-by: Nils Braun <[email protected]> * lint fix * Added PR changes * Minor capitalization nitpick * Add info logger for ALTER TABLE * Avoid making deepcopies of schema and tables * Consolidate alter tests in context tests * Make alter errors more specific * Updates tests to use new error type Co-authored-by: Gurunath LankupalliVenugopal <[email protected]> Co-authored-by: Nils Braun <[email protected]> Co-authored-by: Charles Blackmon-Luca <[email protected]>
* Disable deploy/docker GHA workflows * Target branch-21.12 for testing * Cancel in progress runs when a new run is triggered * Make unique groups for style / python tests * Skip CodeCov step * Explicitly install SASL
The
LogicalAggregatePlugin
currently can not handle all aggregation functions.From the calcite docu, here are all aggregation functions that calcite understands:
Operations on collection types:
The text was updated successfully, but these errors were encountered: