pig-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roh...@apache.org
Subject svn commit: r1601993 - /pig/trunk/src/org/apache/pig/builtin/PigStorage.java
Date Wed, 11 Jun 2014 19:26:17 GMT
Author: rohini
Date: Wed Jun 11 19:26:16 2014
New Revision: 1601993

URL: http://svn.apache.org/r1601993
Log:
PIG-3988: PigStorage: CommandLineParser is not thread safe (tmwoodruff via rohini) - Fix NPE
with commons-cli-1.0.jar

Modified:
    pig/trunk/src/org/apache/pig/builtin/PigStorage.java

Modified: pig/trunk/src/org/apache/pig/builtin/PigStorage.java
URL: http://svn.apache.org/viewvc/pig/trunk/src/org/apache/pig/builtin/PigStorage.java?rev=1601993&r1=1601992&r2=1601993&view=diff
==============================================================================
--- pig/trunk/src/org/apache/pig/builtin/PigStorage.java (original)
+++ pig/trunk/src/org/apache/pig/builtin/PigStorage.java Wed Jun 11 19:26:16 2014
@@ -28,7 +28,6 @@ import org.apache.commons.cli.CommandLin
 import org.apache.commons.cli.GnuParser;
 import org.apache.commons.cli.HelpFormatter;
 import org.apache.commons.cli.Option;
-import org.apache.commons.cli.OptionBuilder;
 import org.apache.commons.cli.Options;
 import org.apache.commons.cli.ParseException;
 import org.apache.commons.logging.Log;
@@ -166,7 +165,7 @@ LoadPushDown, LoadMetadata, StoreMetadat
         validOptions.addOption(TAG_SOURCE_FILE, false, "Appends input source file name to
beginning of each tuple.");
         validOptions.addOption(TAG_SOURCE_PATH, false, "Appends input source file path to
beginning of each tuple.");
         validOptions.addOption("tagsource", false, "Appends input source file name to beginning
of each tuple.");
-        Option overwrite = new Option(null, "Overwrites the destination.");
+        Option overwrite = new Option(" ", "Overwrites the destination.");
         overwrite.setLongOpt("overwrite");
         overwrite.setOptionalArg(true);
         overwrite.setArgs(1);



Mime
View raw message