analytics-toolbox-core
analytics-toolbox-core copied to clipboard
chore(sf|quadbin): rewrite all quadbin functions from js to sql
Description
Shortcut
- Story: https://app.shortcut.com/cartoteam/story/320183
- Autolink: [sc-320183]
port all possible JS code to SQL
Type of change
- Refactor
Acceptance
Please describe how to validate the feature or fix
- all old unit test (and new one) have to pass
Basic checklist
- Good PR name
- Shortcut link
- Just one issue per PR
- GitHub labels
- Proper status & reviewers
- Tests
- Documentation
This pull request has been linked to Shortcut Story #320183: Rewrite all quadbin functions from JS to SQL in Snowflake.
creating the CTE as temporary table solve the issue (with almost similar execution time at elast for BBOX) but we loose the use of UDF and need to use procedures.
no idea if it is necessary to continue or assume the ticket blocked waiting for SF fixes of different strategies.
Superseded by https://github.com/CartoDB/analytics-toolbox-core/pull/423
sorry closed too early... effectively all this JS function are not jet available in https://github.com/CartoDB/analytics-toolbox-core/pull/423