{"record":{"id":"ef986beef4ff26f8","repo":"dbt-labs/dbt-core","slug":"manifest-should-preserve-the-sequence-valued-argum","errorCode":null,"errorMessage":"manifest should preserve the sequence-valued argument","messagePattern":"manifest should preserve the sequence-valued argument","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-parser/src/resolve/resolve_selectors.rs","lineNumber":933,"sourceCode":"        // dbt Core stores the raw, unvalidated `value` in the manifest.\n        let resolved_selectors = HashMap::from([(\n            \"default\".to_string(),\n            SelectorEntry {\n                include: normalized_include,\n                is_default: false,\n                description: None,\n                definition: original_definition,\n            },\n        )]);\n        let manifest_selectors = resolve_manifest_selectors(resolved_selectors)?;\n        let definition = manifest_selectors\n            .get(\"default\")\n            .and_then(|selector| selector.definition.as_ref())\n            .expect(\"selector definition should be present\");\n        let value = definition\n            .get(\"value\")\n            .and_then(|v| v.as_sequence())\n            .expect(\"manifest should preserve the sequence-valued argument\");\n        assert_eq!(value.len(), 1);\n        assert_eq!(value[0].as_str(), Some(\"models\"));\n        Ok(())\n    }\n}\n","sourceCodeStart":915,"sourceCodeEnd":939,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-parser/src/resolve/resolve_selectors.rs#L915-L939","documentation":"Test-only assertion in the #13604 regression test: after manifest resolution, the sequence-valued `value` argument must be preserved verbatim in the serialized definition, matching dbt Core's behavior of storing the raw unvalidated value. Fires if normalization rewrites or flattens the sequence.","triggerScenarios":"Thrown at crates/dbt-parser/src/resolve/resolve_selectors.rs:933 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix resolve_manifest_selectors to keep raw sequence-valued arguments untouched","Check that definition cloning does not re-serialize through the normalized AST","Treat failure as a manifest serialization regression"],"exampleFix":null,"handlingStrategy":"validation","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"}