prestodb/presto · error · ParseError
{parse_error} ValueSet ValueSet
Error message
{parse_error} ValueSet ValueSet What it means
Velox protocol deserialization error: reading the ValueSet subclass key from JSON threw a parse error (missing/malformed type discriminator). from_json prefixes the jjson error with the ValueSet tag; indicates a corrupt or version-mismatched serialized constraint crossing into native execution.
Source
Thrown at presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp:4183
}
if (type == "sortable") {
j = *std::static_pointer_cast<SortedRangeSet>(p);
return;
}
if (type == "allOrNone") {
j = *std::static_pointer_cast<AllOrNoneValueSet>(p);
return;
}
throw TypeError(type + " no abstract type ValueSet ");
}
void from_json(const json& j, std::shared_ptr<ValueSet>& p) {
String type;
try {
type = p->getSubclassKey(j);
} catch (json::parse_error& e) {
throw ParseError(std::string(e.what()) + " ValueSet ValueSet");
}
if (type == "equatable") {
std::shared_ptr<EquatableValueSet> k =
std::make_shared<EquatableValueSet>();
j.get_to(*k);
p = std::static_pointer_cast<ValueSet>(k);
return;
}
if (type == "sortable") {
std::shared_ptr<SortedRangeSet> k = std::make_shared<SortedRangeSet>();
j.get_to(*k);
p = std::static_pointer_cast<ValueSet>(k);
return;
}
if (type == "allOrNone") {
std::shared_ptr<AllOrNoneValueSet> k =
std::make_shared<AllOrNoneValueSet>();View on GitHub (pinned to 55bb57d202)
Solutions
- Align protocol versions between Java and presto_cpp
- Verify serialized TupleDomain/ValueSet JSON includes the type key
- Capture and validate the plan JSON payload for the failing query
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at presto-native-execution/presto_cpp/presto_protocol/core/presto_protocol_core.cpp:4183 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04).
Data as JSON: /api/errors/f6eb2d728902fdf5.
Report an issue: GitHub.