{"record":{"id":"1f6822ea558854ce","repo":"dbt-labs/dbt-core","slug":"count-occurrences-of-value-in-column","errorCode":null,"errorMessage":"count_occurrences_of_value_in_column","messagePattern":"count_occurrences_of_value_in_column","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-agate/src/table.rs","lineNumber":245,"sourceCode":"\n    pub fn column_without_nulls(&self, col_idx: isize) -> Arc<Self> {\n        let _col = self.single_column_table(col_idx).unwrap();\n        todo!(\"column_without_nulls\")\n    }\n\n    pub fn column_sorted(&self, col_idx: isize) -> Arc<Self> {\n        let _col = self.single_column_table(col_idx).unwrap();\n        todo!(\"column_sorted\")\n    }\n\n    pub fn column_without_nulls_sorted(&self, col_idx: isize) -> Arc<Self> {\n        let _col = self.single_column_table(col_idx).unwrap();\n        todo!(\"column_without_nulls_sorted\")\n    }\n\n    pub fn count_occurrences_of_value_in_column(&self, _needle: &Value, col_idx: isize) -> usize {\n        let _col = self.single_column_table(col_idx).unwrap();\n        todo!(\"count_occurrences_of_value_in_column\")\n    }\n\n    pub fn index_of_value_in_column(&self, _needle: &Value, col_idx: isize) -> Option<usize> {\n        let _col = self.single_column_table(col_idx).unwrap();\n        todo!(\"index_of_value_in_column\")\n    }\n\n    fn with_renamed_columns(&self, renamed_columns: Vec<String>) -> Arc<Self> {\n        debug_assert!(renamed_columns.len() == self.num_columns());\n        let new_batch = self.flat.with_renamed_columns(&renamed_columns);\n        let new_vec_of_rows = self.peek_row_table().map(Arc::clone);\n        let row_names = self.row_names.as_ref().map(Arc::clone);\n        let repr = TableRepr::new(new_batch, new_vec_of_rows, row_names);\n        Arc::new(repr)\n    }\n\n    fn with_renamed_rows(&self, renamed_columns: Arc<StringViewArray>) -> Arc<Self> {\n        debug_assert!(renamed_columns.len() == self.num_rows());","sourceCodeStart":227,"sourceCodeEnd":263,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-agate/src/table.rs#L227-L263","documentation":"Unimplemented agate Table method: count_occurrences_of_value_in_column should count how many times a needle Value appears in the given column, but the body is a todo!() stub (the column is already extracted and unwrapped). Any lookup/count macro hitting it aborts.","triggerScenarios":"Thrown at crates/dbt-agate/src/table.rs:245 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Count needle occurrences in the extracted column using agate value equality","Handle nulls and cross-type comparisons consistently with Python agate","Return an unsupported error instead of panicking until implemented"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0267ce9170576975b76b64ce856b2e5848e96617","analyzedAt":"2026-09-07T21:53:39.732Z","contentChangedAt":"2026-09-07T21:53:39.732Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}