TEIID-2381 ensuring proper handling with unions and inline views