The following was sufficient to re-create the condition: CREATE TABLE IF NOT EXISTS...
ArrayIndexOutOfBoundsException in UNION ALL