{"record":{"id":"38441b9f914cfb93","repo":"risingwavelabs/risingwave","slug":"cannot-compare-in-memory-0","errorCode":null,"errorMessage":"Cannot compare in memory: {0}","messagePattern":"Cannot compare in memory: (.+?)","errorType":"error_code","errorClass":"ErrorCode","httpStatus":null,"severity":"error","filePath":"src/frontend/src/error.rs","lineNumber":163,"sourceCode":"        #[source]\n        #[backtrace]\n        BoxedError,\n    ),\n    #[error(\"Task not found\")]\n    TaskNotFound,\n    #[error(\"Session not found\")]\n    SessionNotFound,\n    #[error(\"Invalid reference: {0}\")]\n    InvalidReference(String),\n    #[error(\"Item not found: {0}\")]\n    ItemNotFound(String),\n    #[error(\"Duplicate Relation Name: {0}\")]\n    DuplicateRelationName(String),\n    #[error(\"Invalid insert operation: {0}\")]\n    InsertViolation(String),\n    #[error(\"Invalid input syntax: {0}\")]\n    InvalidInputSyntax(#[message] String),\n    #[error(\"Cannot compare in memory: {0}\")]\n    MemComparableError(#[from] memcomparable::Error),\n    #[error(\"Error while de/se values: {0}\")]\n    ValueEncodingError(\n        #[from]\n        #[backtrace]\n        ValueEncodingError,\n    ),\n    #[error(\"Invalid value `{config_value}` for `{config_entry}`\")]\n    InvalidConfigValue {\n        config_entry: String,\n        config_value: String,\n    },\n    #[error(\"Invalid parameter value: {0}\")]\n    InvalidParameterValue(String),\n    #[error(\"Sink error: {0}\")]\n    SinkError(\n        #[source]\n        #[backtrace]","sourceCodeStart":145,"sourceCodeEnd":181,"githubUrl":"https://github.com/risingwavelabs/risingwave/blob/6469eb736d691e8e9b8a419a57edd6429ca77417/src/frontend/src/error.rs#L145-L181","documentation":"FrontendError::MemComparableError, converted from a memcomparable::Error: serializing or deserializing a value to/from the memcomparable encoding (used for in-memory ordering, e.g. TopN/merge sort keys) failed. Typically indicates an unsupported or corrupted value in a sort key.","triggerScenarios":"Thrown at src/frontend/src/error.rs:163 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying memcomparable::Error for which value failed to encode/decode in comparable form.","Ensure the data types being ordered/compared are supported by memcomparable encoding.","Check for corrupted key bytes or mismatched schema between writer and reader."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6469eb736d691e8e9b8a419a57edd6429ca77417","analyzedAt":"2026-09-11T21:06:21.487Z","contentChangedAt":"2026-09-11T21:06:21.487Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}