Author: olga Date: Fri Nov 14 17:19:56 2008 New Revision: 714207 URL: http://svn.apache.org/viewvc?rev=714207&view=rev Log: added types to tutorial scripts
Modified: hadoop/pig/branches/types/tutorial/scripts/script1-local.pig hadoop/pig/branches/types/tutorial/scripts/script2-hadoop.pig hadoop/pig/branches/types/tutorial/scripts/script2-local.pig Modified: hadoop/pig/branches/types/tutorial/scripts/script1-local.pig URL: http://svn.apache.org/viewvc/hadoop/pig/branches/types/tutorial/scripts/script1-local.pig?rev=714207&r1=714206&r2=714207&view=diff ============================================================================== --- hadoop/pig/branches/types/tutorial/scripts/script1-local.pig (original) +++ hadoop/pig/branches/types/tutorial/scripts/script1-local.pig Fri Nov 14 17:19:56 2008 @@ -23,7 +23,7 @@ -- Register the tutorial JAR file so that the included UDFs can be called in the script. REGISTER ./tutorial.jar; --- Use the PigStorage function to load the excite log file into the raw bag as an array of records. +-- Use the PigStorage function to load the excite log file into the raw bag as an array of records. -- Input: (user,time,query) raw = LOAD 'excite-small.log' USING PigStorage('\t') AS (user, time, query); Modified: hadoop/pig/branches/types/tutorial/scripts/script2-hadoop.pig URL: http://svn.apache.org/viewvc/hadoop/pig/branches/types/tutorial/scripts/script2-hadoop.pig?rev=714207&r1=714206&r2=714207&view=diff ============================================================================== --- hadoop/pig/branches/types/tutorial/scripts/script2-hadoop.pig (original) +++ hadoop/pig/branches/types/tutorial/scripts/script2-hadoop.pig Fri Nov 14 17:19:56 2008 @@ -25,7 +25,7 @@ -- Use the PigStorage function to load the excite log file into the raw bag as an array of records. -- Input: (user,time,query) -raw = LOAD 'excite.log.bz2' USING PigStorage('\t') AS (user, time, query); +raw = LOAD 'excite.log.bz2' USING PigStorage('\t') AS (user: chararray, time: chararray, query: chararray); -- Call the NonURLDetector UDF to remove records if the query field is empty or a URL. clean1 = FILTER raw BY org.apache.pig.tutorial.NonURLDetector(query); Modified: hadoop/pig/branches/types/tutorial/scripts/script2-local.pig URL: http://svn.apache.org/viewvc/hadoop/pig/branches/types/tutorial/scripts/script2-local.pig?rev=714207&r1=714206&r2=714207&view=diff ============================================================================== --- hadoop/pig/branches/types/tutorial/scripts/script2-local.pig (original) +++ hadoop/pig/branches/types/tutorial/scripts/script2-local.pig Fri Nov 14 17:19:56 2008 @@ -25,7 +25,7 @@ -- Use the PigStorage function to load the excite log file into the raw bag as an array of records. -- Input: (user,time,query) -raw = LOAD 'excite-small.log' USING PigStorage('\t') AS (user, time, query); +raw = LOAD 'excite-small.log' USING PigStorage('\t') AS (user: chararray, time: chararray, query: chararray); -- Call the NonURLDetector UDF to remove records if the query field is empty or a URL. clean1 = FILTER raw BY org.apache.pig.tutorial.NonURLDetector(query);