Class UnionToValuesRule

All Implemented Interfaces:
TransformationRule

@Enclosing public class UnionToValuesRule extends RelRule<UnionToValuesRule.Config> implements TransformationRule
Planner rule that converts Union with inputs only containing Values into an Values.

For example,


 Union(all=[true])
     Values(tuples=[[{ 3, null }]])
     Values(tuples=[[{ 7369, null }]])
     Values(tuples=[[{ 1, 2 }]])
 

becomes


 Values(tuples=[[{ 3, null }, { 7369, null }, { 1, 2 }]])
 

If (all = false), Values value will be set list.