Index: ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFInFile.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFInFile.java (date 1421263954000) +++ ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFInFile.java (revision ) @@ -140,6 +140,17 @@ } @Override + public void copyToNewInstance(Object newInstance) throws UDFArgumentException { + super.copyToNewInstance(newInstance); // Asserts the class invariant. (Same types.) + GenericUDFInFile that = (GenericUDFInFile)newInstance; + if (that != this) { + that.set = (this.set == null ? null : (HashSet)this.set.clone()); + that.strObjectInspector = this.strObjectInspector; + that.fileObjectInspector = this.fileObjectInspector; + } + } + + @Override public String getDisplayString(String[] children) { assert (children.length == 2); return "in_file(" + children[0] + ", " + children[1] + ")";