if(isNullOrUnknownType(myFs) && isNullOrUnknownType(otherFs)) { int errCode = 1021; String msg = "Type mismatch. No useful type for merging. Field Schema: " + myFs + ". Other Field Schema: " + otherFs; } else if(myFs.type == otherFs.type) { mergedType = myFs.type; } else if (!isNullOrUnknownType(myFs) && isNullOrUnknownType(otherFs)) { mergedType = myFs.type; } else { if (allowMergeableTypes) { if (isNullOrUnknownType(myFs) && !isNullOrUnknownType(otherFs)) { mergedType = otherFs.type; } else if(otherFs.type == DataType.BYTEARRAY) {