use crate::db::query::explain::ExplainExecutionNodeType;
pub(in crate::db::query::explain) const fn owns(node_type: ExplainExecutionNodeType) -> bool {
matches!(
node_type,
ExplainExecutionNodeType::DistinctPreOrdered
| ExplainExecutionNodeType::DistinctMaterialized
| ExplainExecutionNodeType::AggregateCount
| ExplainExecutionNodeType::AggregateExists
| ExplainExecutionNodeType::AggregateMin
| ExplainExecutionNodeType::AggregateMax
| ExplainExecutionNodeType::AggregateFirst
| ExplainExecutionNodeType::AggregateLast
| ExplainExecutionNodeType::AggregateSum
| ExplainExecutionNodeType::AggregateSeekFirst
| ExplainExecutionNodeType::AggregateSeekLast
| ExplainExecutionNodeType::GroupedAggregateHashMaterialized
| ExplainExecutionNodeType::GroupedAggregateOrderedMaterialized
)
}