calcite
calcite copied to clipboard
[CALCITE-3963] Maintains logical properties at RelSet (equivalent gro…
…up) instead of RelNode
- Add new LogicalNode interface that supports reporting stats estimation confidence.
- Re-purpose set.rel and rename it into set.originalRel to report logical properties of RelSet.
- When a new RelNode is added to the set, we check the stats confidence of the new node, and update set.originalRel if it has a higher confidence level.
- Meta data handler will always report logical properties from set.originalRel for RelSubset.
CALCITE-3963