Author: zjffdu
Date: Tue Jul 27 02:51:04 2010
New Revision: 979503

URL: http://svn.apache.org/viewvc?rev=979503&view=rev
Log:
PIG-1487: Replace "bz" with ".bz" in all the LoadFunc

Modified:
    hadoop/pig/trunk/CHANGES.txt
    hadoop/pig/trunk/src/org/apache/pig/builtin/PigStorage.java
    hadoop/pig/trunk/src/org/apache/pig/builtin/TextLoader.java

Modified: hadoop/pig/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/hadoop/pig/trunk/CHANGES.txt?rev=979503&r1=979502&r2=979503&view=diff
==============================================================================
--- hadoop/pig/trunk/CHANGES.txt (original)
+++ hadoop/pig/trunk/CHANGES.txt Tue Jul 27 02:51:04 2010
@@ -106,6 +106,8 @@ PIG-1309: Map-side Cogroup (ashutoshc)
 
 BUG FIXES
 
+PIG-1487: Replace "bz" with ".bz" in all the LoadFunc
+
 PIG-1489: Pig MapReduceLauncher does not use jars in register statement
 (rding)
 

Modified: hadoop/pig/trunk/src/org/apache/pig/builtin/PigStorage.java
URL: 
http://svn.apache.org/viewvc/hadoop/pig/trunk/src/org/apache/pig/builtin/PigStorage.java?rev=979503&r1=979502&r2=979503&view=diff
==============================================================================
--- hadoop/pig/trunk/src/org/apache/pig/builtin/PigStorage.java (original)
+++ hadoop/pig/trunk/src/org/apache/pig/builtin/PigStorage.java Tue Jul 27 
02:51:04 2010
@@ -199,7 +199,7 @@ LoadPushDown {
 
     @Override
     public InputFormat getInputFormat() {
-        if(loadLocation.endsWith("bz2") || loadLocation.endsWith("bz")) {
+        if(loadLocation.endsWith(".bz2") || loadLocation.endsWith(".bz")) {
             return new Bzip2TextInputFormat();
         } else {
             return new PigTextInputFormat();

Modified: hadoop/pig/trunk/src/org/apache/pig/builtin/TextLoader.java
URL: 
http://svn.apache.org/viewvc/hadoop/pig/trunk/src/org/apache/pig/builtin/TextLoader.java?rev=979503&r1=979502&r2=979503&view=diff
==============================================================================
--- hadoop/pig/trunk/src/org/apache/pig/builtin/TextLoader.java (original)
+++ hadoop/pig/trunk/src/org/apache/pig/builtin/TextLoader.java Tue Jul 27 
02:51:04 2010
@@ -201,7 +201,7 @@ public class TextLoader extends LoadFunc
 
     @Override
     public InputFormat getInputFormat() {
-        if(loadLocation.endsWith("bz2") || loadLocation.endsWith("bz")) {
+        if(loadLocation.endsWith(".bz2") || loadLocation.endsWith(".bz")) {
             return new Bzip2TextInputFormat();
         } else {
             return new PigTextInputFormat();


Reply via email to