The PDataTypeForArray.createPhoenixArray() needs to pass in byteSize from expression.getByteSize() where it's called.