Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In RelBuilder, optimize Union(all, Values, Values) to Values. Similarly optimize Project(Values) to Values if the projected expressions are all literals.
This pattern occurs frequently, if someone writes SELECT 1, 'a' UNION ALL SELECT 2, 'b' for instance.
Enable this rewrite with a new property boolean RelBuilder.Config.simplifyValues(), default true.