Using a Union in a PreparedStatement seems to cause issues with the ParameterMetaData.
We believe this is the cause of an issue we are encountering when using the thin client to execute such a query. This unit test should illustrate: -- Sent from: http://apache-phoenix-user-list.1124778.n5.nabble.com/