{"record":{"id":"de82ed471cf402cf","repo":"apache/cassandra","slug":"unknown-field-s-in-value-s","errorCode":null,"errorMessage":"Unknown field %s in value \"%s\"","messagePattern":"Unknown field (.+?) in value \"(.+?)\"","errorType":"exception","errorClass":"InvalidTypeException","httpStatus":null,"severity":"error","filePath":"src/java/org/apache/cassandra/cql3/functions/types/TypeCodec.java","lineNumber":2684,"sourceCode":"\n                int n;\n                try\n                {\n                    n = ParseUtils.skipCQLId(value, idx);\n                }\n                catch (IllegalArgumentException e)\n                {\n                    throw new InvalidTypeException(\n                    String.format(\n                    \"Cannot parse UDT value from \\\"%s\\\", cannot parse a CQL identifier at character %d\",\n                    value, idx),\n                    e);\n                }\n                String name = value.substring(idx, n);\n                idx = n;\n\n                if (!definition.contains(name))\n                    throw new InvalidTypeException(\n                    String.format(\"Unknown field %s in value \\\"%s\\\"\", name, value));\n\n                idx = ParseUtils.skipSpaces(value, idx);\n                if (value.charAt(idx++) != ':')\n                    throw new InvalidTypeException(\n                    String.format(\n                    \"Cannot parse UDT value from \\\"%s\\\", at character %d expecting ':' but got '%c'\",\n                    value, idx, value.charAt(idx)));\n                idx = ParseUtils.skipSpaces(value, idx);\n\n                try\n                {\n                    n = ParseUtils.skipCQLValue(value, idx);\n                }\n                catch (IllegalArgumentException e)\n                {\n                    throw new InvalidTypeException(\n                    String.format(","sourceCodeStart":2666,"sourceCodeEnd":2702,"githubUrl":"https://github.com/apache/cassandra/blob/88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1/src/java/org/apache/cassandra/cql3/functions/types/TypeCodec.java#L2666-L2702","documentation":"InvalidTypeException from UDTCodec.parse: the field name just parsed is not one of the fields defined in the UDT (definition.contains(name) is false). The literal's structure is fine; it simply references a field the target type does not declare.","triggerScenarios":"Thrown at src/java/org/apache/cassandra/cql3/functions/types/TypeCodec.java:2684 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the UDT definition (DESCRIBE TYPE) and use exact field names","Add the missing field to the UDT with ALTER TYPE if it is genuinely needed","Remove stale fields from the literal after a type evolution dropped them"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1","analyzedAt":"2026-09-10T07:29:22.284Z","contentChangedAt":"2026-09-10T07:29:22.284Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}