This Jira has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. Any problems email email@example.com
Enlightened by HIVE-11684 (Kudos to Jesus Camacho Rodriguez), we can actually push limit down through union all, which reduces the intermediate number of rows in union branches.
Rules to push down limits
Implement limit pushdown through outer join in CBO