{"record":{"id":"36b3f17db761b220","repo":"prestodb/presto","slug":"parse-error-connectordeletetablehandle-connecto","errorCode":null,"errorMessage":"{parse_error} ConnectorDeleteTableHandle  ConnectorDeleteTableHandle","messagePattern":"(.+?) ConnectorDeleteTableHandle  ConnectorDeleteTableHandle","errorType":"validation","errorClass":"ParseError","httpStatus":null,"severity":"error","filePath":"presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp","lineNumber":3739,"sourceCode":"      \"OrderingScheme\",\n      \"orderingScheme\");\n}\n} // namespace facebook::presto::protocol\nnamespace facebook::presto::protocol {\nvoid to_json(json& j, const std::shared_ptr<ConnectorDeleteTableHandle>& p) {\n  if (p == nullptr) {\n    return;\n  }\n  String type = p->_type;\n  getConnectorProtocol(type).to_json(j, p);\n}\n\nvoid from_json(const json& j, std::shared_ptr<ConnectorDeleteTableHandle>& p) {\n  String type;\n  try {\n    type = p->getSubclassKey(j);\n  } catch (json::parse_error& e) {\n    throw ParseError(\n        std::string(e.what()) +\n        \" ConnectorDeleteTableHandle  ConnectorDeleteTableHandle\");\n  }\n\n  if (j.contains(\"customSerializedValue\")) {\n    VELOX_CHECK(\n        !type.empty() && type[0] != '$',\n        \"Internal handle type '{}' should not have customSerializedValue\",\n        type);\n    std::string binaryData = velox::encoding::Base64::decode(\n        j[\"customSerializedValue\"].get<std::string>());\n    getConnectorProtocol(type).deserialize(binaryData, p);\n    return;\n  }\n\n  getConnectorProtocol(type).from_json(j, p);\n}\n} // namespace facebook::presto::protocol","sourceCodeStart":3721,"sourceCodeEnd":3757,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp#L3721-L3757","documentation":"Velox protocol deserialization error: the JSON for a ConnectorDeleteTableHandle could not be parsed — the subclass key extraction threw a parse error. Occurs when a DELETE plan's connector handle crosses into the native engine with a malformed or unrecognized serialization.","triggerScenarios":"Thrown at presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp:3739 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Align Java/native protocol versions for DELETE plans","Ensure the connector's delete handle serializes with its type key","Check for truncated or hand-modified plan JSON"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}