gristlabs_grist-core/sandbox
Alex Hall f7a9638992 (core) CONTAINS() and summarising by ChoiceList columns with flattening
Summary:
Added CONTAINS 'function' which can be used in lookups

Changed LookupMapColumn._row_key_map to use right=set so one row can have many keys when CONTAINS is used.

Use CONTAINS to implement group column in summary table, while helper column in source table can reference and create multiple rows in summary table, especially when summarising by ChoiceList columns.

Use itertools.product to generate all combinations of lookup keys and groupby values.

cleanup

Test Plan: Added python unit tests.

Reviewers: dsagal

Reviewed By: dsagal

Subscribers: paulfitz, dsagal

Differential Revision: https://phab.getgrist.com/D2900
2021-07-19 16:35:35 +02:00
..
grist (core) CONTAINS() and summarising by ChoiceList columns with flattening 2021-07-19 16:35:35 +02:00
gen_js_schema.py (core) Remove help, mkdocs, and the 'env' virtualenv 2021-06-30 16:59:08 +02:00
install_tz.js (core) move data engine code to core 2020-07-29 08:57:25 -04:00
requirements.txt (core) Updating dependencies only in preparation for Python 3 upgrade 2021-06-18 15:43:02 +02:00