{"record":{"id":"e9ae862fb2c2fc6d","repo":"dbt-labs/dbt-core","slug":"index-of-row","errorCode":null,"errorMessage":"index_of_row","messagePattern":"index_of_row","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-agate/src/table.rs","lineNumber":309,"sourceCode":"\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,\n        row_idx: isize,\n    ) -> Option<usize> {\n        let _row = self.row_by_index(row_idx).unwrap();\n        todo!(\"index_of_value_in_row\")","sourceCodeStart":291,"sourceCodeEnd":327,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-agate/src/table.rs#L291-L327","documentation":"This method is an unimplemented stub: it panics with todo!() whenever called. It corresponds to AgateTable's Python index_of_row, which should return the zero-based position of the first row equal to the needle value (or None if absent), but the Rust port has not implemented the row-equality search yet. It fires only when dbt-core code calls index_of_row on a table before the stub is filled in.","triggerScenarios":"Thrown at crates/dbt-agate/src/table.rs:309 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Scan rows for the first element-wise equal match and return its index","Return None if no row matches","Return an unsupported error instead of todo!() 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"}