Skip to main content

DistinctNode

  • Namespace: PPDS.Dataverse.Query.Planning.Nodes
  • Assembly: PPDS.Dataverse
  • Kind: Class
  • Implements: IQueryPlanNode

Summary

Deduplicates rows from a single input using a composite key hash set. Used for UNION (without ALL) to remove duplicate rows across branches.

Members

Constructors

DistinctNode(IQueryPlanNode input)

DistinctNode(IQueryPlanNode input)

Initializes a new instance of the PPDS.Dataverse.Query.Planning.Nodes.DistinctNode class.

Methods

ExecuteAsync

IAsyncEnumerable<QueryRow> ExecuteAsync(QueryPlanContext context, CancellationToken cancellationToken)

Execute this node, producing rows.

Properties

Children

IReadOnlyList<IQueryPlanNode> Children { get; }

Child nodes (inputs to this operator).

Description

string Description { get; }

Human-readable description for EXPLAIN output.

EstimatedRows

long EstimatedRows { get; }

Estimated row count (for cost-based decisions). -1 if unknown.

Input

IQueryPlanNode Input { get; }

The child node that produces input rows.