{"record":{"id":"a9a85f7fbfdc00e6","repo":"pola-rs/polars","slug":"activate-feature-dynamic-group-by","errorCode":null,"errorMessage":"activate feature dynamic_group_by","messagePattern":"activate feature dynamic_group_by","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/polars-mem-engine/src/executors/group_by_rolling.rs","lineNumber":118,"sourceCode":"                *k = k.slice(offset, len);\n            }\n        }\n\n        let agg_columns = evaluate_aggs(&df, &self.aggs, groups, state)?;\n\n        let mut columns = Vec::with_capacity(agg_columns.len() + 1 + keys.len());\n        columns.extend_from_slice(&keys);\n        columns.push(time_key);\n        columns.extend(agg_columns);\n\n        DataFrame::new_infer_height(columns)\n    }\n}\n\nimpl Executor for GroupByRollingExec {\n    #[cfg(not(feature = \"dynamic_group_by\"))]\n    fn execute(&mut self, _state: &mut ExecutionState) -> PolarsResult<DataFrame> {\n        panic!(\"activate feature dynamic_group_by\")\n    }\n\n    #[cfg(feature = \"dynamic_group_by\")]\n    fn execute(&mut self, state: &mut ExecutionState) -> PolarsResult<DataFrame> {\n        state.should_stop()?;\n        #[cfg(debug_assertions)]\n        {\n            if state.verbose() {\n                eprintln!(\"run GroupbyRollingExec\")\n            }\n        }\n        let df = self.input.execute(state)?;\n        self.execute_impl(state, df)\n    }\n}\n","sourceCodeStart":100,"sourceCodeEnd":134,"githubUrl":"https://github.com/pola-rs/polars/blob/5d8ebabf11caea54a5c29178a64a058762f49766/crates/polars-mem-engine/src/executors/group_by_rolling.rs#L100-L134","documentation":"Feature-gate panic in the GroupByRollingExec executor: the rolling group-by IR node was built (implying the plan contains a rolling window) but the `dynamic_group_by` cargo feature was compiled out, so no implementation exists for this node in this build.","triggerScenarios":"This panic/expect fires when execution reaches an unguarded state described by: \"activate feature dynamic_group_by\". Typical triggers: unsupported dtype or feature-gated code path reached at runtime, invalid user input or environment variable value, calling API methods in the wrong order or on mismatched types, or data (lengths, offsets, ranges) violating the function's preconditions.","commonSituations":"Encountered when input data or configuration does not meet the preconditions of the throwing code path (\"activate feature dynamic_group_by\"). Common cases: missing Cargo feature flags, mismatched dtypes/lengths between arrays or series, out-of-range temporal values, malformed environment variables, or operations on unsupported/complex nested types.","solutions":["Enable the `dynamic_group_by` cargo feature to use rolling/dynamic group-by.","Use a static group-by over a computed time bucket column as an alternative."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5d8ebabf11caea54a5c29178a64a058762f49766","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}