Open justin13601 opened 6 days ago
Recent updates across multiple files primarily focus on integrating an _EVENT_INDEX
column for enhanced event indexing throughout various functions. These changes include adjustments in import statements, data processing logic, and output summaries to accommodate this new column, enabling sophisticated event tracking and processing capabilities in the aggregate.py
, extract_subtree.py
, predicates.py
, and types.py
files, while ensuring tests are updated accordingly.
Files/Groups | Change Summary |
---|---|
src/aces/aggregate.py |
Altered imports, added _EVENT_INDEX handling in functions such as aggregate_temporal_window , aggregate_event_bound_window , and boolean_expr_bound_sum . Dropping the _EVENT_INDEX column after certain operations. |
src/aces/extract_subtree.py |
Added _EVENT_INDEX column in extract_subtree function, used it in processing logic, and included it in the output summary. |
src/aces/predicates.py |
Added _EVENT_INDEX column in get_predicates_df function output, modified the dataframe shape and creation logic. |
src/aces/types.py |
Defined EVENT_INDEX_COLUMN , LAST_EVENT_INDEX_COLUMN , and EVENT_INDEX_TYPE . |
tests/test_e2e.py |
Updated test cases to include _LAST_EVENT_INDEX fields with specific values. |
sequenceDiagram
participant User
participant AggregateFunction as aggregate.py
participant ExtractSubtreeFunction as extract_subtree.py
participant PredicateFunction as predicates.py
User->>AggregateFunction: Call aggregate_temporal_window(data)
AggregateFunction->>AggregateFunction: Process data, use and drop _EVENT_INDEX
User->>ExtractSubtreeFunction: Call extract_subtree(data)
ExtractSubtreeFunction->>ExtractSubtreeFunction: Process data with _EVENT_INDEX
User->>PredicateFunction: Call get_predicates_df()
PredicateFunction->>PredicateFunction: Create and return dataframe with _EVENT_INDEX
In the land of data bright,
_EVENT_INDEX
takes its flight,
Through code it weaves, a path so clear,
Enhancing logic, far and near.
With columns added, tests anew,
A stronger structure now in view.
🚀✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
For #37
Summary by CodeRabbit
New Features
_EVENT_INDEX
column in various aggregation and predicate functions.Improvements
Tests
_LAST_EVENT_INDEX
fields.