{"record":{"id":"cd268cff7fff4008","repo":"prestodb/presto","slug":"type-no-abstract-type-valueset","errorCode":null,"errorMessage":"{type} no abstract type ValueSet ","messagePattern":"(.+?) no abstract type ValueSet ","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp","lineNumber":4175,"sourceCode":"  if (p == nullptr) {\n    return;\n  }\n  String type = p->_type;\n\n  if (type == \"equatable\") {\n    j = *std::static_pointer_cast<EquatableValueSet>(p);\n    return;\n  }\n  if (type == \"sortable\") {\n    j = *std::static_pointer_cast<SortedRangeSet>(p);\n    return;\n  }\n  if (type == \"allOrNone\") {\n    j = *std::static_pointer_cast<AllOrNoneValueSet>(p);\n    return;\n  }\n\n  throw TypeError(type + \" no abstract type ValueSet \");\n}\n\nvoid from_json(const json& j, std::shared_ptr<ValueSet>& p) {\n  String type;\n  try {\n    type = p->getSubclassKey(j);\n  } catch (json::parse_error& e) {\n    throw ParseError(std::string(e.what()) + \" ValueSet  ValueSet\");\n  }\n\n  if (type == \"equatable\") {\n    std::shared_ptr<EquatableValueSet> k =\n        std::make_shared<EquatableValueSet>();\n    j.get_to(*k);\n    p = std::static_pointer_cast<ValueSet>(k);\n    return;\n  }\n  if (type == \"sortable\") {","sourceCodeStart":4157,"sourceCodeEnd":4193,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp#L4157-L4193","documentation":"Velox protocol serialization error: serializing a ValueSet whose _type is none of equatable/sortable/allOrNone. to_json exhausts the known subclass branches and throws TypeError, meaning an unknown ValueSet variant reached the native protocol conversion.","triggerScenarios":"Thrown at presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp:4175 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure only EquatableValueSet, SortedRangeSet, or AllOrNoneValueSet are serialized","Add the missing ValueSet subclass to the native protocol","Check TupleDomain construction producing the unexpected variant"],"exampleFix":null,"handlingStrategy":"type-guard","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"}