{"record":{"id":"735f09bd586172f7","repo":"dbt-labs/dbt-core","slug":"count-occurrences-of-row","errorCode":null,"errorMessage":"count_occurrences_of_row","messagePattern":"count_occurrences_of_row","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-agate/src/table.rs","lineNumber":305,"sourceCode":"            let row = Row::new(i, Arc::clone(self));\n            Value::from_object(row)\n        })\n    }\n\n    pub fn rows(self: &Arc<Self>) -> Rows {\n        Rows::new(Arc::clone(self))\n    }\n\n    pub fn row_names(&self) -> Option<Tuple> {\n        self.row_names.as_ref().map(|names| {\n            let repr = RowNamesAsTuple::new(Arc::clone(names));\n            let tuple = Tuple(Box::new(repr));\n            tuple\n        })\n    }\n\n    pub fn count_occurrences_of_row(&self, _needle: &Value) -> usize {\n        todo!(\"count_occurrences_of_row\")\n    }\n\n    pub fn index_of_row(&self, _needle: &Value) -> Option<usize> {\n        todo!(\"index_of_row\")\n    }\n\n    pub fn count_occurrences_of_value_in_row(\n        self: &Arc<Self>,\n        _needle: &Value,\n        row_idx: isize,\n    ) -> usize {\n        let _row = self.row_by_index(row_idx).unwrap();\n        todo!(\"count_occurrences_of_value_in_row\")\n    }\n\n    pub fn index_of_value_in_row(\n        self: &Arc<Self>,\n        _needle: &Value,","sourceCodeStart":287,"sourceCodeEnd":323,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-agate/src/table.rs#L287-L323","documentation":"Unimplemented agate Table method: count_occurrences_of_row should count how many times an entire row Value equals rows in this table, but the body is a todo!() stub. Any Jinja/compat code calling it aborts.","triggerScenarios":"Thrown at crates/dbt-agate/src/table.rs:305 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Compare the needle row element-wise against every row using agate value equality","Short-circuit on length mismatch","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"}