IMPALA-881: Tests for joins with union inputs.

Change-Id: I4be6821ac3938345ca95c542d868c87512ff66da
Reviewed-on: http://gerrit.ent.cloudera.com:8080/3089
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: jenkins