Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, we get an empty unique key for Intersect and Minus if its all is true.
// code placeholder public Set<ImmutableBitSet> getUniqueKeys(SetOp rel, RelMetadataQuery mq, boolean ignoreNulls) { if (!rel.all) { return ImmutableSet.of( ImmutableBitSet.range(rel.getRowType().getFieldCount())); } return ImmutableSet.of(); }
However, from the semantic of Intersect and Minus, we can get their unique keys from its input even if its all is true.
Attachments
Issue Links
- links to