├── .eclipse.templates ├── .classpath ├── .project └── README.txt ├── .gitignore ├── BUILDING.md ├── CHANGES.txt ├── KEYS ├── LICENSE.txt ├── NOTICE.txt ├── README.txt ├── RELEASE_NOTES.txt ├── autocomplete ├── bin ├── pig ├── pig.cmd └── pig.py ├── build.xml ├── conf ├── ivysettings.xml ├── log4j.properties.template ├── owasp-dependency-check-suppressions.xml ├── pig.properties └── test-log4j.properties ├── contrib ├── CHANGES.txt └── piggybank │ └── java │ ├── build.xml │ ├── lib │ └── .gitignore │ └── src │ ├── main │ └── java │ │ └── org │ │ └── apache │ │ └── pig │ │ └── piggybank │ │ ├── evaluation │ │ ├── ExtremalTupleByNthField.java │ │ ├── IsDouble.java │ │ ├── IsFloat.java │ │ ├── IsInt.java │ │ ├── IsLong.java │ │ ├── IsNumeric.java │ │ ├── MaxTupleBy1stField.java │ │ ├── Over.java │ │ ├── Stitch.java │ │ ├── datetime │ │ │ ├── DiffDate.java │ │ │ ├── convert │ │ │ │ ├── CustomFormatToISO.java │ │ │ │ ├── ISOToUnix.java │ │ │ │ └── UnixToISO.java │ │ │ ├── diff │ │ │ │ ├── ISODaysBetween.java │ │ │ │ ├── ISOHoursBetween.java │ │ │ │ ├── ISOMinutesBetween.java │ │ │ │ ├── ISOMonthsBetween.java │ │ │ │ ├── ISOSecondsBetween.java │ │ │ │ └── ISOYearsBetween.java │ │ │ └── truncate │ │ │ │ ├── ISOHelper.java │ │ │ │ ├── ISOToDay.java │ │ │ │ ├── ISOToHour.java │ │ │ │ ├── ISOToMinute.java │ │ │ │ ├── ISOToMonth.java │ │ │ │ ├── ISOToSecond.java │ │ │ │ ├── ISOToWeek.java │ │ │ │ └── ISOToYear.java │ │ ├── decode │ │ │ ├── Bin.java │ │ │ ├── BinCond.java │ │ │ └── Decode.java │ │ ├── math │ │ │ ├── ABS.java │ │ │ ├── ACOS.java │ │ │ ├── ASIN.java │ │ │ ├── ATAN.java │ │ │ ├── ATAN2.java │ │ │ ├── Base.java │ │ │ ├── CBRT.java │ │ │ ├── CEIL.java │ │ │ ├── COS.java │ │ │ ├── COSH.java │ │ │ ├── DoubleAbs.java │ │ │ ├── DoubleBase.java │ │ │ ├── DoubleCopySign.java │ │ │ ├── DoubleDoubleBase.java │ │ │ ├── DoubleGetExponent.java │ │ │ ├── DoubleMax.java │ │ │ ├── DoubleMin.java │ │ │ ├── DoubleNextAfter.java │ │ │ ├── DoubleNextup.java │ │ │ ├── DoubleRound.java │ │ │ ├── DoubleSignum.java │ │ │ ├── DoubleUlp.java │ │ │ ├── EXP.java │ │ │ ├── EXPM1.java │ │ │ ├── FLOOR.java │ │ │ ├── FloatAbs.java │ │ │ ├── FloatCopySign.java │ │ │ ├── FloatGetExponent.java │ │ │ ├── FloatMax.java │ │ │ ├── FloatMin.java │ │ │ ├── FloatNextAfter.java │ │ │ ├── FloatNextup.java │ │ │ ├── FloatRound.java │ │ │ ├── FloatSignum.java │ │ │ ├── FloatUlp.java │ │ │ ├── HYPOT.java │ │ │ ├── IEEEremainder.java │ │ │ ├── IntAbs.java │ │ │ ├── IntMax.java │ │ │ ├── IntMin.java │ │ │ ├── LOG.java │ │ │ ├── LOG10.java │ │ │ ├── LOG1P.java │ │ │ ├── LongAbs.java │ │ │ ├── LongMax.java │ │ │ ├── LongMin.java │ │ │ ├── MAX.java │ │ │ ├── MIN.java │ │ │ ├── NEXTUP.java │ │ │ ├── POW.java │ │ │ ├── RANDOM.java │ │ │ ├── RINT.java │ │ │ ├── ROUND.java │ │ │ ├── SCALB.java │ │ │ ├── SIGNUM.java │ │ │ ├── SIN.java │ │ │ ├── SINH.java │ │ │ ├── SQRT.java │ │ │ ├── TAN.java │ │ │ ├── TANH.java │ │ │ ├── ULP.java │ │ │ ├── Util.java │ │ │ ├── copySign.java │ │ │ ├── getExponent.java │ │ │ ├── nextAfter.java │ │ │ ├── toDegrees.java │ │ │ └── toRadians.java │ │ ├── stats │ │ │ ├── COR.java │ │ │ └── COV.java │ │ ├── string │ │ │ ├── HashFNV.java │ │ │ ├── HashFNV1.java │ │ │ ├── HashFNV2.java │ │ │ ├── INDEXOF.java │ │ │ ├── LASTINDEXOF.java │ │ │ ├── LENGTH.java │ │ │ ├── LOWER.java │ │ │ ├── LcFirst.java │ │ │ ├── LookupInFiles.java │ │ │ ├── REPLACE.java │ │ │ ├── REPLACE_MULTI.java │ │ │ ├── RegexExtract.java │ │ │ ├── RegexExtractAll.java │ │ │ ├── RegexMatch.java │ │ │ ├── Reverse.java │ │ │ ├── SUBSTRING.java │ │ │ ├── Split.java │ │ │ ├── Stuff.java │ │ │ ├── Trim.java │ │ │ ├── UPPER.java │ │ │ └── UcFirst.java │ │ ├── util │ │ │ ├── SearchQuery.java │ │ │ ├── ToBag.java │ │ │ ├── ToTuple.java │ │ │ ├── Top.java │ │ │ └── apachelogparser │ │ │ │ ├── DateExtractor.java │ │ │ │ ├── HostExtractor.java │ │ │ │ ├── SearchEngineExtractor.java │ │ │ │ └── SearchTermExtractor.java │ │ └── xml │ │ │ ├── XPath.java │ │ │ └── XPathAll.java │ │ └── storage │ │ ├── AllLoader.java │ │ ├── CSVExcelStorage.java │ │ ├── CSVLoader.java │ │ ├── DBStorage.java │ │ ├── FixedWidthLoader.java │ │ ├── FixedWidthStorer.java │ │ ├── HiveColumnarLoader.java │ │ ├── HiveColumnarStorage.java │ │ ├── IndexedStorage.java │ │ ├── JsonMetadata.java │ │ ├── MultiStorage.java │ │ ├── MyRegExLoader.java │ │ ├── PigStorageSchema.java │ │ ├── RegExLoader.java │ │ ├── SequenceFileLoader.java │ │ ├── XMLLoader.java │ │ ├── allloader │ │ └── LoadFuncHelper.java │ │ ├── apachelog │ │ ├── CombinedLogLoader.java │ │ ├── CommonLogLoader.java │ │ └── LogFormatLoader.java │ │ ├── avro │ │ ├── AvroSchema2Pig.java │ │ ├── AvroSchemaManager.java │ │ ├── AvroStorage.java │ │ ├── AvroStorageInputStream.java │ │ ├── AvroStorageLog.java │ │ ├── AvroStorageUtils.java │ │ ├── PigAvroDatumReader.java │ │ ├── PigAvroDatumWriter.java │ │ ├── PigAvroInputFormat.java │ │ ├── PigAvroOutputFormat.java │ │ ├── PigAvroRecordReader.java │ │ ├── PigAvroRecordWriter.java │ │ └── PigSchema2Avro.java │ │ ├── hiverc │ │ ├── HiveRCInputFormat.java │ │ ├── HiveRCOutputFormat.java │ │ ├── HiveRCRecordReader.java │ │ └── HiveRCSchemaUtil.java │ │ └── partition │ │ ├── PathPartitionHelper.java │ │ └── PathPartitioner.java │ └── test │ └── java │ └── org │ └── apache │ └── pig │ └── piggybank │ ├── evaluation │ ├── TestOver.java │ └── TestStitch.java │ └── test │ ├── data │ └── jh │ │ ├── localhost_1272395783545_job_201004271216_9998_conf.xml │ │ ├── localhost_1272395783545_job_201004271216_9998_user_PigLatinTest.pig │ │ └── localhost_1272395783545_job_conf.xml │ ├── evaluation │ ├── TestEvalString.java │ ├── TestExtremalTupleByNthField.java │ ├── TestIsDouble.java │ ├── TestIsFloat.java │ ├── TestIsInt.java │ ├── TestIsLong.java │ ├── TestIsNumeric.java │ ├── TestMathUDF.java │ ├── TestMaxTupleBy1stField.java │ ├── TestStat.java │ ├── datetime │ │ ├── TestDiffDate.java │ │ ├── convert │ │ │ └── TestConvertDateTime.java │ │ ├── diff │ │ │ └── TestDiffDateTime.java │ │ └── truncate │ │ │ └── TestTruncateDateTime.java │ ├── decode │ │ └── TestDecode.java │ ├── string │ │ ├── TestHashFNV.java │ │ ├── TestLength.java │ │ ├── TestLookupInFiles.java │ │ ├── TestRegex.java │ │ ├── TestReplaceMulti.java │ │ ├── TestReverse.java │ │ ├── TestSplit.java │ │ ├── TestStuff.java │ │ └── TestUcFirst.java │ ├── util │ │ ├── TestSearchQuery.java │ │ ├── TestToBagToTuple.java │ │ ├── TestTop.java │ │ └── apachelogparser │ │ │ ├── TestDateExtractor.java │ │ │ ├── TestHostExtractor.java │ │ │ ├── TestSearchEngineExtractor.java │ │ │ └── TestSearchTermExtractor.java │ └── xml │ │ ├── XPathAllTest.java │ │ ├── XPathTest.java │ │ └── data │ │ └── test-file-2.xml.bz2 │ └── storage │ ├── TestAllLoader.java │ ├── TestAvroStorageData │ ├── expected_testArrayDefault.avro │ ├── expected_testArrayWithSchema.avro │ ├── expected_testRecordSplit1.avro │ ├── expected_testRecordSplit2.avro │ ├── expected_testRecordWithFieldSchema.avro │ ├── test_array.avro │ └── test_record.avro │ ├── TestCSVExcelStorage.java │ ├── TestCSVStorage.java │ ├── TestCombinedLogLoader.java │ ├── TestCommonLogLoader.java │ ├── TestDBStorage.java │ ├── TestFixedWidthLoader.java │ ├── TestFixedWidthStorer.java │ ├── TestHelper.java │ ├── TestHiveColumnarLoader.java │ ├── TestHiveColumnarStorage.java │ ├── TestIndexedStorage.java │ ├── TestLoadFuncHelper.java │ ├── TestLogFormatLoader.java │ ├── TestMultiStorage.java │ ├── TestMultiStorageCompression.java │ ├── TestMyRegExLoader.java │ ├── TestPathPartitionHelper.java │ ├── TestPathPartitioner.java │ ├── TestRegExLoader.java │ ├── TestSequenceFileLoader.java │ ├── TestXMLLoader.java │ └── avro │ ├── TestAvroStorage.java │ ├── TestAvroStorageUtils.java │ └── avro_test_files │ ├── expected_testArrayDefault.avro │ ├── expected_testArrayWithSchema.avro │ ├── expected_testArrayWithSchemaURI.avro │ ├── expected_testCorruptedFile.avro │ ├── expected_testDefaultSchemaWrite.avro │ ├── expected_testDir.avro │ ├── expected_testFileWithNoExtension.avro │ ├── expected_testMultipleSchemas1.avro │ ├── expected_testMultipleSchemas2.avro │ ├── expected_testRecordSplit1.avro │ ├── expected_testRecordSplit2.avro │ ├── expected_testRecordSplitFromText1.avro │ ├── expected_testRecordSplitFromText2.avro │ ├── expected_testRecordWithFieldSchema.avro │ ├── expected_testRecursiveRecordReference1.avro │ ├── expected_testRecursiveRecordReference2.avro │ ├── expected_testRecursiveRecordReference3.avro │ ├── expected_testUserDefinedLoadSchema.avro │ ├── expected_test_dir_1.avro │ ├── expected_test_dir_1_2.avro │ ├── messages.avro │ ├── test_array.avro │ ├── test_array.avsc │ ├── test_complex_types │ ├── test_record_double.avro │ ├── test_record_enum.avro │ ├── test_record_float.avro │ ├── test_record_int.avro │ ├── test_record_long.avro │ └── test_record_string.avro │ ├── test_corrupted_file.avro │ ├── test_dir1 │ ├── test_glob1.avro │ ├── test_glob2.avro │ ├── test_glob3.avro │ └── test_subdir │ │ ├── test_glob4.avro │ │ └── test_glob5.avro │ ├── test_dir2 │ ├── test_glob4.avro │ └── test_glob5.avro │ ├── test_generic_union.avro │ ├── test_loadavrowithnulls.avro │ ├── test_merge_schemas_default │ ├── Employee3.avro │ ├── Employee4.avro │ └── Employee6.avro │ ├── test_no_extension │ ├── test_primitive_types │ ├── test_double.avro │ ├── test_enum.avro │ ├── test_float.avro │ ├── test_int.avro │ ├── test_long.avro │ └── test_string.avro │ ├── test_record.avro │ ├── test_record.avsc │ ├── test_record.txt │ ├── test_recursive_record_in_array.avro │ ├── test_recursive_record_in_map.avro │ ├── test_recursive_record_in_record.avro │ ├── test_recursive_record_in_union.avro │ ├── test_recursive_record_in_union.avsc │ └── test_user_defined_load_schema │ ├── testUserDefinedLoadSchema_input1.avro │ └── testUserDefinedLoadSchema_input2.avro ├── dev-support └── docker │ ├── Dockerfile │ ├── build_env_checks.sh │ └── configure-for-user.sh ├── doap_Pig.rdf ├── ivy.xml ├── ivy ├── ant-contrib-1.0b3.jar ├── ivysettings.xml ├── libraries-h2.properties ├── libraries-h3.properties ├── libraries.properties ├── pig-template.xml ├── piggybank-template.xml ├── pigsmoke-template.xml └── pigunit-template.xml ├── lib-src └── bzip2 │ └── org │ └── apache │ ├── pig │ └── bzip2r │ │ └── Bzip2TextInputFormat.java │ └── tools │ └── bzip2r │ ├── BZip2Constants.java │ ├── CBZip2InputStream.java │ ├── CBZip2OutputStream.java │ └── CRC.java ├── license ├── brics-LICENSE.txt ├── hadoop-LICENSE.txt ├── javacc-LICENSE.txt ├── jline-LICENSE.txt └── junit-LICENSE.txt ├── shade └── roaringbitmap │ └── pom.xml ├── shims ├── src │ ├── hadoop2 │ │ └── org │ │ │ └── apache │ │ │ └── pig │ │ │ └── backend │ │ │ └── hadoop │ │ │ └── executionengine │ │ │ └── shims │ │ │ └── HadoopShims.java │ ├── hive1 │ │ └── org │ │ │ └── apache │ │ │ └── pig │ │ │ └── hive │ │ │ └── HiveShims.java │ └── hive3 │ │ └── org │ │ └── apache │ │ └── pig │ │ └── hive │ │ └── HiveShims.java └── test │ └── hadoop2 │ └── .gitignore ├── src ├── META-INF │ └── services │ │ └── org.apache.pig.ExecType ├── docs │ ├── forrest.properties │ ├── forrest.properties.dispatcher.properties │ ├── forrest.properties.xml │ ├── jdiff │ │ └── pig_0.17.0.xml │ └── src │ │ └── documentation │ │ ├── README.txt │ │ ├── classes │ │ └── CatalogManager.properties │ │ ├── conf │ │ └── cli.xconf │ │ ├── content │ │ ├── locationmap.xml │ │ ├── test1.html │ │ └── xdocs │ │ │ ├── admin.xml │ │ │ ├── basic.xml │ │ │ ├── cmds.xml │ │ │ ├── cont.xml │ │ │ ├── func.xml │ │ │ ├── images │ │ │ ├── group.svg │ │ │ ├── hadoop-logo.jpg │ │ │ ├── pig-logo.gif │ │ │ ├── project.svg │ │ │ └── zebra.jpg │ │ │ ├── index.xml │ │ │ ├── perf.xml │ │ │ ├── pig-index.xml │ │ │ ├── pigunit.xml │ │ │ ├── site.xml │ │ │ ├── start.xml │ │ │ ├── tabs.xml │ │ │ ├── test.xml │ │ │ ├── udf.xml │ │ │ └── v_editors.xml │ │ ├── resources │ │ ├── images │ │ │ ├── ellipse-2.svg │ │ │ ├── pig-in-overalls-big.jpg │ │ │ ├── pig-in-overalls-medium.png │ │ │ ├── pig-on-elephant.png │ │ │ └── pig_zeppelin.png │ │ ├── schema │ │ │ ├── catalog.xcat │ │ │ ├── hello-v10.dtd │ │ │ └── symbols-project-v10.ent │ │ └── stylesheets │ │ │ └── hello2document.xsl │ │ ├── sitemap.xmap │ │ ├── skinconf.xml │ │ └── translations │ │ ├── langcode.xml │ │ ├── languages_de.xml │ │ ├── languages_en.xml │ │ ├── languages_es.xml │ │ ├── languages_fr.xml │ │ ├── languages_nl.xml │ │ ├── menu.xml │ │ ├── menu_af.xml │ │ ├── menu_de.xml │ │ ├── menu_es.xml │ │ ├── menu_fr.xml │ │ ├── menu_it.xml │ │ ├── menu_nl.xml │ │ ├── menu_no.xml │ │ ├── menu_ru.xml │ │ ├── menu_sk.xml │ │ ├── tabs.xml │ │ ├── tabs_de.xml │ │ ├── tabs_es.xml │ │ ├── tabs_fr.xml │ │ └── tabs_nl.xml ├── main │ └── jruby │ │ └── pigudf.rb ├── org │ └── apache │ │ └── pig │ │ ├── Accumulator.java │ │ ├── AccumulatorEvalFunc.java │ │ ├── Algebraic.java │ │ ├── AlgebraicEvalFunc.java │ │ ├── CollectableLoadFunc.java │ │ ├── ComparisonFunc.java │ │ ├── CounterBasedErrorHandler.java │ │ ├── ErrorHandler.java │ │ ├── ErrorHandling.java │ │ ├── EvalFunc.java │ │ ├── ExceptionalFunction.java │ │ ├── ExecType.java │ │ ├── ExecTypeProvider.java │ │ ├── Expression.java │ │ ├── FileInputLoadFunc.java │ │ ├── FileSplitComparable.java │ │ ├── FilterFunc.java │ │ ├── FuncSpec.java │ │ ├── Function.java │ │ ├── IndexableLoadFunc.java │ │ ├── IteratingAccumulatorEvalFunc.java │ │ ├── JVMReuseImpl.java │ │ ├── JVMReuseManager.java │ │ ├── LoadCaster.java │ │ ├── LoadFunc.java │ │ ├── LoadFuncMetadataWrapper.java │ │ ├── LoadFuncWrapper.java │ │ ├── LoadMetadata.java │ │ ├── LoadPredicatePushdown.java │ │ ├── LoadPushDown.java │ │ ├── LoadStoreCaster.java │ │ ├── Main.java │ │ ├── NonFSLoadFunc.java │ │ ├── OrderedLoadFunc.java │ │ ├── OverwritableStoreFunc.java │ │ ├── PigConfiguration.java │ │ ├── PigConstants.java │ │ ├── PigCounters.java │ │ ├── PigException.java │ │ ├── PigRunner.java │ │ ├── PigServer.java │ │ ├── PigStreamingBase.java │ │ ├── PigToStream.java │ │ ├── PigWarning.java │ │ ├── PrimitiveEvalFunc.java │ │ ├── ResourceSchema.java │ │ ├── ResourceStatistics.java │ │ ├── SortColInfo.java │ │ ├── SortInfo.java │ │ ├── StaticDataCleanup.java │ │ ├── StoreCaster.java │ │ ├── StoreFunc.java │ │ ├── StoreFuncInterface.java │ │ ├── StoreFuncMetadataWrapper.java │ │ ├── StoreFuncWrapper.java │ │ ├── StoreMetadata.java │ │ ├── StoreResources.java │ │ ├── StreamToPig.java │ │ ├── TerminatingAccumulator.java │ │ ├── TypedOutputEvalFunc.java │ │ ├── backend │ │ ├── BackendException.java │ │ ├── datastorage │ │ │ ├── ContainerDescriptor.java │ │ │ ├── DataStorage.java │ │ │ ├── DataStorageException.java │ │ │ ├── ElementDescriptor.java │ │ │ ├── ImmutableOutputStream.java │ │ │ └── SeekableInputStream.java │ │ ├── executionengine │ │ │ ├── ExecException.java │ │ │ ├── ExecJob.java │ │ │ └── ExecutionEngine.java │ │ └── hadoop │ │ │ ├── BigDecimalWritable.java │ │ │ ├── BigIntegerWritable.java │ │ │ ├── DateTimeWritable.java │ │ │ ├── DoubleWritable.java │ │ │ ├── HDataType.java │ │ │ ├── HKerberos.java │ │ │ ├── PigATSClient.java │ │ │ ├── PigJobControl.java │ │ │ ├── accumulo │ │ │ ├── AbstractAccumuloStorage.java │ │ │ ├── AccumuloBinaryConverter.java │ │ │ ├── AccumuloStorage.java │ │ │ ├── AccumuloStorageOptions.java │ │ │ ├── Column.java │ │ │ ├── FixedByteArrayOutputStream.java │ │ │ └── Utils.java │ │ │ ├── datastorage │ │ │ ├── ConfigurationUtil.java │ │ │ ├── HConfiguration.java │ │ │ ├── HDataStorage.java │ │ │ ├── HDirectory.java │ │ │ ├── HFile.java │ │ │ ├── HPath.java │ │ │ └── HSeekableInputStream.java │ │ │ ├── executionengine │ │ │ ├── HExecutionEngine.java │ │ │ ├── HJob.java │ │ │ ├── JobCreationException.java │ │ │ ├── Launcher.java │ │ │ ├── MapRedResult.java │ │ │ ├── TaskContext.java │ │ │ ├── fetch │ │ │ │ ├── FetchContext.java │ │ │ │ ├── FetchLauncher.java │ │ │ │ ├── FetchOptimizer.java │ │ │ │ ├── FetchPOStoreImpl.java │ │ │ │ ├── FetchProgressableReporter.java │ │ │ │ └── FetchTaskContext.java │ │ │ ├── mapReduceLayer │ │ │ │ ├── AccumulatorOptimizer.java │ │ │ │ ├── ColumnChainInfo.java │ │ │ │ ├── ColumnInfo.java │ │ │ │ ├── CombinerOptimizer.java │ │ │ │ ├── DistinctCombiner.java │ │ │ │ ├── FileBasedOutputSizeReader.java │ │ │ │ ├── IllustrateDummyReporter.java │ │ │ │ ├── InputSizeReducerEstimator.java │ │ │ │ ├── JobControlCompiler.java │ │ │ │ ├── KeyTypeDiscoveryVisitor.java │ │ │ │ ├── LimitAdjuster.java │ │ │ │ ├── LocalExecType.java │ │ │ │ ├── MRCompiler.java │ │ │ │ ├── MRCompilerException.java │ │ │ │ ├── MRConfiguration.java │ │ │ │ ├── MRExecType.java │ │ │ │ ├── MRExecutionEngine.java │ │ │ │ ├── MRTaskContext.java │ │ │ │ ├── MRUtil.java │ │ │ │ ├── MapReduceLauncher.java │ │ │ │ ├── MapReduceOper.java │ │ │ │ ├── MapReducePOStoreImpl.java │ │ │ │ ├── MergeJoinIndexer.java │ │ │ │ ├── MultiQueryOptimizer.java │ │ │ │ ├── NativeMapReduceOper.java │ │ │ │ ├── NoopFilterRemover.java │ │ │ │ ├── NoopFilterRemoverUtil.java │ │ │ │ ├── NoopStoreRemover.java │ │ │ │ ├── PhyPlanSetter.java │ │ │ │ ├── PigBigDecimalRawComparator.java │ │ │ │ ├── PigBigIntegerRawComparator.java │ │ │ │ ├── PigBooleanRawComparator.java │ │ │ │ ├── PigBytesRawComparator.java │ │ │ │ ├── PigCombiner.java │ │ │ │ ├── PigDateTimeRawComparator.java │ │ │ │ ├── PigDoubleRawComparator.java │ │ │ │ ├── PigFileInputFormat.java │ │ │ │ ├── PigFloatRawComparator.java │ │ │ │ ├── PigGenericMapBase.java │ │ │ │ ├── PigGenericMapReduce.java │ │ │ │ ├── PigHadoopLogger.java │ │ │ │ ├── PigInputFormat.java │ │ │ │ ├── PigIntRawComparator.java │ │ │ │ ├── PigLongRawComparator.java │ │ │ │ ├── PigMapBase.java │ │ │ │ ├── PigMapOnly.java │ │ │ │ ├── PigMapReduce.java │ │ │ │ ├── PigMapReduceCounter.java │ │ │ │ ├── PigOutputCommitter.java │ │ │ │ ├── PigOutputFormat.java │ │ │ │ ├── PigRecordReader.java │ │ │ │ ├── PigReducerEstimator.java │ │ │ │ ├── PigSecondaryKeyComparator.java │ │ │ │ ├── PigSequenceFileInputFormat.java │ │ │ │ ├── PigSplit.java │ │ │ │ ├── PigStatsOutputSizeReader.java │ │ │ │ ├── PigTextInputFormat.java │ │ │ │ ├── PigTextOutputFormat.java │ │ │ │ ├── PigTextRawComparator.java │ │ │ │ ├── PigTupleDefaultRawComparator.java │ │ │ │ ├── PigTupleSortComparator.java │ │ │ │ ├── PigWritableComparators.java │ │ │ │ ├── ProgressableReporter.java │ │ │ │ ├── RunJarSecurityManager.java │ │ │ │ ├── SampleOptimizer.java │ │ │ │ ├── SecondaryKeyOptimizer.java │ │ │ │ ├── SecondaryKeyOptimizerMR.java │ │ │ │ ├── SortKeyInfo.java │ │ │ │ ├── UDFEndOfAllInputNeededVisitor.java │ │ │ │ ├── UDFFinishVisitor.java │ │ │ │ ├── partitioners │ │ │ │ │ ├── CountingMap.java │ │ │ │ │ ├── DiscreteProbabilitySampleGenerator.java │ │ │ │ │ ├── SecondaryKeyPartitioner.java │ │ │ │ │ ├── SkewedPartitioner.java │ │ │ │ │ └── WeightedRangePartitioner.java │ │ │ │ └── plans │ │ │ │ │ ├── DotMRPrinter.java │ │ │ │ │ ├── EndOfAllInputSetter.java │ │ │ │ │ ├── MRIntermediateDataVisitor.java │ │ │ │ │ ├── MROpPlanVisitor.java │ │ │ │ │ ├── MROperPlan.java │ │ │ │ │ ├── MRPrinter.java │ │ │ │ │ ├── POPackageAnnotator.java │ │ │ │ │ ├── ScalarPhyFinder.java │ │ │ │ │ ├── UDFFinder.java │ │ │ │ │ └── XMLMRPrinter.java │ │ │ ├── optimizer │ │ │ │ └── SecondaryKeyOptimizer.java │ │ │ ├── physicalLayer │ │ │ │ ├── LogicalToPhysicalTranslatorException.java │ │ │ │ ├── POPrinter.java │ │ │ │ ├── POStatus.java │ │ │ │ ├── PhysicalOperator.java │ │ │ │ ├── PigLogger.java │ │ │ │ ├── PigProgressable.java │ │ │ │ ├── Result.java │ │ │ │ ├── expressionOperators │ │ │ │ │ ├── Add.java │ │ │ │ │ ├── BinaryComparisonOperator.java │ │ │ │ │ ├── BinaryExpressionOperator.java │ │ │ │ │ ├── ComparisonOperator.java │ │ │ │ │ ├── ConstantExpression.java │ │ │ │ │ ├── Divide.java │ │ │ │ │ ├── EqualToExpr.java │ │ │ │ │ ├── ExpressionOperator.java │ │ │ │ │ ├── GTOrEqualToExpr.java │ │ │ │ │ ├── GreaterThanExpr.java │ │ │ │ │ ├── LTOrEqualToExpr.java │ │ │ │ │ ├── LessThanExpr.java │ │ │ │ │ ├── Mod.java │ │ │ │ │ ├── Multiply.java │ │ │ │ │ ├── NotEqualToExpr.java │ │ │ │ │ ├── POAnd.java │ │ │ │ │ ├── POBinCond.java │ │ │ │ │ ├── POCast.java │ │ │ │ │ ├── POIsNull.java │ │ │ │ │ ├── POMapLookUp.java │ │ │ │ │ ├── PONegative.java │ │ │ │ │ ├── PONot.java │ │ │ │ │ ├── POOr.java │ │ │ │ │ ├── POProject.java │ │ │ │ │ ├── PORegexp.java │ │ │ │ │ ├── PORelationToExprProject.java │ │ │ │ │ ├── POUserComparisonFunc.java │ │ │ │ │ ├── POUserFunc.java │ │ │ │ │ ├── Subtract.java │ │ │ │ │ ├── UnaryComparisonOperator.java │ │ │ │ │ ├── UnaryExpressionOperator.java │ │ │ │ │ └── regex │ │ │ │ │ │ ├── CompiledAutomaton.java │ │ │ │ │ │ ├── CompiledRegex.java │ │ │ │ │ │ ├── NonConstantRegex.java │ │ │ │ │ │ ├── RegexImpl.java │ │ │ │ │ │ └── RegexInit.java │ │ │ │ ├── package.html │ │ │ │ ├── plans │ │ │ │ │ ├── DotPOPrinter.java │ │ │ │ │ ├── PatternNode.java │ │ │ │ │ ├── PatternPlan.java │ │ │ │ │ ├── PhyPlanVisitor.java │ │ │ │ │ ├── PhysicalPlan.java │ │ │ │ │ ├── PlanPrinter.java │ │ │ │ │ ├── UdfCacheShipFilesVisitor.java │ │ │ │ │ └── XMLPhysicalPlanPrinter.java │ │ │ │ ├── relationalOperators │ │ │ │ │ ├── AccumulativeTupleBuffer.java │ │ │ │ │ ├── CombinerPackager.java │ │ │ │ │ ├── JoinPackager.java │ │ │ │ │ ├── LitePackager.java │ │ │ │ │ ├── LoadFuncDecorator.java │ │ │ │ │ ├── MultiQueryPackager.java │ │ │ │ │ ├── POBroadcastSpark.java │ │ │ │ │ ├── POCollectedGroup.java │ │ │ │ │ ├── POCounter.java │ │ │ │ │ ├── POCross.java │ │ │ │ │ ├── PODemux.java │ │ │ │ │ ├── PODistinct.java │ │ │ │ │ ├── POFRJoin.java │ │ │ │ │ ├── POFRJoinSpark.java │ │ │ │ │ ├── POFilter.java │ │ │ │ │ ├── POForEach.java │ │ │ │ │ ├── POGlobalRearrange.java │ │ │ │ │ ├── POLimit.java │ │ │ │ │ ├── POLoad.java │ │ │ │ │ ├── POLocalRearrange.java │ │ │ │ │ ├── POMergeCogroup.java │ │ │ │ │ ├── POMergeCogroupTez.java │ │ │ │ │ ├── POMergeJoin.java │ │ │ │ │ ├── POMergeJoinTez.java │ │ │ │ │ ├── PONative.java │ │ │ │ │ ├── POOptimizedForEach.java │ │ │ │ │ ├── POPackage.java │ │ │ │ │ ├── POPartialAgg.java │ │ │ │ │ ├── POPartitionRearrange.java │ │ │ │ │ ├── POPoissonSample.java │ │ │ │ │ ├── POPreCombinerLocalRearrange.java │ │ │ │ │ ├── PORank.java │ │ │ │ │ ├── POReservoirSample.java │ │ │ │ │ ├── POSkewedJoin.java │ │ │ │ │ ├── POSort.java │ │ │ │ │ ├── POSortedDistinct.java │ │ │ │ │ ├── POSplit.java │ │ │ │ │ ├── POStore.java │ │ │ │ │ ├── POStoreImpl.java │ │ │ │ │ ├── POStream.java │ │ │ │ │ ├── POUnion.java │ │ │ │ │ ├── Packager.java │ │ │ │ │ └── StoreFuncDecorator.java │ │ │ │ └── util │ │ │ │ │ ├── MonitoredUDFExecutor.java │ │ │ │ │ └── PlanHelper.java │ │ │ ├── spark │ │ │ │ ├── FlatMapFunctionAdapter.java │ │ │ │ ├── JobGraphBuilder.java │ │ │ │ ├── JobMetricsListener.java │ │ │ │ ├── JobStatisticCollector.java │ │ │ │ ├── KryoSerializer.java │ │ │ │ ├── MapReducePartitionerWrapper.java │ │ │ │ ├── PairFlatMapFunctionAdapter.java │ │ │ │ ├── Spark1Shims.java │ │ │ │ ├── Spark2Shims.java │ │ │ │ ├── SparkEngineConf.java │ │ │ │ ├── SparkExecType.java │ │ │ │ ├── SparkExecutionEngine.java │ │ │ │ ├── SparkLauncher.java │ │ │ │ ├── SparkLocalExecType.java │ │ │ │ ├── SparkPOUserFuncVisitor.java │ │ │ │ ├── SparkPigContext.java │ │ │ │ ├── SparkPigRecordReader.java │ │ │ │ ├── SparkPigSplit.java │ │ │ │ ├── SparkShims.java │ │ │ │ ├── SparkUtil.java │ │ │ │ ├── UDFJarsFinder.java │ │ │ │ ├── converter │ │ │ │ │ ├── BroadcastConverter.java │ │ │ │ │ ├── CachedIteratorTransform.java │ │ │ │ │ ├── CollectedGroupConverter.java │ │ │ │ │ ├── CounterConverter.java │ │ │ │ │ ├── DistinctConverter.java │ │ │ │ │ ├── FRJoinConverter.java │ │ │ │ │ ├── FilterConverter.java │ │ │ │ │ ├── ForEachConverter.java │ │ │ │ │ ├── GlobalRearrangeConverter.java │ │ │ │ │ ├── IndexedKey.java │ │ │ │ │ ├── IteratorTransform.java │ │ │ │ │ ├── JoinGroupSparkConverter.java │ │ │ │ │ ├── LimitConverter.java │ │ │ │ │ ├── LoadConverter.java │ │ │ │ │ ├── LocalRearrangeConverter.java │ │ │ │ │ ├── MergeCogroupConverter.java │ │ │ │ │ ├── MergeJoinConverter.java │ │ │ │ │ ├── OutputConsumerIterator.java │ │ │ │ │ ├── PackageConverter.java │ │ │ │ │ ├── PigSecondaryKeyComparatorSpark.java │ │ │ │ │ ├── PoissonSampleConverter.java │ │ │ │ │ ├── RDDConverter.java │ │ │ │ │ ├── RankConverter.java │ │ │ │ │ ├── ReduceByConverter.java │ │ │ │ │ ├── SecondaryKeySortUtil.java │ │ │ │ │ ├── SkewedJoinConverter.java │ │ │ │ │ ├── SortConverter.java │ │ │ │ │ ├── SparkSampleSortConverter.java │ │ │ │ │ ├── SplitConverter.java │ │ │ │ │ ├── StoreConverter.java │ │ │ │ │ ├── StreamConverter.java │ │ │ │ │ └── UnionConverter.java │ │ │ │ ├── operator │ │ │ │ │ ├── NativeSparkOperator.java │ │ │ │ │ ├── POGlobalRearrangeSpark.java │ │ │ │ │ ├── POJoinGroupSpark.java │ │ │ │ │ ├── POPoissonSampleSpark.java │ │ │ │ │ ├── POReduceBySpark.java │ │ │ │ │ └── POSampleSortSpark.java │ │ │ │ ├── optimizer │ │ │ │ │ ├── AccumulatorOptimizer.java │ │ │ │ │ ├── CombinerOptimizer.java │ │ │ │ │ ├── JoinGroupOptimizerSpark.java │ │ │ │ │ ├── MultiQueryOptimizerSpark.java │ │ │ │ │ ├── NoopFilterRemover.java │ │ │ │ │ ├── ParallelismSetter.java │ │ │ │ │ ├── SecondaryKeyOptimizerSpark.java │ │ │ │ │ └── SparkSecondaryKeyOptimizerUtil.java │ │ │ │ ├── plan │ │ │ │ │ ├── DotSparkPrinter.java │ │ │ │ │ ├── SparkCompiler.java │ │ │ │ │ ├── SparkCompilerException.java │ │ │ │ │ ├── SparkOpPlanVisitor.java │ │ │ │ │ ├── SparkOperPlan.java │ │ │ │ │ ├── SparkOperator.java │ │ │ │ │ ├── SparkPOPackageAnnotator.java │ │ │ │ │ ├── SparkPrinter.java │ │ │ │ │ └── XMLSparkPrinter.java │ │ │ │ ├── running │ │ │ │ │ └── PigInputFormatSpark.java │ │ │ │ └── streaming │ │ │ │ │ └── SparkExecutableManager.java │ │ │ ├── tez │ │ │ │ ├── TezDagBuilder.java │ │ │ │ ├── TezExecType.java │ │ │ │ ├── TezExecutionEngine.java │ │ │ │ ├── TezJob.java │ │ │ │ ├── TezJobCompiler.java │ │ │ │ ├── TezLauncher.java │ │ │ │ ├── TezLocalExecType.java │ │ │ │ ├── TezResourceManager.java │ │ │ │ ├── TezSessionManager.java │ │ │ │ ├── plan │ │ │ │ │ ├── TezCompiler.java │ │ │ │ │ ├── TezCompilerException.java │ │ │ │ │ ├── TezEdgeDescriptor.java │ │ │ │ │ ├── TezOpPlanVisitor.java │ │ │ │ │ ├── TezOperPlan.java │ │ │ │ │ ├── TezOperator.java │ │ │ │ │ ├── TezPOPackageAnnotator.java │ │ │ │ │ ├── TezPOStreamVisitor.java │ │ │ │ │ ├── TezPOUserFuncVisitor.java │ │ │ │ │ ├── TezPlanContainer.java │ │ │ │ │ ├── TezPlanContainerNode.java │ │ │ │ │ ├── TezPlanContainerPrinter.java │ │ │ │ │ ├── TezPlanContainerUDFCollector.java │ │ │ │ │ ├── TezPlanContainerVisitor.java │ │ │ │ │ ├── TezPrinter.java │ │ │ │ │ ├── operator │ │ │ │ │ │ ├── BloomPackager.java │ │ │ │ │ │ ├── NativeTezOper.java │ │ │ │ │ │ ├── POBloomFilterRearrangeTez.java │ │ │ │ │ │ ├── POBuildBloomRearrangeTez.java │ │ │ │ │ │ ├── POCounterStatsTez.java │ │ │ │ │ │ ├── POCounterTez.java │ │ │ │ │ │ ├── POFRJoinTez.java │ │ │ │ │ │ ├── POIdentityInOutTez.java │ │ │ │ │ │ ├── POLocalRearrangeTez.java │ │ │ │ │ │ ├── POLocalRearrangeTezFactory.java │ │ │ │ │ │ ├── POPartitionRearrangeTez.java │ │ │ │ │ │ ├── PORankTez.java │ │ │ │ │ │ ├── POShuffleTezLoad.java │ │ │ │ │ │ ├── POShuffledValueInputTez.java │ │ │ │ │ │ ├── POSimpleTezLoad.java │ │ │ │ │ │ ├── POStoreTez.java │ │ │ │ │ │ ├── POValueInputTez.java │ │ │ │ │ │ └── POValueOutputTez.java │ │ │ │ │ ├── optimizer │ │ │ │ │ │ ├── AccumulatorOptimizer.java │ │ │ │ │ │ ├── CombinerOptimizer.java │ │ │ │ │ │ ├── LoaderProcessor.java │ │ │ │ │ │ ├── MultiQueryOptimizerTez.java │ │ │ │ │ │ ├── NoopFilterRemover.java │ │ │ │ │ │ ├── ParallelismSetter.java │ │ │ │ │ │ ├── SecondaryKeyOptimizerTez.java │ │ │ │ │ │ ├── TezEstimatedParallelismClearer.java │ │ │ │ │ │ ├── TezOperDependencyParallelismEstimator.java │ │ │ │ │ │ ├── TezParallelismEstimator.java │ │ │ │ │ │ └── UnionOptimizer.java │ │ │ │ │ └── udf │ │ │ │ │ │ ├── FindQuantilesTez.java │ │ │ │ │ │ ├── IsFirstReduceOfKeyTez.java │ │ │ │ │ │ ├── PartitionSkewedKeysTez.java │ │ │ │ │ │ └── ReadScalarsTez.java │ │ │ │ ├── runtime │ │ │ │ │ ├── BloomFilterPartitioner.java │ │ │ │ │ ├── HashValuePartitioner.java │ │ │ │ │ ├── ObjectCache.java │ │ │ │ │ ├── PartitionerDefinedVertexManager.java │ │ │ │ │ ├── PigGraceShuffleVertexManager.java │ │ │ │ │ ├── PigInputFormatTez.java │ │ │ │ │ ├── PigOutputFormatTez.java │ │ │ │ │ ├── PigProcessor.java │ │ │ │ │ ├── SkewedPartitionerTez.java │ │ │ │ │ ├── TezInput.java │ │ │ │ │ ├── TezOutput.java │ │ │ │ │ ├── TezTaskConfigurable.java │ │ │ │ │ ├── TezTaskContext.java │ │ │ │ │ └── WeightedRangePartitionerTez.java │ │ │ │ └── util │ │ │ │ │ ├── MRToTezHelper.java │ │ │ │ │ ├── SecurityHelper.java │ │ │ │ │ ├── SerializationInfo.java │ │ │ │ │ ├── TezCompilerUtil.java │ │ │ │ │ ├── TezInputHelper.java │ │ │ │ │ ├── TezJobSplitWriter.java │ │ │ │ │ ├── TezRuntimeUtil.java │ │ │ │ │ └── TezUDFContextSeparator.java │ │ │ └── util │ │ │ │ ├── AccumulatorOptimizerUtil.java │ │ │ │ ├── CombinerOptimizerUtil.java │ │ │ │ ├── MapRedUtil.java │ │ │ │ ├── ParallelConstantVisitor.java │ │ │ │ └── SecondaryKeyOptimizerUtil.java │ │ │ ├── hbase │ │ │ ├── HBaseBinaryConverter.java │ │ │ ├── HBaseStorage.java │ │ │ ├── HBaseTableInputFormat.java │ │ │ └── TableSplitComparable.java │ │ │ └── streaming │ │ │ └── HadoopExecutableManager.java │ │ ├── builtin │ │ ├── ABS.java │ │ ├── ACOS.java │ │ ├── ARITY.java │ │ ├── ASIN.java │ │ ├── ATAN.java │ │ ├── AVG.java │ │ ├── AddDuration.java │ │ ├── AlgebraicBigDecimalMathBase.java │ │ ├── AlgebraicBigIntegerMathBase.java │ │ ├── AlgebraicByteArrayMathBase.java │ │ ├── AlgebraicDoubleMathBase.java │ │ ├── AlgebraicFloatMathBase.java │ │ ├── AlgebraicIntMathBase.java │ │ ├── AlgebraicLongMathBase.java │ │ ├── AlgebraicMathBase.java │ │ ├── Assert.java │ │ ├── AvroStorage.java │ │ ├── BagSize.java │ │ ├── BagToString.java │ │ ├── BagToTuple.java │ │ ├── Base.java │ │ ├── BigDecimalAbs.java │ │ ├── BigDecimalAvg.java │ │ ├── BigDecimalMax.java │ │ ├── BigDecimalMin.java │ │ ├── BigDecimalSum.java │ │ ├── BigDecimalWrapper.java │ │ ├── BigIntegerAbs.java │ │ ├── BigIntegerAvg.java │ │ ├── BigIntegerMax.java │ │ ├── BigIntegerMin.java │ │ ├── BigIntegerSum.java │ │ ├── BigIntegerWrapper.java │ │ ├── BinStorage.java │ │ ├── Bloom.java │ │ ├── BuildBloom.java │ │ ├── BuildBloomBase.java │ │ ├── CBRT.java │ │ ├── CEIL.java │ │ ├── CONCAT.java │ │ ├── COR.java │ │ ├── COS.java │ │ ├── COSH.java │ │ ├── COUNT.java │ │ ├── COUNT_STAR.java │ │ ├── COV.java │ │ ├── ConstantSize.java │ │ ├── CubeDimensions.java │ │ ├── CurrentTime.java │ │ ├── DIFF.java │ │ ├── DateTimeMax.java │ │ ├── DateTimeMin.java │ │ ├── DaysBetween.java │ │ ├── Distinct.java │ │ ├── DoubleAbs.java │ │ ├── DoubleAvg.java │ │ ├── DoubleBase.java │ │ ├── DoubleMax.java │ │ ├── DoubleMin.java │ │ ├── DoubleRound.java │ │ ├── DoubleRoundTo.java │ │ ├── DoubleSum.java │ │ ├── ENDSWITH.java │ │ ├── EXP.java │ │ ├── EqualsIgnoreCase.java │ │ ├── FLOOR.java │ │ ├── FloatAbs.java │ │ ├── FloatAvg.java │ │ ├── FloatMax.java │ │ ├── FloatMin.java │ │ ├── FloatRound.java │ │ ├── FloatRoundTo.java │ │ ├── FloatSum.java │ │ ├── FuncUtils.java │ │ ├── FunctionWrapperEvalFunc.java │ │ ├── GenericInvoker.java │ │ ├── GetDay.java │ │ ├── GetHour.java │ │ ├── GetMilliSecond.java │ │ ├── GetMinute.java │ │ ├── GetMonth.java │ │ ├── GetSecond.java │ │ ├── GetWeek.java │ │ ├── GetWeekYear.java │ │ ├── GetYear.java │ │ ├── HiveUDAF.java │ │ ├── HiveUDF.java │ │ ├── HiveUDFBase.java │ │ ├── HiveUDTF.java │ │ ├── HoursBetween.java │ │ ├── INDEXOF.java │ │ ├── INVERSEMAP.java │ │ ├── IntAbs.java │ │ ├── IntAvg.java │ │ ├── IntMax.java │ │ ├── IntMin.java │ │ ├── IntSum.java │ │ ├── InvokeForDouble.java │ │ ├── InvokeForFloat.java │ │ ├── InvokeForInt.java │ │ ├── InvokeForLong.java │ │ ├── InvokeForString.java │ │ ├── Invoker.java │ │ ├── InvokerFunction.java │ │ ├── InvokerGenerator.java │ │ ├── IsEmpty.java │ │ ├── JsonLoader.java │ │ ├── JsonMetadata.java │ │ ├── JsonStorage.java │ │ ├── KEYSET.java │ │ ├── LAST_INDEX_OF.java │ │ ├── LCFIRST.java │ │ ├── LOG.java │ │ ├── LOG10.java │ │ ├── LOWER.java │ │ ├── LTRIM.java │ │ ├── LongAbs.java │ │ ├── LongAvg.java │ │ ├── LongMax.java │ │ ├── LongMin.java │ │ ├── LongSum.java │ │ ├── MAX.java │ │ ├── MIN.java │ │ ├── MapSize.java │ │ ├── MilliSecondsBetween.java │ │ ├── MinutesBetween.java │ │ ├── MonitoredUDF.java │ │ ├── MonthsBetween.java │ │ ├── Nondeterministic.java │ │ ├── OrcStorage.java │ │ ├── OutputSchema.java │ │ ├── ParquetLoader.java │ │ ├── ParquetStorer.java │ │ ├── PigStorage.java │ │ ├── PigStreaming.java │ │ ├── PluckTuple.java │ │ ├── RANDOM.java │ │ ├── REGEX_EXTRACT.java │ │ ├── REGEX_EXTRACT_ALL.java │ │ ├── REGEX_SEARCH.java │ │ ├── REPLACE.java │ │ ├── ROUND.java │ │ ├── ROUND_TO.java │ │ ├── RTRIM.java │ │ ├── RollupDimensions.java │ │ ├── SIN.java │ │ ├── SINH.java │ │ ├── SIZE.java │ │ ├── SPRINTF.java │ │ ├── SQRT.java │ │ ├── STARTSWITH.java │ │ ├── STRSPLIT.java │ │ ├── STRSPLITTOBAG.java │ │ ├── SUBSTRING.java │ │ ├── SUBTRACT.java │ │ ├── SUM.java │ │ ├── SecondsBetween.java │ │ ├── StringConcat.java │ │ ├── StringMax.java │ │ ├── StringMin.java │ │ ├── StringSize.java │ │ ├── SubtractDuration.java │ │ ├── TAN.java │ │ ├── TANH.java │ │ ├── TOBAG.java │ │ ├── TOKENIZE.java │ │ ├── TOMAP.java │ │ ├── TOP.java │ │ ├── TOTUPLE.java │ │ ├── TRIM.java │ │ ├── TextLoader.java │ │ ├── ToDate.java │ │ ├── ToDate2ARGS.java │ │ ├── ToDate3ARGS.java │ │ ├── ToDateISO.java │ │ ├── ToMilliSeconds.java │ │ ├── ToString.java │ │ ├── ToUnixTime.java │ │ ├── TrevniStorage.java │ │ ├── TupleSize.java │ │ ├── UCFIRST.java │ │ ├── UPPER.java │ │ ├── UniqueID.java │ │ ├── Utf8StorageConverter.java │ │ ├── VALUELIST.java │ │ ├── VALUESET.java │ │ ├── WeeksBetween.java │ │ ├── YearsBetween.java │ │ ├── mock │ │ │ └── Storage.java │ │ └── package.html │ │ ├── classification │ │ ├── InterfaceAudience.java │ │ └── InterfaceStability.java │ │ ├── data │ │ ├── AbstractTuple.java │ │ ├── AccumulativeBag.java │ │ ├── AmendableTuple.java │ │ ├── AppendableSchemaTuple.java │ │ ├── BagFactory.java │ │ ├── BinInterSedes.java │ │ ├── BinSedesTuple.java │ │ ├── BinSedesTupleFactory.java │ │ ├── DataBag.java │ │ ├── DataByteArray.java │ │ ├── DataReaderWriter.java │ │ ├── DataType.java │ │ ├── DefaultAbstractBag.java │ │ ├── DefaultBagFactory.java │ │ ├── DefaultDataBag.java │ │ ├── DefaultTuple.java │ │ ├── DefaultTupleFactory.java │ │ ├── DistinctDataBag.java │ │ ├── FieldIsNullException.java │ │ ├── FileList.java │ │ ├── InterSedes.java │ │ ├── InterSedesFactory.java │ │ ├── InternalCachedBag.java │ │ ├── InternalDistinctBag.java │ │ ├── InternalMap.java │ │ ├── InternalSortedBag.java │ │ ├── LimitedSortedDataBag.java │ │ ├── NonSpillableDataBag.java │ │ ├── NonWritableTuple.java │ │ ├── ReadOnceBag.java │ │ ├── SchemaTuple.java │ │ ├── SchemaTupleBackend.java │ │ ├── SchemaTupleClassGenerator.java │ │ ├── SchemaTupleFactory.java │ │ ├── SchemaTupleFrontend.java │ │ ├── SelfSpillBag.java │ │ ├── SingleTupleBag.java │ │ ├── SizeUtil.java │ │ ├── SortedDataBag.java │ │ ├── SortedSpillBag.java │ │ ├── TargetedTuple.java │ │ ├── TimestampedTuple.java │ │ ├── Tuple.java │ │ ├── TupleFactory.java │ │ ├── TupleMaker.java │ │ ├── TupleRawComparator.java │ │ ├── TypeAwareTuple.java │ │ ├── UnlimitedNullTuple.java │ │ ├── WritableByteArray.java │ │ ├── package.html │ │ └── utils │ │ │ ├── BytesHelper.java │ │ │ ├── MethodHelper.java │ │ │ ├── SedesHelper.java │ │ │ └── StructuresHelper.java │ │ ├── impl │ │ ├── PigContext.java │ │ ├── PigImplConstants.java │ │ ├── bloom │ │ │ ├── BloomFilter.java │ │ │ ├── Hash.java │ │ │ ├── HashFunction.java │ │ │ ├── HashProvider.java │ │ │ ├── JenkinsHash.java │ │ │ ├── KirschMitzenmacherHash.java │ │ │ └── Murmur3Hash.java │ │ ├── builtin │ │ │ ├── DefaultIndexableLoader.java │ │ │ ├── FindQuantiles.java │ │ │ ├── GFAny.java │ │ │ ├── GFCross.java │ │ │ ├── GFReplicate.java │ │ │ ├── GetMemNumRows.java │ │ │ ├── IdentityColumn.java │ │ │ ├── IsFirstReduceOfKey.java │ │ │ ├── PartitionSkewedKeys.java │ │ │ ├── PoissonSampleLoader.java │ │ │ ├── RandomSampleLoader.java │ │ │ ├── ReadScalars.java │ │ │ ├── SampleLoader.java │ │ │ ├── StreamingUDF.java │ │ │ └── TezIndexableLoader.java │ │ ├── io │ │ │ ├── BinStorageInputFormat.java │ │ │ ├── BinStorageOutputFormat.java │ │ │ ├── BinStorageRecordReader.java │ │ │ ├── BinStorageRecordWriter.java │ │ │ ├── BufferedPositionedInputStream.java │ │ │ ├── FileLocalizer.java │ │ │ ├── FileSpec.java │ │ │ ├── InterRecordReader.java │ │ │ ├── InterRecordWriter.java │ │ │ ├── InterStorage.java │ │ │ ├── NullableBag.java │ │ │ ├── NullableBigDecimalWritable.java │ │ │ ├── NullableBigIntegerWritable.java │ │ │ ├── NullableBooleanWritable.java │ │ │ ├── NullableBytesWritable.java │ │ │ ├── NullableDateTimeWritable.java │ │ │ ├── NullableDoubleWritable.java │ │ │ ├── NullableFloatWritable.java │ │ │ ├── NullableIntWritable.java │ │ │ ├── NullableLongWritable.java │ │ │ ├── NullablePartitionWritable.java │ │ │ ├── NullableText.java │ │ │ ├── NullableTuple.java │ │ │ ├── NullableUnknownWritable.java │ │ │ ├── PigFile.java │ │ │ ├── PigNullableWritable.java │ │ │ ├── ReadToEndLoader.java │ │ │ ├── ResourceNotFoundException.java │ │ │ ├── SequenceFileInterStorage.java │ │ │ ├── TFileRecordReader.java │ │ │ ├── TFileRecordWriter.java │ │ │ ├── TFileStorage.java │ │ │ └── compress │ │ │ │ └── BZip2CodecWithExtensionBZ.java │ │ ├── logicalLayer │ │ │ ├── CanonicalNamer.java │ │ │ ├── FrontendException.java │ │ │ ├── package.html │ │ │ ├── schema │ │ │ │ ├── Schema.java │ │ │ │ ├── SchemaMergeException.java │ │ │ │ └── SchemaUtil.java │ │ │ └── validators │ │ │ │ └── TypeCheckerException.java │ │ ├── plan │ │ │ ├── CompilationMessageCollector.java │ │ │ ├── DependencyOrderWalker.java │ │ │ ├── DepthFirstWalker.java │ │ │ ├── DotPlanDumper.java │ │ │ ├── MapKeysInfo.java │ │ │ ├── NodeIdGenerator.java │ │ │ ├── Operator.java │ │ │ ├── OperatorKey.java │ │ │ ├── OperatorPlan.java │ │ │ ├── PlanDumper.java │ │ │ ├── PlanException.java │ │ │ ├── PlanValidationException.java │ │ │ ├── PlanVisitor.java │ │ │ ├── PlanWalker.java │ │ │ ├── ProjectionMap.java │ │ │ ├── RequiredFields.java │ │ │ ├── ReverseDependencyOrderWalker.java │ │ │ ├── VisitorException.java │ │ │ └── optimizer │ │ │ │ └── OptimizerException.java │ │ ├── streaming │ │ │ ├── DefaultInputHandler.java │ │ │ ├── DefaultOutputHandler.java │ │ │ ├── ExecutableManager.java │ │ │ ├── FileInputHandler.java │ │ │ ├── FileOutputHandler.java │ │ │ ├── HandlerFactory.java │ │ │ ├── InputHandler.java │ │ │ ├── OutputHandler.java │ │ │ ├── PigStreamingUDF.java │ │ │ ├── StreamingCommand.java │ │ │ ├── StreamingDelimiters.java │ │ │ ├── StreamingUDFException.java │ │ │ ├── StreamingUDFInputHandler.java │ │ │ ├── StreamingUDFOutputHandler.java │ │ │ ├── StreamingUDFOutputSchemaException.java │ │ │ └── StreamingUtil.java │ │ └── util │ │ │ ├── BagFormat.java │ │ │ ├── CastUtils.java │ │ │ ├── CompilerUtils.java │ │ │ ├── ConfigurationValidator.java │ │ │ ├── GroupingSpillable.java │ │ │ ├── HashOutputStream.java │ │ │ ├── IdentityHashSet.java │ │ │ ├── JarManager.java │ │ │ ├── JavaCompilerHelper.java │ │ │ ├── LineageTracer.java │ │ │ ├── LinkedMultiMap.java │ │ │ ├── LogUtils.java │ │ │ ├── MultiMap.java │ │ │ ├── NumValCarrier.java │ │ │ ├── ObjectSerializer.java │ │ │ ├── Pair.java │ │ │ ├── PropertiesUtil.java │ │ │ ├── RewindableIterator.java │ │ │ ├── Spillable.java │ │ │ ├── SpillableMemoryManager.java │ │ │ ├── StorageUtil.java │ │ │ ├── StringUtils.java │ │ │ ├── TupleFormat.java │ │ │ ├── UDFContext.java │ │ │ ├── UDFContextSeparator.java │ │ │ ├── UriUtil.java │ │ │ ├── Utils.java │ │ │ ├── avro │ │ │ ├── AvroArrayReader.java │ │ │ ├── AvroBagWrapper.java │ │ │ ├── AvroMapWrapper.java │ │ │ ├── AvroRecordReader.java │ │ │ ├── AvroRecordWriter.java │ │ │ ├── AvroStorageDataConversionUtilities.java │ │ │ ├── AvroStorageSchemaConversionUtilities.java │ │ │ └── AvroTupleWrapper.java │ │ │ └── hive │ │ │ └── HiveUtils.java │ │ ├── newplan │ │ ├── BaseOperatorPlan.java │ │ ├── DependencyOrderWalker.java │ │ ├── DepthFirstWalker.java │ │ ├── DotPlanDumper.java │ │ ├── FilterExtractor.java │ │ ├── Operator.java │ │ ├── OperatorPlan.java │ │ ├── OperatorSubPlan.java │ │ ├── PartitionFilterExtractor.java │ │ ├── PlanDumper.java │ │ ├── PlanEdge.java │ │ ├── PlanVisitor.java │ │ ├── PlanWalker.java │ │ ├── PredicatePushDownFilterExtractor.java │ │ ├── ReverseDependencyOrderWalker.java │ │ ├── ReverseDependencyOrderWalkerWOSeenChk.java │ │ ├── SubtreeDependencyOrderWalker.java │ │ ├── logical │ │ │ ├── DotLOPrinter.java │ │ │ ├── Util.java │ │ │ ├── expression │ │ │ │ ├── AddExpression.java │ │ │ │ ├── AllSameExpressionVisitor.java │ │ │ │ ├── AndExpression.java │ │ │ │ ├── BinCondExpression.java │ │ │ │ ├── BinaryExpression.java │ │ │ │ ├── CastExpression.java │ │ │ │ ├── ColumnExpression.java │ │ │ │ ├── ConstantExpression.java │ │ │ │ ├── DereferenceExpression.java │ │ │ │ ├── DivideExpression.java │ │ │ │ ├── EqualExpression.java │ │ │ │ ├── ExpToPhyTranslationVisitor.java │ │ │ │ ├── GreaterThanEqualExpression.java │ │ │ │ ├── GreaterThanExpression.java │ │ │ │ ├── IsNullExpression.java │ │ │ │ ├── LessThanEqualExpression.java │ │ │ │ ├── LessThanExpression.java │ │ │ │ ├── LogicalExpression.java │ │ │ │ ├── LogicalExpressionPlan.java │ │ │ │ ├── LogicalExpressionVisitor.java │ │ │ │ ├── MapLookupExpression.java │ │ │ │ ├── ModExpression.java │ │ │ │ ├── MultiplyExpression.java │ │ │ │ ├── NegativeExpression.java │ │ │ │ ├── NotEqualExpression.java │ │ │ │ ├── NotExpression.java │ │ │ │ ├── OrExpression.java │ │ │ │ ├── ProjectExpression.java │ │ │ │ ├── RegexExpression.java │ │ │ │ ├── ScalarExpression.java │ │ │ │ ├── SubtractExpression.java │ │ │ │ ├── UnaryExpression.java │ │ │ │ └── UserFuncExpression.java │ │ │ ├── optimizer │ │ │ │ ├── AllExpressionVisitor.java │ │ │ │ ├── AllSameRalationalNodesVisitor.java │ │ │ │ ├── LogicalPlanOptimizer.java │ │ │ │ ├── LogicalPlanPrinter.java │ │ │ │ ├── ProjectionPatcher.java │ │ │ │ ├── SchemaPatcher.java │ │ │ │ ├── SchemaResetter.java │ │ │ │ └── UidResetter.java │ │ │ ├── relational │ │ │ │ ├── LOCogroup.java │ │ │ │ ├── LOCross.java │ │ │ │ ├── LOCube.java │ │ │ │ ├── LODistinct.java │ │ │ │ ├── LOFilter.java │ │ │ │ ├── LOForEach.java │ │ │ │ ├── LOGenerate.java │ │ │ │ ├── LOInnerLoad.java │ │ │ │ ├── LOJoin.java │ │ │ │ ├── LOLimit.java │ │ │ │ ├── LOLoad.java │ │ │ │ ├── LONative.java │ │ │ │ ├── LORank.java │ │ │ │ ├── LOSort.java │ │ │ │ ├── LOSplit.java │ │ │ │ ├── LOSplitOutput.java │ │ │ │ ├── LOStore.java │ │ │ │ ├── LOStream.java │ │ │ │ ├── LOUnion.java │ │ │ │ ├── LogToPhyTranslationVisitor.java │ │ │ │ ├── LogicalPlan.java │ │ │ │ ├── LogicalPlanData.java │ │ │ │ ├── LogicalRelationalNodesVisitor.java │ │ │ │ ├── LogicalRelationalOperator.java │ │ │ │ ├── LogicalSchema.java │ │ │ │ ├── MapSideMergeValidator.java │ │ │ │ └── SchemaNotDefinedException.java │ │ │ ├── rules │ │ │ │ ├── AddForEach.java │ │ │ │ ├── ColumnMapKeyPrune.java │ │ │ │ ├── ColumnPruneHelper.java │ │ │ │ ├── ColumnPruneVisitor.java │ │ │ │ ├── ConstantCalculator.java │ │ │ │ ├── FilterAboveForeach.java │ │ │ │ ├── FilterConstantCalculator.java │ │ │ │ ├── ForEachConstantCalculator.java │ │ │ │ ├── GroupByConstParallelSetter.java │ │ │ │ ├── LimitOptimizer.java │ │ │ │ ├── LoadTypeCastInserter.java │ │ │ │ ├── LogicalRelationalNodeValidator.java │ │ │ │ ├── MapKeysPruneHelper.java │ │ │ │ ├── MergeFilter.java │ │ │ │ ├── MergeForEach.java │ │ │ │ ├── NestedLimitOptimizer.java │ │ │ │ ├── OptimizerUtils.java │ │ │ │ ├── PartitionFilterOptimizer.java │ │ │ │ ├── PredicatePushdownOptimizer.java │ │ │ │ ├── PushDownForEachFlatten.java │ │ │ │ ├── PushUpFilter.java │ │ │ │ ├── SplitConstantCalculator.java │ │ │ │ ├── SplitFilter.java │ │ │ │ ├── StreamTypeCastInserter.java │ │ │ │ ├── TypeCastInserter.java │ │ │ │ └── WholePlanRule.java │ │ │ └── visitor │ │ │ │ ├── CastLineageSetter.java │ │ │ │ ├── ColumnAliasConversionVisitor.java │ │ │ │ ├── DanglingNestedNodeRemover.java │ │ │ │ ├── DuplicateForEachColumnRewriteVisitor.java │ │ │ │ ├── ForEachUserSchemaVisitor.java │ │ │ │ ├── ImplicitSplitInsertVisitor.java │ │ │ │ ├── InputOutputFileValidatorVisitor.java │ │ │ │ ├── LineageFindRelVisitor.java │ │ │ │ ├── ProjStarInUdfExpander.java │ │ │ │ ├── ProjectStarExpander.java │ │ │ │ ├── ProjectStarExpanderUtil.java │ │ │ │ ├── ResetProjectionAttachedRelationalOpVisitor.java │ │ │ │ ├── ScalarVariableValidator.java │ │ │ │ ├── ScalarVisitor.java │ │ │ │ ├── SchemaAliasVisitor.java │ │ │ │ ├── SortInfoSetter.java │ │ │ │ ├── StoreAliasSetter.java │ │ │ │ ├── TypeCheckingExpVisitor.java │ │ │ │ ├── TypeCheckingRelVisitor.java │ │ │ │ ├── UDFFinder.java │ │ │ │ └── UnionOnSchemaSetter.java │ │ └── optimizer │ │ │ ├── PlanOptimizer.java │ │ │ ├── PlanTransformListener.java │ │ │ ├── Rule.java │ │ │ └── Transformer.java │ │ ├── package.html │ │ ├── parser │ │ ├── AliasMasker.g │ │ ├── AstPrinter.g │ │ ├── AstValidator.g │ │ ├── DryRunGruntParser.java │ │ ├── DuplicatedSchemaAliasException.java │ │ ├── FunctionType.java │ │ ├── InvalidCommandException.java │ │ ├── InvalidPathException.java │ │ ├── InvalidScalarProjectionException.java │ │ ├── LogicalPlanBuilder.java │ │ ├── LogicalPlanGenerator.g │ │ ├── NonProjectExpressionException.java │ │ ├── ParserException.java │ │ ├── ParserValidationException.java │ │ ├── PigMacro.java │ │ ├── PigParserNode.java │ │ ├── PigParserNodeAdaptor.java │ │ ├── PigRecognitionException.java │ │ ├── PlanGenerationFailureException.java │ │ ├── QueryLexer.g │ │ ├── QueryParser.g │ │ ├── QueryParserDriver.java │ │ ├── QueryParserFileStream.java │ │ ├── QueryParserStreamUtil.java │ │ ├── QueryParserStringStream.java │ │ ├── QueryParserUtils.java │ │ ├── RegisterResolver.java │ │ ├── SourceLocation.java │ │ ├── StreamingCommandUtils.java │ │ └── UndefinedAliasException.java │ │ ├── pen │ │ ├── AugmentBaseDataVisitor.java │ │ ├── EquivalenceClasses.java │ │ ├── ExampleGenerator.java │ │ ├── FakeRawKeyValueIterator.java │ │ ├── Illustrable.java │ │ ├── Illustrator.java │ │ ├── IllustratorAttacher.java │ │ ├── LineageTrimmingVisitor.java │ │ ├── LocalMapReduceSimulator.java │ │ ├── POOptimizeDisabler.java │ │ ├── PhysicalPlanResetter.java │ │ └── util │ │ │ ├── DisplayExamples.java │ │ │ ├── ExampleTuple.java │ │ │ ├── LineageTracer.java │ │ │ ├── MetricEvaluation.java │ │ │ └── PreOrderDepthFirstWalker.java │ │ ├── scripting │ │ ├── BoundScript.java │ │ ├── Pig.java │ │ ├── ScriptEngine.java │ │ ├── ScriptPigContext.java │ │ ├── ScriptingOutputCapturer.java │ │ ├── SyncProgressNotificationAdaptor.java │ │ ├── groovy │ │ │ ├── AccumulatorAccumulate.java │ │ │ ├── AccumulatorCleanup.java │ │ │ ├── AccumulatorGetValue.java │ │ │ ├── AlgebraicFinal.java │ │ │ ├── AlgebraicInitial.java │ │ │ ├── AlgebraicIntermed.java │ │ │ ├── GroovyAccumulatorEvalFunc.java │ │ │ ├── GroovyAlgebraicEvalFunc.java │ │ │ ├── GroovyEvalFunc.java │ │ │ ├── GroovyEvalFuncObject.java │ │ │ ├── GroovyScriptEngine.java │ │ │ ├── GroovyUtils.java │ │ │ └── OutputSchemaFunction.java │ │ ├── jruby │ │ │ ├── JrubyAccumulatorEvalFunc.java │ │ │ ├── JrubyAlgebraicEvalFunc.java │ │ │ ├── JrubyEvalFunc.java │ │ │ ├── JrubyScriptEngine.java │ │ │ ├── PigJrubyLibrary.java │ │ │ ├── RubyDataBag.java │ │ │ ├── RubyDataByteArray.java │ │ │ └── RubySchema.java │ │ ├── js │ │ │ ├── JSPig.java │ │ │ ├── JsFunction.java │ │ │ └── JsScriptEngine.java │ │ ├── jython │ │ │ ├── JythonFunction.java │ │ │ ├── JythonScriptEngine.java │ │ │ └── JythonUtils.java │ │ └── streaming │ │ │ └── python │ │ │ └── PythonScriptEngine.java │ │ ├── tools │ │ ├── DownloadResolver.java │ │ ├── ToolsPigServer.java │ │ ├── cmdline │ │ │ └── CmdLineParser.java │ │ ├── counters │ │ │ └── PigCounterHelper.java │ │ ├── grunt │ │ │ ├── Command.java │ │ │ ├── ConsoleReaderInputStream.java │ │ │ ├── Grunt.java │ │ │ ├── GruntParser.java │ │ │ ├── PigCompletor.java │ │ │ ├── PigCompletorAliases.java │ │ │ ├── autocomplete │ │ │ └── autocomplete_aliases │ │ ├── parameters │ │ │ ├── ParamLoader.jj │ │ │ ├── ParameterSubstitutionException.java │ │ │ ├── ParameterSubstitutionPreprocessor.java │ │ │ ├── PigFileParser.jj │ │ │ └── PreprocessorContext.java │ │ ├── pigscript │ │ │ └── parser │ │ │ │ └── PigScriptParser.jj │ │ ├── pigstats │ │ │ ├── EmbeddedPigStats.java │ │ │ ├── EmptyPigStats.java │ │ │ ├── InputStats.java │ │ │ ├── JobStats.java │ │ │ ├── OutputStats.java │ │ │ ├── PigProgressNotificationListener.java │ │ │ ├── PigStats.java │ │ │ ├── PigStatsUtil.java │ │ │ ├── PigStatusReporter.java │ │ │ ├── PigWarnCounter.java │ │ │ ├── ScriptState.java │ │ │ ├── mapreduce │ │ │ │ ├── MRJobStats.java │ │ │ │ ├── MRPigStatsUtil.java │ │ │ │ ├── MRScriptState.java │ │ │ │ └── SimplePigStats.java │ │ │ ├── spark │ │ │ │ ├── Spark1JobStats.java │ │ │ │ ├── Spark2JobStats.java │ │ │ │ ├── SparkCounter.java │ │ │ │ ├── SparkCounterGroup.java │ │ │ │ ├── SparkCounters.java │ │ │ │ ├── SparkJobStats.java │ │ │ │ ├── SparkPigStats.java │ │ │ │ ├── SparkPigStatusReporter.java │ │ │ │ ├── SparkScriptState.java │ │ │ │ └── SparkStatsUtil.java │ │ │ └── tez │ │ │ │ ├── PigTezProgressNotificationListener.java │ │ │ │ ├── TezDAGStats.java │ │ │ │ ├── TezPigScriptStats.java │ │ │ │ ├── TezScriptState.java │ │ │ │ └── TezVertexStats.java │ │ ├── streams │ │ │ └── StreamGenerator.java │ │ └── timer │ │ │ ├── PerformanceTimer.java │ │ │ └── PerformanceTimerFactory.java │ │ └── validator │ │ ├── BlackAndWhitelistFilter.java │ │ ├── BlackAndWhitelistValidator.java │ │ └── PigCommandFilter.java ├── overview.html ├── packages │ ├── pig-setup-conf.sh │ ├── templates │ │ └── conf │ │ │ └── pig-env.sh │ └── update-pig-env.sh ├── pig-default.properties └── python │ └── streaming │ ├── controller.py │ └── pig_util.py ├── start-build-env.sh ├── test ├── all-tests ├── bin │ └── test-patch.sh ├── checkstyle-noframes-sorted.xsl ├── checkstyle.xml ├── commit-tests ├── data │ └── pigunit │ │ ├── top_queries.pig │ │ ├── top_queries_expected_top_3.txt │ │ ├── top_queries_input_data.txt │ │ ├── top_queries_macro.pig │ │ └── top_queries_params.txt ├── e2e │ ├── harness │ │ ├── Insert2Mysql.pm │ │ ├── Log.pm │ │ ├── Properties.pm │ │ ├── TestDeployer.pm │ │ ├── TestDeployerFactory.pm │ │ ├── TestDeployerTest.pm │ │ ├── TestDriver.pm │ │ ├── TestDriverFactory.pm │ │ ├── TestDriverTest.pm │ │ ├── TestReport.pm │ │ ├── build.xml │ │ ├── test │ │ │ ├── conf │ │ │ │ └── default.conf │ │ │ └── tests │ │ │ │ ├── deploy.conf │ │ │ │ └── test.conf │ │ ├── test_harness.pl │ │ └── xmlReport.pl │ └── pig │ │ ├── build.xml │ │ ├── conf │ │ ├── default.conf │ │ ├── existing_deployer.conf │ │ ├── local.conf │ │ ├── local_deployer.conf │ │ ├── rpm.conf │ │ ├── spark.conf │ │ ├── testpropertiesfile.conf │ │ └── tez.conf │ │ ├── deployers │ │ ├── ExistingClusterDeployer.pm │ │ └── LocalDeployer.pm │ │ ├── drivers │ │ ├── TestDriverPig.pm │ │ ├── TestDriverScript.pm │ │ └── Util.pm │ │ ├── lib │ │ ├── hadoop-examples.jar │ │ └── hadoop-streaming.jar │ │ ├── macros │ │ ├── macro1.pig │ │ └── macro_bad1.pig │ │ ├── paramfiles │ │ └── params_3 │ │ ├── resource │ │ ├── default.res │ │ └── windows.res │ │ ├── streaming │ │ ├── DieRandomly.pl │ │ ├── GroupBy.pl │ │ ├── PigStreaming.pl │ │ ├── PigStreamingBad.pl │ │ ├── PigStreamingDepend.pl │ │ ├── PigStreamingModule.pm │ │ ├── Split.pl │ │ └── nameMap │ │ ├── tests │ │ ├── bigdata.conf │ │ ├── cmdline.conf │ │ ├── grunt.conf │ │ ├── hcat.conf │ │ ├── join.conf │ │ ├── macro.conf │ │ ├── multiquery.conf │ │ ├── negative.conf │ │ ├── nightly.conf │ │ ├── orc.conf │ │ ├── streaming.conf │ │ ├── streaming_local.conf │ │ ├── turing_jython.conf │ │ └── utf8.conf │ │ ├── tools │ │ ├── generate │ │ │ └── generate_data.pl │ │ └── test │ │ │ ├── explainchk.pl │ │ │ └── floatpostprocessor.pl │ │ ├── udfs │ │ ├── cpython │ │ │ ├── morepythonudfs.py │ │ │ └── scriptingudf.py │ │ ├── groovy │ │ │ └── scriptingudf.groovy │ │ ├── java │ │ │ ├── build.xml │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── pig │ │ │ │ ├── TestingAccumulatorHelper.java │ │ │ │ └── test │ │ │ │ ├── udf │ │ │ │ ├── evalfunc │ │ │ │ │ ├── AllFirstLetter.java │ │ │ │ │ ├── AppendIndex.java │ │ │ │ │ ├── BadMonitored.java │ │ │ │ │ ├── BadMonitoredDefault.java │ │ │ │ │ ├── BadUdf.java │ │ │ │ │ ├── BadUdf2.java │ │ │ │ │ ├── BadUdf3.java │ │ │ │ │ ├── BadUdf4.java │ │ │ │ │ ├── CreateMap.java │ │ │ │ │ ├── CreateTupleBag.java │ │ │ │ │ ├── DECODE.java │ │ │ │ │ ├── DummyContextUDF.java │ │ │ │ │ ├── DumpJVMArgsUDF.java │ │ │ │ │ ├── ENCODE.java │ │ │ │ │ ├── Fred.java │ │ │ │ │ ├── GoodMonitored.java │ │ │ │ │ ├── IteratingAccumulatorCount.java │ │ │ │ │ ├── IteratingAccumulatorIsEmpty.java │ │ │ │ │ ├── IteratingAccumulatorSum.java │ │ │ │ │ ├── Nil.java │ │ │ │ │ ├── NonAlgNonAccCount.java │ │ │ │ │ ├── Swap.java │ │ │ │ │ ├── TOBAG.java │ │ │ │ │ ├── TOBAG2.java │ │ │ │ │ ├── TOMAP.java │ │ │ │ │ ├── TestBoolean.java │ │ │ │ │ ├── TestConstructorArgs.java │ │ │ │ │ ├── TestEvalFunc.java │ │ │ │ │ ├── TestWarningFunc.java │ │ │ │ │ ├── UDFContextTestUDF.java │ │ │ │ │ ├── UPPER.java │ │ │ │ │ ├── UdfContextFrontend.java │ │ │ │ │ ├── Udfcachetest.java │ │ │ │ │ └── VARBAG.java │ │ │ │ ├── orderby │ │ │ │ │ └── OrdDesc.java │ │ │ │ ├── storefunc │ │ │ │ │ ├── DumpLoader.java │ │ │ │ │ ├── DumpLoaderBad.java │ │ │ │ │ ├── SimpleCollectableLoader.java │ │ │ │ │ ├── StringStore.java │ │ │ │ │ └── StringStoreBad.java │ │ │ │ └── streaming │ │ │ │ │ ├── DumpStreamer.java │ │ │ │ │ ├── DumpStreamerBad.java │ │ │ │ │ └── StreamingDump.java │ │ │ │ └── utils │ │ │ │ └── SimpleCustomPartitioner2.java │ │ ├── js │ │ │ └── scriptingudf.js │ │ ├── python │ │ │ ├── morepythonudfs.py │ │ │ ├── scriptingudf.py │ │ │ └── stringutil.py │ │ └── ruby │ │ │ ├── morerubyudfs.rb │ │ │ ├── scriptingudfs.rb │ │ │ └── udf2.rb │ │ └── whirr │ │ ├── README │ │ ├── pigtest.properties │ │ └── whirr_test_patch.sh ├── excluded-tests ├── excluded-tests-23 ├── excluded-tests-mr ├── excluded-tests-spark ├── excluded-tests-tez ├── findbugsExcludeFile.xml ├── hbase-site.xml ├── org │ └── apache │ │ └── pig │ │ ├── TestAlgebraicEvalWithParameterizedReturnType.java │ │ ├── TestLoadFuncMetadataWrapper.java │ │ ├── TestLoadFuncWrapper.java │ │ ├── TestLoadStoreFuncLifeCycle.java │ │ ├── TestMain.java │ │ ├── TestPrimitiveEvalFunc.java │ │ ├── TestStoreFuncMetadataWrapper.java │ │ ├── TestStoreFuncWrapper.java │ │ ├── TestTypedOutputEvalFunc.java │ │ ├── backend │ │ └── hadoop │ │ │ ├── accumulo │ │ │ ├── TestAbstractAccumuloStorage.java │ │ │ ├── TestAccumuloBinaryConverter.java │ │ │ ├── TestAccumuloColumns.java │ │ │ ├── TestAccumuloPigCluster.java │ │ │ ├── TestAccumuloStorage.java │ │ │ ├── TestAccumuloStorageConfiguration.java │ │ │ └── TestAccumuloStorageOptions.java │ │ │ ├── executionengine │ │ │ └── mapReduceLayer │ │ │ │ ├── TestInputSizeReducerEstimator.java │ │ │ │ └── TestPigBytesRawComparator.java │ │ │ └── hbase │ │ │ └── TestHBaseStorageFiltering.java │ │ ├── builtin │ │ ├── TestAvroStorage.java │ │ ├── TestBigTypeSort.java │ │ ├── TestCurrentTime.java │ │ ├── TestFunctionWrapperEvalFunc.java │ │ ├── TestInvokerGenerator.java │ │ ├── TestOrcStorage.java │ │ ├── TestOrcStoragePushdown.java │ │ ├── TestPluckTuple.java │ │ ├── TestSUBTRACT.java │ │ ├── TestTOMAP.java │ │ ├── TestTOP.java │ │ ├── TestUtf8StorageConverter.java │ │ ├── avro │ │ │ ├── code │ │ │ │ ├── java │ │ │ │ │ └── RecordPojo.java │ │ │ │ └── pig │ │ │ │ │ ├── directory_test.pig │ │ │ │ │ ├── dump.pig │ │ │ │ │ ├── group_test.pig │ │ │ │ │ ├── identity.pig │ │ │ │ │ ├── identity_ai1_ao2.pig │ │ │ │ │ ├── identity_ao2.pig │ │ │ │ │ ├── identity_blank_first_args.pig │ │ │ │ │ ├── identity_codec.pig │ │ │ │ │ ├── identity_just_ao2.pig │ │ │ │ │ ├── namesWithDoubleColons.pig │ │ │ │ │ ├── projection_test.pig │ │ │ │ │ ├── projection_test_with_schema.pig │ │ │ │ │ ├── recursive_tests.pig │ │ │ │ │ ├── trevni_to_avro.pig │ │ │ │ │ ├── trevni_to_trevni.pig │ │ │ │ │ └── with_dates.pig │ │ │ ├── data │ │ │ │ └── json │ │ │ │ │ ├── arrays.json │ │ │ │ │ ├── arraysAsOutputByPig.json │ │ │ │ │ ├── projectionTest.json │ │ │ │ │ ├── projectionTestWithSchema.json │ │ │ │ │ ├── recordWithRepeatedSubRecords.json │ │ │ │ │ ├── records.json │ │ │ │ │ ├── recordsAsOutputByPig.json │ │ │ │ │ ├── recordsAsOutputByPigWithDates.json │ │ │ │ │ ├── recordsOfArrays.json │ │ │ │ │ ├── recordsOfArraysOfRecords.json │ │ │ │ │ ├── recordsOfStringArrays.json │ │ │ │ │ ├── recordsSubSchema.json │ │ │ │ │ ├── recordsSubSchemaNullable.json │ │ │ │ │ ├── recordsWithDoubleUnderscores.json │ │ │ │ │ ├── recordsWithEnums.json │ │ │ │ │ ├── recordsWithFixed.json │ │ │ │ │ ├── recordsWithMaps.json │ │ │ │ │ ├── recordsWithMapsOfArrayOfRecords.json │ │ │ │ │ ├── recordsWithMapsOfRecords.json │ │ │ │ │ ├── recordsWithNullableUnions.json │ │ │ │ │ ├── recordsWithSimpleUnion.json │ │ │ │ │ ├── recordsWithSimpleUnionOutput.json │ │ │ │ │ └── recursiveRecord.json │ │ │ └── schema │ │ │ │ ├── RecordPojo.avsc │ │ │ │ ├── arrays.avsc │ │ │ │ ├── arraysAsOutputByPig.avsc │ │ │ │ ├── nullableArrayInMap.avsc │ │ │ │ ├── nullableRecordInMap.avsc │ │ │ │ ├── projectionTest.avsc │ │ │ │ ├── projectionTestWithSchema.avsc │ │ │ │ ├── recordInMap.avsc │ │ │ │ ├── recordWithRepeatedSubRecords.avsc │ │ │ │ ├── records.avsc │ │ │ │ ├── recordsAsOutputByPig.avsc │ │ │ │ ├── recordsAsOutputByPigWithDates.avsc │ │ │ │ ├── recordsOfArrays.avsc │ │ │ │ ├── recordsOfArraysOfRecords.avsc │ │ │ │ ├── recordsOfStringArrays.avsc │ │ │ │ ├── recordsSubSchema.avsc │ │ │ │ ├── recordsSubSchemaNullable.avsc │ │ │ │ ├── recordsWithDoubleUnderscores.avsc │ │ │ │ ├── recordsWithEnums.avsc │ │ │ │ ├── recordsWithFixed.avsc │ │ │ │ ├── recordsWithMaps.avsc │ │ │ │ ├── recordsWithMapsOfArrayOfRecords.avsc │ │ │ │ ├── recordsWithMapsOfRecords.avsc │ │ │ │ ├── recordsWithNullableUnions.avsc │ │ │ │ ├── recordsWithSimpleUnion.avsc │ │ │ │ ├── recordsWithSimpleUnionOutput.avsc │ │ │ │ ├── recursiveRecord.avsc │ │ │ │ ├── simpleRecordsTrevni.avsc │ │ │ │ ├── testDirectory.avsc │ │ │ │ └── testDirectoryCounts.avsc │ │ ├── mock │ │ │ └── TestMockStorage.java │ │ └── orc │ │ │ ├── charvarchar.orc │ │ │ ├── datetype.orc │ │ │ ├── nullmapkey.orc │ │ │ └── orc-file-11-format.orc │ │ ├── data │ │ ├── TestSchemaTuple.java │ │ └── utils │ │ │ └── TestMethodHelper.java │ │ ├── impl │ │ ├── builtin │ │ │ ├── TestHiveUDTF.java │ │ │ └── TestStreamingUDF.java │ │ ├── streaming │ │ │ ├── TestPigStreamingUDF.java │ │ │ ├── TestStreamingUDFOutputHandler.java │ │ │ └── TestStreamingUtil.java │ │ └── util │ │ │ └── avro │ │ │ └── TestAvroStorageSchemaConversionUtilities.java │ │ ├── newplan │ │ └── logical │ │ │ ├── optimizer │ │ │ ├── TestImplicitSplitOnTuple.java │ │ │ └── TestSchemaResetter.java │ │ │ └── relational │ │ │ ├── LOTestHelper.java │ │ │ └── TestLocationInPhysicalPlan.java │ │ ├── parser │ │ ├── ParserTestingUtils.java │ │ ├── ParsingFailureException.java │ │ ├── TestAST.pig │ │ ├── TestAstValidator.java │ │ ├── TestColumnAliasConversion.java │ │ ├── TestDefaultDataTypeInserter.pig │ │ ├── TestErrorHandling.java │ │ ├── TestLexer.pig │ │ ├── TestLogicalPlanGenerator.java │ │ ├── TestParser.pig │ │ ├── TestQueryLexer.java │ │ ├── TestQueryParser.java │ │ ├── TestQueryParserUtils.java │ │ ├── TestScalarVisitor.java │ │ ├── TestSchemaAliasVisitor.java │ │ ├── TestUnionOnSchemaSetter.java │ │ └── TreePrinter.java │ │ ├── pigunit │ │ ├── Cluster.java │ │ ├── MiniClusterRunner.java │ │ ├── PigTest.java │ │ └── pig │ │ │ ├── GruntParser.java │ │ │ └── PigServer.java │ │ ├── spark │ │ ├── TestIndexedKey.java │ │ ├── TestSecondarySortSpark.java │ │ └── TestSparkCompiler.java │ │ ├── test │ │ ├── FakeFSInputStream.java │ │ ├── FakeFSOutputStream.java │ │ ├── InputSchemaUDF.java │ │ ├── MapReduceMiniCluster.java │ │ ├── MiniGenericCluster.java │ │ ├── NonDefaultBagFactory.java │ │ ├── OptimizeLimitPlanPrinter.java │ │ ├── OrdAsc.java │ │ ├── OrdDesc.java │ │ ├── OrdDescNumeric.java │ │ ├── PORead.java │ │ ├── PigExecTestCase.java │ │ ├── PigStorageNoDefCtor.java │ │ ├── PigStorageWithDifferentCaster.java │ │ ├── PigStorageWithSchema.java │ │ ├── PigStorageWithStatistics.java │ │ ├── PigTestLoader.java │ │ ├── RegexGroupCount.java │ │ ├── SparkMiniCluster.java │ │ ├── TestAccumulator.java │ │ ├── TestAdd.java │ │ ├── TestAlgebraicEval.java │ │ ├── TestAlgebraicEvalLocal.java │ │ ├── TestAlgebraicInstantiation.java │ │ ├── TestAssert.java │ │ ├── TestAutoLocalMode.java │ │ ├── TestBZip.java │ │ ├── TestBagFormat.java │ │ ├── TestBatchAliases.java │ │ ├── TestBestFitCast.java │ │ ├── TestBinInterSedes.java │ │ ├── TestBinaryExpressionOps.java │ │ ├── TestBlackAndWhitelistValidator.java │ │ ├── TestBloom.java │ │ ├── TestBoolean.java │ │ ├── TestBuiltInBagToTupleOrString.java │ │ ├── TestBuiltin.java │ │ ├── TestBuiltinInvoker.java │ │ ├── TestCase.java │ │ ├── TestCharArrayToNumeric.java │ │ ├── TestCmdLineParser.java │ │ ├── TestCollectedGroup.java │ │ ├── TestCombiner.java │ │ ├── TestCommit.java │ │ ├── TestCompressedFiles.java │ │ ├── TestConfigurationUtil.java │ │ ├── TestConstExpr.java │ │ ├── TestConstantCalculator.java │ │ ├── TestConversions.java │ │ ├── TestCounters.java │ │ ├── TestCredentials.java │ │ ├── TestCubeDimensions.java │ │ ├── TestCubeOperator.java │ │ ├── TestCustomPartitioner.java │ │ ├── TestDataBag.java │ │ ├── TestDataBagAccess.java │ │ ├── TestDataModel.java │ │ ├── TestDateTime.java │ │ ├── TestDateTimeLocal.java │ │ ├── TestDeleteOnFail.java │ │ ├── TestDivide.java │ │ ├── TestEmptyInputDir.java │ │ ├── TestEqualTo.java │ │ ├── TestErrorHandlingLoadAndStoreFunc.java │ │ ├── TestEvalFuncOutputAnnotation.java │ │ ├── TestEvalPipeline.java │ │ ├── TestEvalPipeline2.java │ │ ├── TestEvalPipelineLocal.java │ │ ├── TestExampleGenerator.java │ │ ├── TestFRJoin.java │ │ ├── TestFRJoin2.java │ │ ├── TestFRJoinNullValue.java │ │ ├── TestFetch.java │ │ ├── TestFilter.java │ │ ├── TestFilterOpNumeric.java │ │ ├── TestFilterOpString.java │ │ ├── TestFilterUDF.java │ │ ├── TestFindQuantiles.java │ │ ├── TestFinish.java │ │ ├── TestFlatten.java │ │ ├── TestForEach.java │ │ ├── TestForEachNestedPlan.java │ │ ├── TestForEachNestedPlanLocal.java │ │ ├── TestForEachStar.java │ │ ├── TestFuncSpec.java │ │ ├── TestGFCross.java │ │ ├── TestGTOrEqual.java │ │ ├── TestGreaterThan.java │ │ ├── TestGroupConstParallel.java │ │ ├── TestGroupConstParallelMR.java │ │ ├── TestGrunt.java │ │ ├── TestHBaseStorage.java │ │ ├── TestHBaseStorageParams.java │ │ ├── TestImplicitSplit.java │ │ ├── TestIn.java │ │ ├── TestInfixArithmetic.java │ │ ├── TestInputOutputFileValidator.java │ │ ├── TestInputOutputMiniClusterFileValidator.java │ │ ├── TestInstantiateFunc.java │ │ ├── TestInvoker.java │ │ ├── TestJobControlCompiler.java │ │ ├── TestJobSubmission.java │ │ ├── TestJobSubmissionMR.java │ │ ├── TestJoin.java │ │ ├── TestJoinBase.java │ │ ├── TestJoinLocal.java │ │ ├── TestJoinSmoke.java │ │ ├── TestJsonLoaderStorage.java │ │ ├── TestKeyTypeDiscoveryVisitor.java │ │ ├── TestLOLoadDeterminedSchema.java │ │ ├── TestLTOrEqual.java │ │ ├── TestLargeFile.java │ │ ├── TestLessThan.java │ │ ├── TestLimitAdjuster.java │ │ ├── TestLimitSchemaStore.java │ │ ├── TestLimitVariable.java │ │ ├── TestLineageFindRelVisitor.java │ │ ├── TestLoad.java │ │ ├── TestLoadFunc.java │ │ ├── TestLoaderStorerShipCacheFiles.java │ │ ├── TestLoaderStorerShipCacheFilesMR.java │ │ ├── TestLocal.java │ │ ├── TestLocal2.java │ │ ├── TestLocalRearrange.java │ │ ├── TestLogToPhyCompiler.java │ │ ├── TestLogicalPlanBuilder.java │ │ ├── TestMRCompiler.java │ │ ├── TestMRExecutionEngine.java │ │ ├── TestMRJobStats.java │ │ ├── TestMacroExpansion.java │ │ ├── TestMapProjectionDuplicate.java │ │ ├── TestMapReduce.java │ │ ├── TestMapReduce2.java │ │ ├── TestMapSideCogroup.java │ │ ├── TestMergeForEachOptimization.java │ │ ├── TestMergeJoin.java │ │ ├── TestMergeJoinOuter.java │ │ ├── TestMod.java │ │ ├── TestMonitoredUDF.java │ │ ├── TestMultiQuery.java │ │ ├── TestMultiQueryBasic.java │ │ ├── TestMultiQueryCompiler.java │ │ ├── TestMultiQueryLocal.java │ │ ├── TestMultiply.java │ │ ├── TestNativeMapReduce.java │ │ ├── TestNestedForeach.java │ │ ├── TestNewPartitionFilterPushDown.java │ │ ├── TestNewPlanColumnPrune.java │ │ ├── TestNewPlanFilterAboveForeach.java │ │ ├── TestNewPlanFilterRule.java │ │ ├── TestNewPlanImplicitSplit.java │ │ ├── TestNewPlanListener.java │ │ ├── TestNewPlanLogToPhyTranslationVisitor.java │ │ ├── TestNewPlanLogicalOptimizer.java │ │ ├── TestNewPlanOperatorPlan.java │ │ ├── TestNewPlanPruneMapKeys.java │ │ ├── TestNewPlanPushDownForeachFlatten.java │ │ ├── TestNewPlanPushUpFilter.java │ │ ├── TestNewPlanRule.java │ │ ├── TestNewPredicatePushDown.java │ │ ├── TestNotEqualTo.java │ │ ├── TestNull.java │ │ ├── TestNullConstant.java │ │ ├── TestNumberOfReducers.java │ │ ├── TestOptimizeLimit.java │ │ ├── TestOptimizeNestedLimit.java │ │ ├── TestOrderBy.java │ │ ├── TestOrderBy2.java │ │ ├── TestOrderBy3.java │ │ ├── TestPOBinCond.java │ │ ├── TestPOCast.java │ │ ├── TestPODistinct.java │ │ ├── TestPOGenerate.java │ │ ├── TestPOMapLookUp.java │ │ ├── TestPONegative.java │ │ ├── TestPOPartialAgg.java │ │ ├── TestPOPartialAggPlan.java │ │ ├── TestPOPartialAggPlanMR.java │ │ ├── TestPORegexp.java │ │ ├── TestPOSort.java │ │ ├── TestPOSplit.java │ │ ├── TestPOUserFunc.java │ │ ├── TestPackage.java │ │ ├── TestParamSubPreproc.java │ │ ├── TestParser.java │ │ ├── TestPhyOp.java │ │ ├── TestPhyPatternMatch.java │ │ ├── TestPi.java │ │ ├── TestPigContext.java │ │ ├── TestPigContextClassCache.java │ │ ├── TestPigException.java │ │ ├── TestPigProgressReporting.java │ │ ├── TestPigRunner.java │ │ ├── TestPigScriptParser.java │ │ ├── TestPigServer.java │ │ ├── TestPigServerLocal.java │ │ ├── TestPigServerWithMacros.java │ │ ├── TestPigServerWithMacrosRemote.java │ │ ├── TestPigSplit.java │ │ ├── TestPigStats.java │ │ ├── TestPigStatsMR.java │ │ ├── TestPigStorage.java │ │ ├── TestPigStreaming.java │ │ ├── TestPigTupleRawComparator.java │ │ ├── TestPinOptions.java │ │ ├── TestPlanGeneration.java │ │ ├── TestPoissonSampleLoader.java │ │ ├── TestPredeployedJar.java │ │ ├── TestProject.java │ │ ├── TestProjectRange.java │ │ ├── TestProjectStarExpander.java │ │ ├── TestProjectStarRangeInUdf.java │ │ ├── TestPruneColumn.java │ │ ├── TestRank1.java │ │ ├── TestRank2.java │ │ ├── TestRank3.java │ │ ├── TestReadToEndLoader.java │ │ ├── TestRegexp.java │ │ ├── TestRegisterParser.java │ │ ├── TestRegisteredJarVisibility.java │ │ ├── TestRelationToExprProject.java │ │ ├── TestResourceSchema.java │ │ ├── TestRollupDimensions.java │ │ ├── TestSample.java │ │ ├── TestSampleOptimizer.java │ │ ├── TestScalarAliases.java │ │ ├── TestScalarAliasesLocal.java │ │ ├── TestSchema.java │ │ ├── TestSchemaUtil.java │ │ ├── TestScriptLanguage.java │ │ ├── TestScriptLanguageJavaScript.java │ │ ├── TestScriptUDF.java │ │ ├── TestScriptingLanguagePython.java │ │ ├── TestSecondarySort.java │ │ ├── TestSecondarySortMR.java │ │ ├── TestShortcuts.java │ │ ├── TestSkewedJoin.java │ │ ├── TestSplit.java │ │ ├── TestSplitCombine.java │ │ ├── TestSplitIndex.java │ │ ├── TestSplitStore.java │ │ ├── TestStore.java │ │ ├── TestStoreBase.java │ │ ├── TestStoreInstances.java │ │ ├── TestStoreLocal.java │ │ ├── TestStoreOld.java │ │ ├── TestStreaming.java │ │ ├── TestStreamingLocal.java │ │ ├── TestStringUDFs.java │ │ ├── TestSubtract.java │ │ ├── TestTextDataParser.java │ │ ├── TestTmpFileCompression.java │ │ ├── TestToolsPigServer.java │ │ ├── TestTuple.java │ │ ├── TestTypeCheckingValidatorNewLP.java │ │ ├── TestTypedMap.java │ │ ├── TestUDF.java │ │ ├── TestUDFContext.java │ │ ├── TestUDFGroovy.java │ │ ├── TestUDFWithoutParameter.java │ │ ├── TestUTF8.java │ │ ├── TestUnion.java │ │ ├── TestUnionOnSchema.java │ │ ├── TezMiniCluster.java │ │ ├── Util.java │ │ ├── YarnMiniCluster.java │ │ ├── data │ │ │ ├── ConfFile1.txt │ │ │ ├── ConfFile2.txt │ │ │ ├── ConfFile3.txt │ │ │ ├── ConfFileComplexVal.txt │ │ │ ├── ConfFileDuplicates.txt │ │ │ ├── ConfFileSameParamMultipleTimes.txt │ │ │ ├── ConfFileWithEmptyComments.txt │ │ │ ├── ConfFileWithInvalidLines.txt │ │ │ ├── ConfFileWithValidLines.txt │ │ │ ├── DotFiles │ │ │ │ ├── explain1.dot │ │ │ │ ├── new-optlimitplan1.dot │ │ │ │ ├── new-optlimitplan10.dot │ │ │ │ ├── new-optlimitplan2.dot │ │ │ │ ├── new-optlimitplan3.dot │ │ │ │ ├── new-optlimitplan4.dot │ │ │ │ ├── new-optlimitplan5.dot │ │ │ │ ├── new-optlimitplan6.dot │ │ │ │ ├── new-optlimitplan7.dot │ │ │ │ ├── new-optlimitplan8.dot │ │ │ │ ├── new-optlimitplan9.dot │ │ │ │ ├── optlimitplan1.dot │ │ │ │ ├── optlimitplan10.dot │ │ │ │ ├── optlimitplan12.dot │ │ │ │ ├── optlimitplan2.dot │ │ │ │ ├── optlimitplan3.dot │ │ │ │ ├── optlimitplan4.dot │ │ │ │ ├── optlimitplan5.dot │ │ │ │ ├── optlimitplan6.dot │ │ │ │ ├── optlimitplan7.dot │ │ │ │ ├── optlimitplan8.dot │ │ │ │ ├── optlimitplan9.dot │ │ │ │ ├── optplan1.dot │ │ │ │ ├── plan1.dot │ │ │ │ ├── testScript1.dot │ │ │ │ ├── testScript2.dot │ │ │ │ ├── testScript3.dot │ │ │ │ ├── testScript4.dot │ │ │ │ ├── testScript5.dot │ │ │ │ └── testScript6.dot │ │ │ ├── ExpectedResult.pig │ │ │ ├── ExpectedResult2.pig │ │ │ ├── ExpectedResult3.txt │ │ │ ├── ExpectedResult4.pig │ │ │ ├── ExpectedResult6.pig │ │ │ ├── ExpectedResult7.pig │ │ │ ├── ExpectedResultCmdLnPriorDeclare.pig │ │ │ ├── ExpectedResultComment.pig │ │ │ ├── ExpectedResultDefault.pig │ │ │ ├── ExpectedResultDollarSign.pig │ │ │ ├── ExpectedResultMulDecs.pig │ │ │ ├── GoldenFiles │ │ │ │ ├── Arithmetic.gld │ │ │ │ ├── BinCond.gld │ │ │ │ ├── Cogroup.gld │ │ │ │ ├── Comparison.gld │ │ │ │ ├── ComplexForeach.gld │ │ │ │ ├── Distinct.gld │ │ │ │ ├── Generate.gld │ │ │ │ ├── IsNull1.gld │ │ │ │ ├── IsNull2.gld │ │ │ │ ├── Limit.gld │ │ │ │ ├── MRC1.gld │ │ │ │ ├── MRC10.gld │ │ │ │ ├── MRC11.gld │ │ │ │ ├── MRC12.gld │ │ │ │ ├── MRC13.gld │ │ │ │ ├── MRC14.gld │ │ │ │ ├── MRC15.gld │ │ │ │ ├── MRC16.gld │ │ │ │ ├── MRC17.gld │ │ │ │ ├── MRC19.gld │ │ │ │ ├── MRC2.gld │ │ │ │ ├── MRC3.gld │ │ │ │ ├── MRC4.gld │ │ │ │ ├── MRC5.gld │ │ │ │ ├── MRC6.gld │ │ │ │ ├── MRC7.gld │ │ │ │ ├── MRC8.gld │ │ │ │ ├── MRC9.gld │ │ │ │ ├── Sort.gld │ │ │ │ ├── Split1.gld │ │ │ │ ├── Split2.gld │ │ │ │ ├── Union.gld │ │ │ │ ├── jsTst3 │ │ │ │ ├── jsTst4 │ │ │ │ ├── spark │ │ │ │ │ ├── SPARKC-LoadStore-1-dot.gld │ │ │ │ │ ├── SPARKC-LoadStore-1-text.gld │ │ │ │ │ └── SPARKC-LoadStore-1-xml.gld │ │ │ │ └── tez │ │ │ │ │ ├── TEZC-BloomJoin-1-KeyToReducer.gld │ │ │ │ │ ├── TEZC-BloomJoin-1.gld │ │ │ │ │ ├── TEZC-BloomJoin-2-KeyToReducer.gld │ │ │ │ │ ├── TEZC-BloomJoin-2.gld │ │ │ │ │ ├── TEZC-BloomJoin-3-KeyToReducer.gld │ │ │ │ │ ├── TEZC-BloomJoin-3.gld │ │ │ │ │ ├── TEZC-BloomJoin-4-KeyToReducer.gld │ │ │ │ │ ├── TEZC-BloomJoin-4.gld │ │ │ │ │ ├── TEZC-BloomJoin-5-KeyToReducer.gld │ │ │ │ │ ├── TEZC-BloomJoin-5.gld │ │ │ │ │ ├── TEZC-BloomJoin-6-KeyToReducer.gld │ │ │ │ │ ├── TEZC-BloomJoin-6.gld │ │ │ │ │ ├── TEZC-BloomJoin-7-KeyToReducer.gld │ │ │ │ │ ├── TEZC-BloomJoin-7.gld │ │ │ │ │ ├── TEZC-Cogroup-1.gld │ │ │ │ │ ├── TEZC-Cross-1.gld │ │ │ │ │ ├── TEZC-Cross-2.gld │ │ │ │ │ ├── TEZC-Cross-3.gld │ │ │ │ │ ├── TEZC-Distinct-1.gld │ │ │ │ │ ├── TEZC-Distinct-2.gld │ │ │ │ │ ├── TEZC-FRJoin-1.gld │ │ │ │ │ ├── TEZC-FRJoin-2.gld │ │ │ │ │ ├── TEZC-Filter-1.gld │ │ │ │ │ ├── TEZC-Group-1.gld │ │ │ │ │ ├── TEZC-Join-1.gld │ │ │ │ │ ├── TEZC-Limit-1.gld │ │ │ │ │ ├── TEZC-Limit-2.gld │ │ │ │ │ ├── TEZC-Limit-3.gld │ │ │ │ │ ├── TEZC-Limit-4.gld │ │ │ │ │ ├── TEZC-LoadStore-1.gld │ │ │ │ │ ├── TEZC-LoadStore-2.gld │ │ │ │ │ ├── TEZC-LoadStore-3.gld │ │ │ │ │ ├── TEZC-LoadStore-4.gld │ │ │ │ │ ├── TEZC-LoadStore-5.gld │ │ │ │ │ ├── TEZC-LoadStore-6.gld │ │ │ │ │ ├── TEZC-LoadStore-7.gld │ │ │ │ │ ├── TEZC-MQ-1-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-1.gld │ │ │ │ │ ├── TEZC-MQ-10-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-10.gld │ │ │ │ │ ├── TEZC-MQ-2-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-2.gld │ │ │ │ │ ├── TEZC-MQ-3-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-3.gld │ │ │ │ │ ├── TEZC-MQ-4-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-4.gld │ │ │ │ │ ├── TEZC-MQ-5-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-5.gld │ │ │ │ │ ├── TEZC-MQ-6-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-6.gld │ │ │ │ │ ├── TEZC-MQ-7-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-7.gld │ │ │ │ │ ├── TEZC-MQ-8-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-8.gld │ │ │ │ │ ├── TEZC-MQ-9-OPTOFF.gld │ │ │ │ │ ├── TEZC-MQ-9.gld │ │ │ │ │ ├── TEZC-MergeCogroup-1.gld │ │ │ │ │ ├── TEZC-MergeJoin-1.gld │ │ │ │ │ ├── TEZC-Native-1.gld │ │ │ │ │ ├── TEZC-Order-1.gld │ │ │ │ │ ├── TEZC-Order-2.gld │ │ │ │ │ ├── TEZC-Order-3.gld │ │ │ │ │ ├── TEZC-Rank-1.gld │ │ │ │ │ ├── TEZC-Rank-2.gld │ │ │ │ │ ├── TEZC-SecKeySort-1.gld │ │ │ │ │ ├── TEZC-SecKeySort-2.gld │ │ │ │ │ ├── TEZC-SelfJoin-1.gld │ │ │ │ │ ├── TEZC-SelfJoin-2.gld │ │ │ │ │ ├── TEZC-SelfJoin-3.gld │ │ │ │ │ ├── TEZC-SelfJoin-4.gld │ │ │ │ │ ├── TEZC-SelfJoin-5.gld │ │ │ │ │ ├── TEZC-SelfJoin-6.gld │ │ │ │ │ ├── TEZC-SkewJoin-1.gld │ │ │ │ │ ├── TEZC-SkewJoin-2.gld │ │ │ │ │ ├── TEZC-Stream-1.gld │ │ │ │ │ ├── TEZC-Union-1-DummyStore-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-1-DummyStore2-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-1-DummyStore3.gld │ │ │ │ │ ├── TEZC-Union-1-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-1-SplitStore.gld │ │ │ │ │ ├── TEZC-Union-1.gld │ │ │ │ │ ├── TEZC-Union-10-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-10.gld │ │ │ │ │ ├── TEZC-Union-11-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-11.gld │ │ │ │ │ ├── TEZC-Union-12-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-12.gld │ │ │ │ │ ├── TEZC-Union-13-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-13.gld │ │ │ │ │ ├── TEZC-Union-14-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-14.gld │ │ │ │ │ ├── TEZC-Union-15-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-15.gld │ │ │ │ │ ├── TEZC-Union-16-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-16.gld │ │ │ │ │ ├── TEZC-Union-17-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-17.gld │ │ │ │ │ ├── TEZC-Union-18-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-18.gld │ │ │ │ │ ├── TEZC-Union-19-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-19.gld │ │ │ │ │ ├── TEZC-Union-2-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-2.gld │ │ │ │ │ ├── TEZC-Union-20-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-20.gld │ │ │ │ │ ├── TEZC-Union-21-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-21.gld │ │ │ │ │ ├── TEZC-Union-22.gld │ │ │ │ │ ├── TEZC-Union-3-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-3.gld │ │ │ │ │ ├── TEZC-Union-4-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-4.gld │ │ │ │ │ ├── TEZC-Union-5-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-5.gld │ │ │ │ │ ├── TEZC-Union-6-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-6.gld │ │ │ │ │ ├── TEZC-Union-7-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-7.gld │ │ │ │ │ ├── TEZC-Union-8-OPTOFF.gld │ │ │ │ │ ├── TEZC-Union-8.gld │ │ │ │ │ ├── TEZC-Union-9-OPTOFF.gld │ │ │ │ │ └── TEZC-Union-9.gld │ │ │ ├── InputFiles │ │ │ │ ├── jsTst1.txt │ │ │ │ ├── jsTst2.txt │ │ │ │ ├── jsTst5.txt │ │ │ │ └── passwd │ │ │ ├── TestIllustrateInput.txt │ │ │ ├── TestIllustrateInput2.txt │ │ │ ├── TestIllustrateInput_invalid.txt │ │ │ ├── TestRelationToExprProjectInput.txt │ │ │ ├── TestWordCount.jar │ │ │ ├── blockEndingInCR.txt.bz2 │ │ │ ├── blockHeaderEndsAt136500.txt.bz2 │ │ │ ├── bzipTest.bz2 │ │ │ ├── bzipdir1.bz2 │ │ │ │ └── bzipdir2.bz2 │ │ │ │ │ └── recordLossblockHeaderEndsAt136500.txt.bz2 │ │ │ ├── explainScript.pig │ │ │ ├── generate_date.bat │ │ │ ├── generate_date.sh │ │ │ ├── illustrate.pig │ │ │ ├── illustrate2.pig │ │ │ ├── illustrate3.pig │ │ │ ├── illustrate4.pig │ │ │ ├── illustrate5.pig │ │ │ ├── illustrate6.pig │ │ │ ├── illustrate7.pig │ │ │ ├── input1.pig │ │ │ ├── input2.pig │ │ │ ├── input3.pig │ │ │ ├── input4.pig │ │ │ ├── input5.pig │ │ │ ├── input6.pig │ │ │ ├── input7.pig │ │ │ ├── inputCmdlineParamPriortoDeclare.pig │ │ │ ├── inputCmdnameAsParamDeclare.pig │ │ │ ├── inputComment.pig │ │ │ ├── inputDefault.pig │ │ │ ├── inputDollarSign.pig │ │ │ ├── inputEscape.pig │ │ │ ├── inputMultipleDeclares.pig │ │ │ ├── inputMultipleParams.pig │ │ │ ├── inputNoVars.pig │ │ │ ├── inputSubWithinLiteral.pig │ │ │ ├── inputSubstitutionWithinShellCommand.pig │ │ │ ├── inputSubstitutionWithinValue.pig │ │ │ ├── inputThreeParams.pig │ │ │ ├── newinputS.txt │ │ │ ├── output1.pig │ │ │ ├── output26.pig │ │ │ ├── output3.pig │ │ │ ├── passwd │ │ │ ├── passwd2 │ │ │ ├── pigtestloader.jar │ │ │ ├── tc.js │ │ │ ├── test.ppf │ │ │ ├── test_broken.ppf │ │ │ ├── testivysettings.xml │ │ │ ├── testsub.pig │ │ │ ├── testsubnested_exec.pig │ │ │ └── testsubnested_run.pig │ │ ├── junit │ │ │ └── OrderedJUnit4Runner.java │ │ ├── pigunit │ │ │ ├── TestPigTest.java │ │ │ └── pig │ │ │ │ └── TestGruntParser.java │ │ └── utils │ │ │ ├── AccumulativeSumBag.java │ │ │ ├── AccumulatorBagCount.java │ │ │ ├── BagCount.java │ │ │ ├── CloseAwareFSDataInputStream.java │ │ │ ├── CloseAwareOutputStream.java │ │ │ ├── FILTERFROMFILE.java │ │ │ ├── GenPhyOp.java │ │ │ ├── GenRandomData.java │ │ │ ├── HelperEvalFuncUtils.java │ │ │ ├── Identity.java │ │ │ ├── LocalSeekableInputStream.java │ │ │ ├── MultiLevelDerivedUDF1.java │ │ │ ├── MultiLevelDerivedUDF2.java │ │ │ ├── MultiLevelDerivedUDF3.java │ │ │ ├── MyUDFReturnMap.java │ │ │ ├── MyUDFWithoutParameter.java │ │ │ ├── NewLogicalPlanUtil.java │ │ │ ├── POCastDummy.java │ │ │ ├── ReportingUDF.java │ │ │ ├── ScriptSchemaTestLoader.java │ │ │ ├── SimpleCustomPartitioner.java │ │ │ ├── SimpleCustomPartitioner3.java │ │ │ ├── TestHelper.java │ │ │ ├── TypeCheckingTestUtil.java │ │ │ ├── UDFContextTestEvalFunc.java │ │ │ ├── UDFContextTestEvalFunc2.java │ │ │ ├── UDFContextTestEvalFunc3.java │ │ │ ├── UDFContextTestLoader.java │ │ │ ├── UDFContextTestLoaderWithSignature.java │ │ │ ├── UPPER.java │ │ │ ├── URLPARSE.java │ │ │ ├── WordCount.java │ │ │ ├── WrongCustomPartitioner.java │ │ │ ├── dotGraph │ │ │ ├── DOTParser.jjt │ │ │ ├── DotEdge.java │ │ │ ├── DotGraph.java │ │ │ ├── DotGraphReader.java │ │ │ ├── DotNode.java │ │ │ ├── ExactKeyMatcher.java │ │ │ ├── IncreasingKeyMatcher.java │ │ │ ├── NodeMatcher.java │ │ │ └── OperatorPlanLoader.java │ │ │ └── planComparer │ │ │ └── PlanStructuralComparer.java │ │ ├── tez │ │ ├── TestGroupConstParallelTez.java │ │ ├── TestJobSubmissionTez.java │ │ ├── TestLoaderStorerShipCacheFilesTez.java │ │ ├── TestPOPartialAggPlanTez.java │ │ ├── TestPigStatsTez.java │ │ ├── TestSecondarySortTez.java │ │ ├── TestTezAutoParallelism.java │ │ ├── TestTezCompiler.java │ │ ├── TestTezGraceParallelism.java │ │ ├── TestTezJobControlCompiler.java │ │ ├── TestTezJobExecution.java │ │ ├── TestTezLauncher.java │ │ └── TezUtil.java │ │ └── tools │ │ ├── grunt │ │ └── TestGruntParser.java │ │ └── parameters │ │ └── TestPreprocessorContext.java ├── perf │ └── pigmix │ │ ├── bin │ │ ├── generate_data.sh │ │ └── runpigmix.pl │ │ ├── build.xml │ │ ├── conf │ │ └── config.sh │ │ ├── lib │ │ └── sdsuLibJKD12.jar │ │ └── src │ │ ├── java │ │ └── org │ │ │ └── apache │ │ │ └── pig │ │ │ └── test │ │ │ └── pigmix │ │ │ ├── datagen │ │ │ └── DataGenerator.java │ │ │ ├── mapreduce │ │ │ ├── L1.java │ │ │ ├── L10.java │ │ │ ├── L11.java │ │ │ ├── L12.java │ │ │ ├── L13.java │ │ │ ├── L14.java │ │ │ ├── L15.java │ │ │ ├── L16.java │ │ │ ├── L17.java │ │ │ ├── L2.java │ │ │ ├── L3.java │ │ │ ├── L4.java │ │ │ ├── L5.java │ │ │ ├── L6.java │ │ │ ├── L7.java │ │ │ ├── L8.java │ │ │ ├── L9.java │ │ │ └── Library.java │ │ │ └── udf │ │ │ └── PigPerformanceLoader.java │ │ └── pig │ │ ├── L1.pig │ │ ├── L10.pig │ │ ├── L11.pig │ │ ├── L12.pig │ │ ├── L13.pig │ │ ├── L14.pig │ │ ├── L15.pig │ │ ├── L16.pig │ │ ├── L17.pig │ │ ├── L2.pig │ │ ├── L3.pig │ │ ├── L4.pig │ │ ├── L5.pig │ │ ├── L6.pig │ │ ├── L7.pig │ │ ├── L8.pig │ │ └── L9.pig ├── pigunit-tests ├── python │ └── streaming │ │ └── test_controller.py ├── resources │ └── org │ │ └── apache │ │ └── pig │ │ └── test │ │ ├── ClassLoaderSanityCheck.java │ │ ├── RegisteredJarVisibilityLoader.java │ │ └── RegisteredJarVisibilitySchema.java ├── smoke-tests └── unit-tests └── tutorial ├── build.xml ├── data ├── excite-small.log └── excite.log.bz2 ├── scripts ├── script1-hadoop.pig ├── script1-local.pig ├── script2-hadoop.pig └── script2-local.pig └── src └── org └── apache └── pig └── tutorial ├── ExtractHour.java ├── NGramGenerator.java ├── NonURLDetector.java ├── ScoreGenerator.java ├── ToLower.java ├── TutorialTest.java └── TutorialUtil.java /.eclipse.templates/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | @PROJECT@ 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /.eclipse.templates/README.txt: -------------------------------------------------------------------------------- 1 | This directory contains templates for generating Eclipse files to configure 2 | Eclipse for Pig development. 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | build/ 3 | src-gen/ 4 | test/org/apache/pig/test/utils/dotGraph/parser/ 5 | target/ 6 | ivy/*.jar 7 | pig.jar 8 | pig-withouthadoop.jar 9 | *.iml 10 | *.ipr 11 | *.iws 12 | *.patch 13 | *.log 14 | *.orig 15 | *.rej 16 | *.class 17 | *.swp 18 | *.classpath 19 | *.project 20 | *.crc 21 | .ant-targets-build.xml 22 | contrib/piggybank/java/piggybank.jar 23 | conf/log4j.properties 24 | lib/jdiff/pig_*SNAPSHOT.xml 25 | test/resources/*.jar 26 | !ivy/ant-contrib-1.0b3.jar 27 | lib/ 28 | .idea/ 29 | -------------------------------------------------------------------------------- /autocomplete: -------------------------------------------------------------------------------- 1 | # This is auto-complete file for grunt. Put this file anywhere in 2 | # your CLASSPATH or your working directory. Auto-complete entry 3 | # can be anything include piggy bank tokens, commonly used paths, 4 | # etc. The only constraint is that entry can not contain whitespace 5 | # (include tab). 6 | # 7 | UPPER 8 | getExponent 9 | CEIL 10 | RANDOM 11 | LOG 12 | toDegrees 13 | LOG1P 14 | NEXTUP 15 | MIN 16 | MAX 17 | SIN 18 | TANH 19 | ASIN 20 | COSH 21 | EXP 22 | IEEEremainder 23 | nextAfter 24 | ULP 25 | SINH 26 | SIGNUM 27 | HYPOT 28 | ATAN2 29 | ABS 30 | POW 31 | RINT 32 | FLOOR 33 | LOG10 34 | TAN 35 | ATAN 36 | toRadians 37 | COS 38 | SCALB 39 | ACOS 40 | ROUND 41 | SQRT 42 | CBRT 43 | EXPM1 44 | copySign 45 | COR 46 | COV 47 | -------------------------------------------------------------------------------- /conf/log4j.properties.template: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | 18 | # ***** Set root logger level to DEBUG and its only appender to A. 19 | log4j.logger.org.apache.pig=info, A 20 | 21 | # ***** A is set to be a ConsoleAppender. 22 | log4j.appender.A=org.apache.log4j.ConsoleAppender 23 | # ***** A uses PatternLayout. 24 | log4j.appender.A.layout=org.apache.log4j.PatternLayout 25 | log4j.appender.A.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n 26 | -------------------------------------------------------------------------------- /conf/test-log4j.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | # Set root logger level to INFO and its only appender to A1. 17 | log4j.rootLogger=INFO, A1 18 | 19 | # A1 is set to be a ConsoleAppender. 20 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 21 | 22 | # A1 uses PatternLayout. 23 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 24 | log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n 25 | -------------------------------------------------------------------------------- /contrib/piggybank/java/lib/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/lib/.gitignore -------------------------------------------------------------------------------- /contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/evaluation/math/RANDOM.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.piggybank.evaluation.math; 20 | 21 | public class RANDOM extends org.apache.pig.builtin.RANDOM { 22 | } 23 | -------------------------------------------------------------------------------- /contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/storage/JsonMetadata.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.piggybank.storage; 20 | 21 | @Deprecated 22 | public class JsonMetadata extends org.apache.pig.builtin.JsonMetadata {} 23 | -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/evaluation/xml/data/test-file-2.xml.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/evaluation/xml/data/test-file-2.xml.bz2 -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testArrayDefault.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testArrayDefault.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testArrayWithSchema.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testArrayWithSchema.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testRecordSplit1.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testRecordSplit1.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testRecordSplit2.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testRecordSplit2.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testRecordWithFieldSchema.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/expected_testRecordWithFieldSchema.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/test_array.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/test_array.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/test_record.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/TestAvroStorageData/test_record.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testArrayDefault.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testArrayDefault.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testArrayWithSchema.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testArrayWithSchema.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testArrayWithSchemaURI.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testArrayWithSchemaURI.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testCorruptedFile.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testCorruptedFile.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testDefaultSchemaWrite.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testDefaultSchemaWrite.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testDir.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testDir.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testFileWithNoExtension.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testFileWithNoExtension.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testMultipleSchemas1.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testMultipleSchemas1.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testMultipleSchemas2.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testMultipleSchemas2.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordSplit1.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordSplit1.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordSplit2.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordSplit2.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordSplitFromText1.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordSplitFromText1.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordSplitFromText2.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordSplitFromText2.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordWithFieldSchema.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecordWithFieldSchema.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecursiveRecordReference1.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecursiveRecordReference1.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecursiveRecordReference2.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecursiveRecordReference2.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecursiveRecordReference3.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testRecursiveRecordReference3.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testUserDefinedLoadSchema.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_testUserDefinedLoadSchema.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_test_dir_1.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_test_dir_1.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_test_dir_1_2.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/expected_test_dir_1_2.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/messages.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/messages.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_array.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_array.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_array.avsc: -------------------------------------------------------------------------------- 1 | {"type":"array","items":"double"} -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_double.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_double.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_enum.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_enum.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_float.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_float.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_int.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_int.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_long.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_long.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_string.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_complex_types/test_record_string.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_corrupted_file.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_corrupted_file.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_glob1.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_glob1.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_glob2.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_glob2.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_glob3.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_glob3.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_subdir/test_glob4.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_subdir/test_glob4.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_subdir/test_glob5.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir1/test_subdir/test_glob5.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir2/test_glob4.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir2/test_glob4.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir2/test_glob5.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_dir2/test_glob5.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_generic_union.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_generic_union.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_loadavrowithnulls.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_loadavrowithnulls.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_merge_schemas_default/Employee3.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_merge_schemas_default/Employee3.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_merge_schemas_default/Employee4.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_merge_schemas_default/Employee4.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_merge_schemas_default/Employee6.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_merge_schemas_default/Employee6.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_no_extension: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_no_extension -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_double.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_double.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_enum.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_enum.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_float.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_float.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_int.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_int.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_long.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_long.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_string.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_primitive_types/test_string.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_record.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_record.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_record.avsc: -------------------------------------------------------------------------------- 1 | {"type":"record","name":"TUPLE_1","fields":[ 2 | {"name":"act_content","type": 3 | ["null", 4 | {"type":"array","items": 5 | {"type":"record","name":"TUPLE_2","fields": 6 | [{"name":"key","type":"string"}, 7 | {"name":"val","type":"string"}] 8 | } 9 | } 10 | ] 11 | }, 12 | {"name":"action_type","type":["null","string"]}, 13 | {"name":"browser_id","type":["null","string"]}, 14 | {"name":"component_version","type":"int"}, 15 | {"name":"member_id","type":"int"}, 16 | {"name":"page_key","type":["null","string"]}, 17 | {"name":"session_id","type":"long"}, 18 | {"name":"tracking_time","type":"long"}, 19 | {"name":"type","type":["null","string"]}] 20 | } 21 | -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_recursive_record_in_array.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_recursive_record_in_array.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_recursive_record_in_map.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_recursive_record_in_map.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_recursive_record_in_record.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_recursive_record_in_record.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_recursive_record_in_union.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_recursive_record_in_union.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_recursive_record_in_union.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "record", 3 | "name" : "recursive_record", 4 | "fields" : [ { 5 | "name" : "value", 6 | "type" : "int" 7 | }, { 8 | "name" : "next", 9 | "type" : [ "null", "recursive_record" ] 10 | } ] 11 | } 12 | -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_user_defined_load_schema/testUserDefinedLoadSchema_input1.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_user_defined_load_schema/testUserDefinedLoadSchema_input1.avro -------------------------------------------------------------------------------- /contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_user_defined_load_schema/testUserDefinedLoadSchema_input2.avro: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/contrib/piggybank/java/src/test/java/org/apache/pig/piggybank/test/storage/avro/avro_test_files/test_user_defined_load_schema/testUserDefinedLoadSchema_input2.avro -------------------------------------------------------------------------------- /ivy/ant-contrib-1.0b3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/ivy/ant-contrib-1.0b3.jar -------------------------------------------------------------------------------- /license/brics-LICENSE.txt: -------------------------------------------------------------------------------- 1 | website: http://www.brics.dk/automaton/ 2 | link to the license from the wewsite above: http://www.opensource.org/licenses/bsd-license.php 3 | -------------------------------------------------------------------------------- /license/hadoop-LICENSE.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | -------------------------------------------------------------------------------- /shims/test/hadoop2/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/shims/test/hadoop2/.gitignore -------------------------------------------------------------------------------- /src/META-INF/services/org.apache.pig.ExecType: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | # 14 | org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.LocalExecType 15 | org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MRExecType 16 | org.apache.pig.backend.hadoop.executionengine.tez.TezLocalExecType 17 | org.apache.pig.backend.hadoop.executionengine.tez.TezExecType 18 | org.apache.pig.backend.hadoop.executionengine.spark.SparkExecType 19 | org.apache.pig.backend.hadoop.executionengine.spark.SparkLocalExecType 20 | -------------------------------------------------------------------------------- /src/docs/src/documentation/README.txt: -------------------------------------------------------------------------------- 1 | This is the base documentation directory. 2 | 3 | skinconf.xml # This file customizes Forrest for your project. In it, you 4 | # tell forrest the project name, logo, copyright info, etc 5 | 6 | sitemap.xmap # Optional. This sitemap is consulted before all core sitemaps. 7 | # See http://forrest.apache.org/docs/project-sitemap.html 8 | -------------------------------------------------------------------------------- /src/docs/src/documentation/content/xdocs/images/hadoop-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/docs/src/documentation/content/xdocs/images/hadoop-logo.jpg -------------------------------------------------------------------------------- /src/docs/src/documentation/content/xdocs/images/pig-logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/docs/src/documentation/content/xdocs/images/pig-logo.gif -------------------------------------------------------------------------------- /src/docs/src/documentation/content/xdocs/images/zebra.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/docs/src/documentation/content/xdocs/images/zebra.jpg -------------------------------------------------------------------------------- /src/docs/src/documentation/resources/images/pig-in-overalls-big.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/docs/src/documentation/resources/images/pig-in-overalls-big.jpg -------------------------------------------------------------------------------- /src/docs/src/documentation/resources/images/pig-in-overalls-medium.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/docs/src/documentation/resources/images/pig-in-overalls-medium.png -------------------------------------------------------------------------------- /src/docs/src/documentation/resources/images/pig-on-elephant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/docs/src/documentation/resources/images/pig-on-elephant.png -------------------------------------------------------------------------------- /src/docs/src/documentation/resources/images/pig_zeppelin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/docs/src/documentation/resources/images/pig_zeppelin.png -------------------------------------------------------------------------------- /src/docs/src/documentation/resources/schema/symbols-project-v10.ent: -------------------------------------------------------------------------------- 1 | 17 | 18 | 24 | 25 | My Project Name"> 26 | 27 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/languages_de.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | Englisch 20 | Spanisch 21 | Holländisch 22 | Deutsch 23 | Französisch 24 | 25 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/languages_en.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | English 20 | Spanish 21 | Dutch 22 | German 23 | French 24 | 25 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/languages_es.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | Inglés 20 | Español 21 | Holandés 22 | 23 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/languages_fr.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | Anglais 20 | Espagnol 21 | Néerlandais 22 | Allemand 23 | Français 24 | 25 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/languages_nl.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | Engels 20 | Spaans 21 | Nederlands 22 | Duits 23 | Frans 24 | 25 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/tabs.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | Home 20 | Samples 21 | Apache XML Projects 22 | 23 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/tabs_de.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | Home 20 | Beispiele 21 | Apache XML Projekte 22 | 23 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/tabs_es.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | Inicio 20 | Ejemplos 21 | Projectos XML Apache 22 | 23 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/tabs_fr.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | Accueil 20 | Exemples 21 | Projets Apache XML 22 | 23 | -------------------------------------------------------------------------------- /src/docs/src/documentation/translations/tabs_nl.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | Home 20 | Voorbeelden 21 | Apache XML Projecten 22 | 23 | -------------------------------------------------------------------------------- /src/org/apache/pig/NonFSLoadFunc.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig; 19 | 20 | /** 21 | * Marker interface to distinguish LoadFunc implementations that don't use file system sources. 22 | */ 23 | public interface NonFSLoadFunc { 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/org/apache/pig/StaticDataCleanup.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig; 19 | 20 | import java.lang.annotation.ElementType; 21 | import java.lang.annotation.Retention; 22 | import java.lang.annotation.RetentionPolicy; 23 | import java.lang.annotation.Target; 24 | 25 | @Retention(RetentionPolicy.RUNTIME) 26 | @Target(ElementType.METHOD) 27 | public @interface StaticDataCleanup { 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/org/apache/pig/backend/datastorage/ContainerDescriptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.backend.datastorage; 20 | 21 | public interface ContainerDescriptor 22 | extends ElementDescriptor, 23 | Iterable { 24 | } 25 | -------------------------------------------------------------------------------- /src/org/apache/pig/backend/hadoop/executionengine/physicalLayer/expressionOperators/regex/RegexImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.regex; 19 | 20 | // General interface for regexComparison 21 | public interface RegexImpl { 22 | boolean match( String lhs, String rhs ); 23 | } 24 | -------------------------------------------------------------------------------- /src/org/apache/pig/backend/hadoop/executionengine/spark/FlatMapFunctionAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.backend.hadoop.executionengine.spark; 19 | 20 | import java.io.Serializable; 21 | import java.util.Iterator; 22 | 23 | public interface FlatMapFunctionAdapter extends Serializable { 24 | Iterator call(final R r) throws Exception; 25 | } 26 | -------------------------------------------------------------------------------- /src/org/apache/pig/backend/hadoop/executionengine/spark/PairFlatMapFunctionAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.backend.hadoop.executionengine.spark; 19 | 20 | import scala.Tuple2; 21 | 22 | import java.io.Serializable; 23 | import java.util.Iterator; 24 | 25 | public interface PairFlatMapFunctionAdapter extends Serializable { 26 | Iterator> call(T t) throws Exception; 27 | } -------------------------------------------------------------------------------- /src/org/apache/pig/backend/hadoop/executionengine/spark/Spark1Shims.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/org/apache/pig/backend/hadoop/executionengine/spark/Spark1Shims.java -------------------------------------------------------------------------------- /src/org/apache/pig/backend/hadoop/executionengine/spark/Spark2Shims.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/org/apache/pig/backend/hadoop/executionengine/spark/Spark2Shims.java -------------------------------------------------------------------------------- /src/org/apache/pig/backend/hadoop/executionengine/spark/SparkShims.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/org/apache/pig/backend/hadoop/executionengine/spark/SparkShims.java -------------------------------------------------------------------------------- /src/org/apache/pig/builtin/DoubleAbs.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.builtin; 20 | 21 | public class DoubleAbs extends DoubleBase { 22 | 23 | @Override 24 | Double compute(Double input) { 25 | return Math.abs(input); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/org/apache/pig/builtin/EXP.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.builtin; 20 | 21 | /** 22 | * Given a single data atom it returns the Euler's number e raised to the power of input 23 | */ 24 | public class EXP extends DoubleBase { 25 | Double compute(Double input){ 26 | return Math.exp(input); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/org/apache/pig/builtin/FloatSum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.builtin; 19 | 20 | /** 21 | * This method should never be used directly, use {@link SUM}. 22 | */ 23 | public class FloatSum extends DoubleSum { 24 | // just here for backwards compatibility 25 | public FloatSum() {} 26 | } 27 | -------------------------------------------------------------------------------- /src/org/apache/pig/builtin/IntSum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.builtin; 19 | 20 | /** 21 | * This method should never be used directly, use {@link SUM}. 22 | */ 23 | public class IntSum extends LongSum { 24 | // Just here for backwards compatibility 25 | public IntSum() {} 26 | } 27 | -------------------------------------------------------------------------------- /src/org/apache/pig/builtin/InvokerFunction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.builtin; 19 | 20 | import java.io.IOException; 21 | 22 | import org.apache.pig.data.Tuple; 23 | 24 | public interface InvokerFunction { 25 | public Object eval(Tuple input) throws IOException; 26 | } 27 | -------------------------------------------------------------------------------- /src/org/apache/pig/builtin/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

5 | This package contains builtin Pig UDFs. This includes 6 | {@link org.apache.pig.EvalFunc}s, 7 | {@link org.apache.pig.LoadFunc}s and 8 | {@link org.apache.pig.StoreFunc}s. 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/org/apache/pig/data/FieldIsNullException.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.data; 20 | 21 | import org.apache.pig.backend.executionengine.ExecException; 22 | 23 | public class FieldIsNullException extends ExecException { 24 | public FieldIsNullException() { 25 | } 26 | 27 | public FieldIsNullException(String msg) { 28 | super(msg); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/org/apache/pig/data/TupleMaker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.data; 19 | 20 | public interface TupleMaker { 21 | public A newTuple(); 22 | public A newTuple(int size); 23 | } 24 | -------------------------------------------------------------------------------- /src/org/apache/pig/impl/bloom/KirschMitzenmacherHash.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.impl.bloom; 20 | 21 | public class KirschMitzenmacherHash extends Hash { 22 | 23 | @Override 24 | public int[] hash(byte[] bytes, int maxValue, int numHash) { 25 | return HashProvider.hashKirschMitzenmacher(bytes, maxValue , numHash); 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/org/apache/pig/impl/bloom/Murmur3Hash.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.impl.bloom; 20 | 21 | public class Murmur3Hash extends Hash { 22 | @Override 23 | public int[] hash(byte[] bytes, int maxValue, int numHash) { 24 | return HashProvider.hashMurmur3(bytes, maxValue, numHash); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/org/apache/pig/impl/builtin/TezIndexableLoader.java: -------------------------------------------------------------------------------- 1 | package org.apache.pig.impl.builtin; 2 | 3 | import java.util.LinkedList; 4 | import java.util.Map; 5 | import java.util.Set; 6 | 7 | import org.apache.hadoop.conf.Configuration; 8 | import org.apache.pig.FuncSpec; 9 | import org.apache.pig.backend.executionengine.ExecException; 10 | import org.apache.pig.backend.hadoop.executionengine.tez.runtime.TezInput; 11 | import org.apache.pig.data.Tuple; 12 | import org.apache.tez.runtime.api.LogicalInput; 13 | 14 | public class TezIndexableLoader extends DefaultIndexableLoader { 15 | 16 | public TezIndexableLoader(String loaderFuncSpec, String scope, String inputLocation) { 17 | super(loaderFuncSpec, null, null, scope, inputLocation); 18 | } 19 | 20 | @Override 21 | public void loadIndex() throws ExecException { 22 | // no op 23 | } 24 | 25 | /** 26 | * Loads indices from provided LinkedList 27 | * 28 | * @param index 29 | * @throws ExecException 30 | */ 31 | public void setIndex(LinkedList index) throws ExecException { 32 | this.index = index; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/org/apache/pig/impl/streaming/StreamingUDFInputHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.impl.streaming; 19 | 20 | import org.apache.pig.PigStreamingBase; 21 | 22 | public class StreamingUDFInputHandler extends DefaultInputHandler { 23 | 24 | public StreamingUDFInputHandler(PigStreamingBase serializer) { 25 | this.serializer = serializer; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/org/apache/pig/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

5 | Public interfaces and classes for Pig. 6 |

7 | {@link org.apache.pig.PigServer} is the interface to Pig for use by other java 8 | programs. Other interfaces and classes in this package are for use by users 9 | when implementing user defined functions. 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/org/apache/pig/tools/grunt/Command.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.tools.grunt; 19 | 20 | public abstract class Command { 21 | public abstract void execute(String commandline); 22 | } 23 | -------------------------------------------------------------------------------- /src/org/apache/pig/tools/grunt/autocomplete_aliases: -------------------------------------------------------------------------------- 1 | filter 2 | foreach 3 | order 4 | distinct 5 | cogroup 6 | join 7 | cross 8 | union 9 | split 10 | group 11 | flatten 12 | dump 13 | describe 14 | explain 15 | store 16 | FILTER 17 | FOREACH 18 | ORDER 19 | DISTINCT 20 | COGROUP 21 | JOIN 22 | CROSS 23 | UNION 24 | SPLIT 25 | GROUP 26 | FLATTEN 27 | DUMP 28 | DESCRIBE 29 | EXPLAIN 30 | STORE 31 | -------------------------------------------------------------------------------- /src/org/apache/pig/tools/pigstats/PigWarnCounter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.tools.pigstats; 20 | 21 | /* 22 | Interface for incrementing warning counters 23 | */ 24 | public interface PigWarnCounter { 25 | 26 | boolean incrWarnCounter(Enum name, Object incr); 27 | 28 | boolean incrWarnCounter(String group, String name, Object incr); 29 | } 30 | -------------------------------------------------------------------------------- /src/org/apache/pig/tools/pigstats/spark/Spark1JobStats.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/org/apache/pig/tools/pigstats/spark/Spark1JobStats.java -------------------------------------------------------------------------------- /src/org/apache/pig/tools/pigstats/spark/Spark2JobStats.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/src/org/apache/pig/tools/pigstats/spark/Spark2JobStats.java -------------------------------------------------------------------------------- /src/packages/templates/conf/pig-env.sh: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one or more 2 | # contributor license agreements. See the NOTICE file distributed with 3 | # this work for additional information regarding copyright ownership. 4 | # The ASF licenses this file to You under the Apache License, Version 2.0 5 | # (the "License"); you may not use this file except in compliance with 6 | # the License. You may obtain a copy of the License at 7 | # 8 | # http://www.apache.org/licenses/LICENSE-2.0 9 | # 10 | # Unless required by applicable law or agreed to in writing, software 11 | # distributed under the License is distributed on an "AS IS" BASIS, 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | # See the License for the specific language governing permissions and 14 | # limitations under the License. 15 | 16 | export JAVA_HOME=${JAVA_HOME} 17 | -------------------------------------------------------------------------------- /test/all-tests: -------------------------------------------------------------------------------- 1 | **/Test*.java 2 | -------------------------------------------------------------------------------- /test/data/pigunit/top_queries_expected_top_3.txt: -------------------------------------------------------------------------------- 1 | (yahoo,25) 2 | (facebook,15) 3 | (twitter,7) -------------------------------------------------------------------------------- /test/data/pigunit/top_queries_input_data.txt: -------------------------------------------------------------------------------- 1 | yahoo 10 2 | twitter 7 3 | facebook 10 4 | yahoo 15 5 | facebook 5 6 | a 1 7 | b 2 8 | c 3 9 | d 4 10 | e 5 -------------------------------------------------------------------------------- /test/data/pigunit/top_queries_params.txt: -------------------------------------------------------------------------------- 1 | n=3 2 | reducers=1 3 | input=top_queries_input_data.txt 4 | output=top_3_queries 5 | -------------------------------------------------------------------------------- /test/e2e/pig/lib/hadoop-examples.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/e2e/pig/lib/hadoop-examples.jar -------------------------------------------------------------------------------- /test/e2e/pig/lib/hadoop-streaming.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/e2e/pig/lib/hadoop-streaming.jar -------------------------------------------------------------------------------- /test/e2e/pig/macros/macro1.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | define simple_macro(in_relation, min_gpa, max_age) returns c { 20 | b = filter $in_relation by gpa >= $min_gpa and age <= $max_age; 21 | $c = foreach b generate age, name; 22 | }; 23 | -------------------------------------------------------------------------------- /test/e2e/pig/macros/macro_bad1.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | -- macro with syntax error 20 | 21 | define simple_macro(in_relation, min_gpa, max_age) returns c { 22 | b = fiter $in_relation by gpa >= $min_gpa and age <= $max_age; 23 | c = foreach b generate age, name; 24 | }; 25 | -------------------------------------------------------------------------------- /test/e2e/pig/paramfiles/params_3: -------------------------------------------------------------------------------- 1 | # this is a comment 2 | fname = studenttab10k 3 | unusedkey = unusedvalueihope 4 | -------------------------------------------------------------------------------- /test/e2e/pig/resource/default.res: -------------------------------------------------------------------------------- 1 | $resources = { 2 | 'Unicode_cmdline_1_output' => '(bobτ)', 3 | 'Warning_1_err' => 'Encountered Warning DIVIDE_BY_ZERO 2387 time.*', 4 | 'Warning_4_err' => '(Encountered Warning UDF_WARNING_4 22 time.*\n.*Encountered Warning UDF_WARNING_3 10989 time.*)|(Encountered Warning UDF_WARNING_3 10989 time.*\n.*Encountered Warning UDF_WARNING_4 22 time.*)', 5 | 'Grunt_8_output' => 'gabriella brown\\t60\\t1.71', 6 | 'Grunt_13_output' => 'gabriella brown\\t60\\t1.71', 7 | 'Grunt_14_output' => 'jessica xylophone\\t41\\tgreen\\t638.13', 8 | 'UdfDistributedCache_1_out' => 'tom van buren\\t68\\tsocialist\\t390.19', 9 | }; 10 | -------------------------------------------------------------------------------- /test/e2e/pig/resource/windows.res: -------------------------------------------------------------------------------- 1 | $resources = { 2 | 'Unicode_cmdline_1_output' => 'bobμ', 3 | 'Warning_1_err' => 'Encountered Warning DIVIDE_BY_ZERO 2390 time.*', 4 | 'Warning_4_err' => '(Encountered Warning UDF_WARNING_4 27 time.*\n.*Encountered Warning UDF_WARNING_3 10984 time.*)|(Encountered Warning UDF_WARNING_3 10984 time.*\n.*Encountered Warning UDF_WARNING_4 27 time.*)', 5 | 'Grunt_8_output' => 'zach johnson\\t77\\t3.27', 6 | 'Grunt_13_output' => 'zach johnson\\t77\\t3.27', 7 | 'Grunt_14_output' => 'priscilla young\\t72\\tindependent\\t3.23', 8 | 'UdfDistributedCache_1_out' => 'priscilla young\\t72\\tindependent\\t3.23', 9 | }; 10 | -------------------------------------------------------------------------------- /test/e2e/pig/udfs/cpython/morepythonudfs.py: -------------------------------------------------------------------------------- 1 | ############################################################################ 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | from pig_util import outputSchema 18 | 19 | @outputSchema("notsquare:int") 20 | def square(num): 21 | return num * num * num 22 | 23 | -------------------------------------------------------------------------------- /test/e2e/pig/udfs/groovy/scriptingudf.groovy: -------------------------------------------------------------------------------- 1 | import org.apache.pig.scripting.groovy.OutputSchemaFunction; 2 | class GroovyUDFs { 3 | @OutputSchemaFunction('squareSchema') 4 | public static square(x) { 5 | return x * x; 6 | } 7 | public static squareSchema(input) { 8 | return input; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /test/e2e/pig/udfs/java/org/apache/pig/test/udf/storefunc/StringStoreBad.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.test.udf.storefunc; 20 | 21 | 22 | public class StringStoreBad extends StringStore { 23 | // this class is only used in negative tests 24 | // just based on StringStore so we don't need to provide any other special 25 | // implementation here 26 | } 27 | 28 | -------------------------------------------------------------------------------- /test/e2e/pig/udfs/js/scriptingudf.js: -------------------------------------------------------------------------------- 1 | square.outputSchema = "square:double"; 2 | function square(x) { 3 | return x * x 4 | } 5 | -------------------------------------------------------------------------------- /test/e2e/pig/udfs/python/morepythonudfs.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | ############################################################################ 4 | # Licensed to the Apache Software Foundation (ASF) under one or more 5 | # contributor license agreements. See the NOTICE file distributed with 6 | # this work for additional information regarding copyright ownership. 7 | # The ASF licenses this file to You under the Apache License, Version 2.0 8 | # (the "License"); you may not use this file except in compliance with 9 | # the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, software 14 | # distributed under the License is distributed on an "AS IS" BASIS, 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | # See the License for the specific language governing permissions and 17 | # limitations under the License. 18 | 19 | from org.apache.hadoop.fs import * # Test for PIG-1824 20 | p = Path('foo') 21 | 22 | @outputSchema("notsquare:int") 23 | def square(num): 24 | return num * num * num 25 | 26 | -------------------------------------------------------------------------------- /test/excluded-tests: -------------------------------------------------------------------------------- 1 | **/TestHelper.java 2 | **/TestLargeFile.java 3 | **/TestOrderBy.java 4 | **/TestOrderBy2.java 5 | **/TestPi.java 6 | **/e2e/** 7 | -------------------------------------------------------------------------------- /test/excluded-tests-23: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/excluded-tests-23 -------------------------------------------------------------------------------- /test/excluded-tests-mr: -------------------------------------------------------------------------------- 1 | **/tez/*.java 2 | **/spark/*.java -------------------------------------------------------------------------------- /test/excluded-tests-spark: -------------------------------------------------------------------------------- 1 | **/Test*MR.java 2 | **/tez/*.java 3 | **/TestNativeMapReduce.java 4 | **/TestCounters.java 5 | **/TestMultiQueryCompiler.java 6 | **/TestAutoLocalMode.java -------------------------------------------------------------------------------- /test/excluded-tests-tez: -------------------------------------------------------------------------------- 1 | **/Test*MR.java 2 | **/spark/*.java 3 | **/TestMultiQueryCompiler.java 4 | **/TestAutoLocalMode.java -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/directory_test.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage; 2 | out = FOREACH (GROUP in ALL) GENERATE 3 | (int) SUM(in.item) as itemSum:int, 4 | (int) COUNT_STAR(in) as n:int; 5 | RMF $OUTFILE; 6 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/dump.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage(); 2 | DUMP in; 3 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/group_test.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage(); 2 | grouped = GROUP in BY (value1.thing); 3 | flattened = FOREACH grouped GENERATE flatten(in) as (key: chararray,value1: (thing: chararray,count: int),value2: (thing: chararray,count: int)); 4 | RMF $OUTFILE; 5 | STORE flattened INTO '$OUTFILE' USING AvroStorage(); 6 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/identity.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage('','$AVROSTORAGE_IN_2'); 2 | out = FOREACH in GENERATE *; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1','$AVROSTORAGE_OUT_2'); 5 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/identity_ai1_ao2.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage('$AVROSTORAGE_IN_1'); 2 | out = FOREACH in GENERATE *; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/identity_ao2.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage(); 2 | out = FOREACH in GENERATE *; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/identity_blank_first_args.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage('','$AVROSTORAGE_IN_2'); 2 | out = FOREACH in GENERATE *; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/identity_codec.pig: -------------------------------------------------------------------------------- 1 | SET avro.output.codec $CODEC 2 | SET avro.mapred.deflate.level $LEVEL 3 | in = LOAD '$INFILE' USING AvroStorage(); 4 | out = FOREACH in GENERATE *; 5 | RMF $OUTFILE; 6 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1','$AVROSTORAGE_OUT_2'); 7 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/identity_just_ao2.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage(); 2 | out = FOREACH in GENERATE *; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/namesWithDoubleColons.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage('',''); 2 | step1 = FOREACH in GENERATE TOTUPLE(key) as A, TOTUPLE(intValue) as C; 3 | step2 = FOREACH step1 GENERATE A, TOTUPLE(C) as B; 4 | step3 = FOREACH step2 GENERATE FLATTEN(A), FLATTEN(B); 5 | out = FOREACH step3 GENERATE A::key, FLATTEN(B::C); 6 | RMF $OUTFILE; 7 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/projection_test.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage(); 2 | out = FOREACH in GENERATE $0, $1, $2; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/projection_test_with_schema.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage('','$AVROSTORAGE_IN_2'); 2 | out = FOREACH in GENERATE $0, $1, $3; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/recursive_tests.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage('', '$AVROSTORAGE_IN_2'); 2 | out = FOREACH in GENERATE $0, $1; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1', '$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/trevni_to_avro.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING TrevniStorage; 2 | out = FOREACH in GENERATE *; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/trevni_to_trevni.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING TrevniStorage; 2 | out = FOREACH in GENERATE *; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING TrevniStorage('','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/code/pig/with_dates.pig: -------------------------------------------------------------------------------- 1 | in = LOAD '$INFILE' USING AvroStorage(); 2 | out = FOREACH in GENERATE *, ToDate('2013-05-01Z', 'yyyy-MM-ddZ') AS date; 3 | RMF $OUTFILE; 4 | STORE out INTO '$OUTFILE' USING AvroStorage('$AVROSTORAGE_OUT_1','$AVROSTORAGE_OUT_2'); -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/arrays.json: -------------------------------------------------------------------------------- 1 | [1, 2, 3, 4, 5] 2 | [6] 3 | [] -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/arraysAsOutputByPig.json: -------------------------------------------------------------------------------- 1 | {"array" : 2 | {"array" : 3 | [ 4 | {"array_0" : {"int" : 1}}, 5 | {"array_0" : {"int" : 2}}, 6 | {"array_0" : {"int" : 3}}, 7 | {"array_0" : {"int" : 4}}, 8 | {"array_0" : {"int" : 5}} 9 | ] 10 | } 11 | } 12 | {"array" : { 13 | "array" : 14 | [ 15 | {"array_0" : {"int" : 6}} 16 | ] 17 | } 18 | } 19 | {"array" : { 20 | "array" : 21 | [] 22 | } 23 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/projectionTest.json: -------------------------------------------------------------------------------- 1 | { 2 | "key" : "A", 3 | "intValue" : 1, 4 | "longValue" : 1 5 | } 6 | { 7 | "key" : "B", 8 | "intValue" : 2, 9 | "longValue" : 2 10 | } 11 | { 12 | "key" : "C", 13 | "intValue" : 3, 14 | "longValue" : 3 15 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/projectionTestWithSchema.json: -------------------------------------------------------------------------------- 1 | { 2 | "key" : "A", 3 | "intValue" : 1, 4 | "booleanValue" : true 5 | } 6 | { 7 | "key" : "B", 8 | "intValue" : 2, 9 | "booleanValue" : true 10 | } 11 | { 12 | "key" : "C", 13 | "intValue" : 3, 14 | "booleanValue" : false 15 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordWithRepeatedSubRecords.json: -------------------------------------------------------------------------------- 1 | {"key" : "stuff in closet", 2 | "value1" : {"thing" : "hat", "count" : 7}, 3 | "value2" : {"thing" : "coat", "count" : 2} 4 | } 5 | {"key" : "stuff on desk", 6 | "value1" : {"thing" : "stapler", "count" : 1}, 7 | "value2" : {"thing" : "PC", "count" : 0} 8 | } 9 | {"key" : "examples", 10 | "value1" : {"thing" : "interesting", "count" : 0}, 11 | "value2" : {"thing" : "dull", "count" : 10} 12 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/records.json: -------------------------------------------------------------------------------- 1 | { 2 | "key" : "A", 3 | "intValue" : 1, 4 | "longValue" : 1, 5 | "booleanValue" : true, 6 | "floatValue" : 1.0, 7 | "doubleValue" : 1.0, 8 | "bytesValue" : "\u00FF", 9 | "nullValue" : null 10 | } 11 | { 12 | "key" : "B", 13 | "intValue" : 2, 14 | "longValue" : 2, 15 | "booleanValue" : true, 16 | "floatValue" : 2.0, 17 | "doubleValue" : 2.0, 18 | "bytesValue" : "\u00FE", 19 | "nullValue" : null 20 | } 21 | { 22 | "key" : "C", 23 | "intValue" : 3, 24 | "longValue" : 3, 25 | "booleanValue" : false, 26 | "floatValue" : 3.0, 27 | "doubleValue" : 3.0, 28 | "bytesValue" : "\u00FD", 29 | "nullValue" : null 30 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsAsOutputByPig.json: -------------------------------------------------------------------------------- 1 | { 2 | "key" : {"string": "A"}, 3 | "intValue" : {"int" : 1}, 4 | "longValue" : {"long" : 1}, 5 | "booleanValue" : {"boolean" : true}, 6 | "floatValue" : {"float" : 1.0}, 7 | "doubleValue" : {"double" : 1.0}, 8 | "bytesValue" : {"bytes" : "\u00FF"}, 9 | "nullValue" : null 10 | } 11 | { 12 | "key" : {"string": "B"}, 13 | "intValue" : {"int" : 2}, 14 | "longValue" : {"long" :2}, 15 | "booleanValue" : {"boolean" : true}, 16 | "floatValue" : {"float" : 2.0}, 17 | "doubleValue" : {"double" : 2.0}, 18 | "bytesValue" : {"bytes" : "\u00FE"}, 19 | "nullValue" : null 20 | } 21 | { 22 | "key" : {"string": "C"}, 23 | "intValue" : {"int" : 3}, 24 | "longValue" : {"long" :3}, 25 | "booleanValue" : {"boolean" : false}, 26 | "floatValue" : {"float" : 3.0}, 27 | "doubleValue" : {"double" : 3.0}, 28 | "bytesValue" : {"bytes" : "\u00FD"}, 29 | "nullValue" : null 30 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsAsOutputByPigWithDates.json: -------------------------------------------------------------------------------- 1 | { 2 | "key" : {"string": "A"}, 3 | "intValue" : {"int" : 1}, 4 | "longValue" : {"long" : 1}, 5 | "booleanValue" : {"boolean" : true}, 6 | "floatValue" : {"float" : 1.0}, 7 | "doubleValue" : {"double" : 1.0}, 8 | "bytesValue" : {"bytes" : "\u00FF"}, 9 | "nullValue" : null, 10 | "date" : {"long" : 1367366400000} 11 | } 12 | { 13 | "key" : {"string": "B"}, 14 | "intValue" : {"int" : 2}, 15 | "longValue" : {"long" :2}, 16 | "booleanValue" : {"boolean" : true}, 17 | "floatValue" : {"float" : 2.0}, 18 | "doubleValue" : {"double" : 2.0}, 19 | "bytesValue" : {"bytes" : "\u00FE"}, 20 | "nullValue" : null, 21 | "date" : {"long" : 1367366400000} 22 | } 23 | { 24 | "key" : {"string": "C"}, 25 | "intValue" : {"int" : 3}, 26 | "longValue" : {"long" :3}, 27 | "booleanValue" : {"boolean" : false}, 28 | "floatValue" : {"float" : 3.0}, 29 | "doubleValue" : {"double" : 3.0}, 30 | "bytesValue" : {"bytes" : "\u00FD"}, 31 | "nullValue" : null, 32 | "date" : {"long" : 1367366400000} 33 | } 34 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsOfArrays.json: -------------------------------------------------------------------------------- 1 | {"key" : "1 one", "values" : [1]} 2 | {"key" : "2 twos", "values" : [2, 2]} 3 | {"key" : "first 7 numbers in fibonacci sequence", "values" : [1, 1, 2, 3, 5, 8, 13]} -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsOfArraysOfRecords.json: -------------------------------------------------------------------------------- 1 | {"key" : "A", 2 | "values" : [ 3 | {"k" : "a", "v" : 1} 4 | ] 5 | } 6 | {"key" : "B", 7 | "values" : [] 8 | } 9 | {"key" : "C", 10 | "values" : [ 11 | {"k" : "c", "v" : 3}, 12 | {"k" : "c1", "v" : 4}, 13 | {"k" : "c2", "v" : 5} 14 | ] 15 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsOfStringArrays.json: -------------------------------------------------------------------------------- 1 | {"values" : ["1"]} 2 | {"values" : ["2", "2"]} 3 | {"values" : ["1", "1", "2", "3", "5", "8", "13"]} 4 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsSubSchema.json: -------------------------------------------------------------------------------- 1 | { 2 | "key" : "A", 3 | "intValue" : 1 4 | } 5 | { 6 | "key" : "B", 7 | "intValue" : 2 8 | } 9 | { 10 | "key" : "C", 11 | "intValue" : 3 12 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsSubSchemaNullable.json: -------------------------------------------------------------------------------- 1 | { 2 | "key" : {"string" : "A"}, 3 | "value" : { "string" : "a"} 4 | } 5 | { 6 | "key" : {"string" : "B"}, 7 | "value" : { "string" : "b"} 8 | } 9 | { 10 | "key" : {"string" : "C"}, 11 | "value" : { "string" : "c"} 12 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsWithDoubleUnderscores.json: -------------------------------------------------------------------------------- 1 | { 2 | "A__key" : {"string" : "A"}, 3 | "B__C__intValue" : {"int" : 1} 4 | } 5 | { 6 | "A__key" : {"string" : "B"}, 7 | "B__C__intValue" : {"int" : 2} 8 | } 9 | { 10 | "A__key" : {"string" : "C"}, 11 | "B__C__intValue" : {"int" : 3} 12 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsWithEnums.json: -------------------------------------------------------------------------------- 1 | {"key" : "A", "value" : 1, "type" : "GOOD"} 2 | {"key" : "B", "value" : 2, "type" : "BAD"} 3 | {"key" : "C", "value" : 3, "type" : "OTHER"} 4 | {"key" : "D", "value" : 1, "type" : "OTHER"} -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsWithFixed.json: -------------------------------------------------------------------------------- 1 | {"key" : "lowestUnroutable", "value" : "0A000000"} 2 | {"key" : "highestUnroutable", "value" : "C0A8FFFF"} -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsWithMaps.json: -------------------------------------------------------------------------------- 1 | {"key" : "A", 2 | "value" : 1, 3 | "parameters" : { 4 | "comment" : "first test case" 5 | } 6 | } 7 | {"key" : "B", 8 | "value" : 2, 9 | "parameters" : { 10 | "comment" : "second map item", 11 | "also" : "the next item has an empty map" 12 | } 13 | } 14 | {"key" : "C", 15 | "value" : 3, 16 | "parameters" : {} 17 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsWithMapsOfArrayOfRecords.json: -------------------------------------------------------------------------------- 1 | {"key" : "A", 2 | "value" : 1, 3 | "parameters" : { 4 | "firstParameter" : [] 5 | } 6 | } 7 | {"key" : "B", 8 | "value" : 2, 9 | "parameters" : {} 10 | } 11 | {"key" : "C", 12 | "value" : 3, 13 | "parameters" : { 14 | "firstParameter" : [ 15 | {"k" : "c", "v" : 3}, 16 | {"k" : "c1", "v" : 4}, 17 | {"k" : "c2", "v" : 5} 18 | ], 19 | "secondParameter" : [ 20 | {"k" : "c3", "v" : 6}, 21 | {"k" : "c4", "v" : 7}, 22 | {"k" : "c5", "v" : 8} 23 | ] 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsWithMapsOfRecords.json: -------------------------------------------------------------------------------- 1 | {"key" : "A", 2 | "value" : 1, 3 | "parameters" : { 4 | "firstParameter" : {"k" : "firstParameterKey", "v" : 1} 5 | } 6 | } 7 | {"key" : "B", 8 | "value" : 2, 9 | "parameters" : {} 10 | } 11 | {"key" : "C", 12 | "value" : 1, 13 | "parameters" : { 14 | "firstParameter" : {"k" : "firstParameterKey", "v" : 70}, 15 | "secondParameter" : {"k" : "secondParameterKey", "v" : 0} 16 | } 17 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsWithNullableUnions.json: -------------------------------------------------------------------------------- 1 | {"key" : {"string" : "A"}, "value" : null} 2 | {"key" : {"string" : "B"}, "value" : {"int" : 1}} 3 | {"key" : null, "value" : null} 4 | {"key" : null, "value" : {"int" : 2}} -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnion.json: -------------------------------------------------------------------------------- 1 | {"key" : "A", "value" : {"long" : 1}} 2 | {"key" : "B", "value" : {"int" : 2}} 3 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recordsWithSimpleUnionOutput.json: -------------------------------------------------------------------------------- 1 | {"key":"A","intValue":1} 2 | {"key":"B","intValue":2} 3 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/data/json/recursiveRecord.json: -------------------------------------------------------------------------------- 1 | {"key" : "A", 2 | "value" : "a", 3 | "next" : null} 4 | {"key" : "B", 5 | "value" : "b", 6 | "next" : { 7 | "org.apache.pig.test.builtin.recursiveRecord" : { 8 | "key" : "B1", 9 | "value" : "b1", 10 | "next" : null 11 | } 12 | } 13 | } 14 | {"key" : "C", 15 | "value" : "c", 16 | "next" : { 17 | "org.apache.pig.test.builtin.recursiveRecord" : { 18 | "key" : "C1", 19 | "value" : "c1", 20 | "next" : { 21 | "org.apache.pig.test.builtin.recursiveRecord" : { 22 | "key" : "C2", 23 | "value" : "c2", 24 | "next" : null 25 | } 26 | } 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/RecordPojo.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "RecordPojo", 3 | "namespace" : "org.apache.pig.builtin.avro.code.java", 4 | "type" : "record", 5 | "doc" : "to test a generated Avro Java class", 6 | "fields" : [ 7 | {"name" : "key", "type" : "string"}, 8 | {"name" : "intValue", "type" : "int"}, 9 | {"name" : "longValue", "type" : "long"}, 10 | {"name" : "booleanValue", "type" : "boolean"}, 11 | {"name" : "floatValue", "type" : "float"}, 12 | {"name" : "doubleValue", "type" : "double"}, 13 | {"name" : "bytesValue", "type" : "bytes"}, 14 | {"name" : "nullValue", "type" : "null"} 15 | ] 16 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/arrays.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "arrays", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "array", 5 | "items" : "int" 6 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/arraysAsOutputByPig.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "record", 3 | "name" : "arrays", 4 | "namespace" : "org.apache.pig.test.builtin", 5 | "fields" : [ { 6 | "name" : "array", 7 | "type" : [ "null", { 8 | "type" : "array", 9 | "items" : { 10 | "type" : "record", 11 | "name" : "array", 12 | "fields" : [ { 13 | "name" : "array_0", 14 | "type" : [ "null", "int" ] 15 | } ] 16 | } 17 | } ] 18 | } ] 19 | } 20 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/nullableArrayInMap.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "nullableRecordInMap", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "value", "type" : "int"}, 8 | { 9 | "name" : "parameters", 10 | "type": { 11 | "type": "map", 12 | "values": [ 13 | "null", 14 | { 15 | "type": "array", 16 | "items": "string" 17 | } 18 | ] 19 | } 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/nullableRecordInMap.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "nullableRecordInMap", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "value", "type" : "int"}, 8 | { 9 | "name" : "parameters", 10 | "type": [ 11 | "null", 12 | { 13 | "type": "map", 14 | "values": [ 15 | "null", 16 | { 17 | "type": "record", 18 | "name": "nullable_record", 19 | "fields": [ 20 | { 21 | "name": "id", 22 | "type": [ 23 | "null", 24 | "string" 25 | ] 26 | } 27 | ] 28 | } 29 | ] 30 | } 31 | ] 32 | } 33 | ] 34 | } 35 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/projectionTest.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "projectionTest", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "intValue", "type" : "int"}, 8 | {"name" : "longValue", "type" : "long"} 9 | ] 10 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/projectionTestWithSchema.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "projectionTestWithSchema", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "intValue", "type" : "int"}, 8 | {"name" : "booleanValue", "type" : "boolean"} 9 | ] 10 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordInMap.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordInMap", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "value", "type" : "int"}, 8 | { 9 | "name" : "parameters", 10 | "type": { 11 | "type": "map", 12 | "values": { 13 | "type": "record", 14 | "name": "A", 15 | "fields": [ 16 | { 17 | "name": "id", 18 | "type": [ 19 | "null", 20 | "int" 21 | ] 22 | } 23 | ] 24 | } 25 | } 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordWithRepeatedSubRecords.avsc: -------------------------------------------------------------------------------- 1 | { "name" : "recordWithRepeatedSubRecords", 2 | "namespace" : "org.apache.pig.test.builtin", 3 | "type" : "record", 4 | "fields" : [ 5 | {"name" : "key" , "type" : "string"}, 6 | {"name" : "value1" , "type" : { 7 | "type" : "record", 8 | "name" : "valuetype", 9 | "fields" : [ 10 | {"name" : "thing", "type" : "string"}, 11 | {"name" : "count", "type" : "int"} 12 | ] 13 | }}, 14 | {"name" : "value2" , "type" : "valuetype"} 15 | ] 16 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/records.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "records", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "intValue", "type" : "int"}, 8 | {"name" : "longValue", "type" : "long"}, 9 | {"name" : "booleanValue", "type" : "boolean"}, 10 | {"name" : "floatValue", "type" : "float"}, 11 | {"name" : "doubleValue", "type" : "double"}, 12 | {"name" : "bytesValue", "type" : "bytes"}, 13 | {"name" : "nullValue", "type" : "null"} 14 | ] 15 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPig.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "records", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : ["null", "string"]}, 7 | {"name" : "intValue", "type" : ["null", "int"]}, 8 | {"name" : "longValue", "type" : ["null", "long"]}, 9 | {"name" : "booleanValue", "type" : ["null", "boolean"]}, 10 | {"name" : "floatValue", "type" : ["null", "float"]}, 11 | {"name" : "doubleValue", "type" : ["null", "double"]}, 12 | {"name" : "bytesValue", "type" : ["null", "bytes"]}, 13 | {"name" : "nullValue", "type" : "null"} 14 | ] 15 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsAsOutputByPigWithDates.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "records", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : ["null", "string"]}, 7 | {"name" : "intValue", "type" : ["null", "int"]}, 8 | {"name" : "longValue", "type" : ["null", "long"]}, 9 | {"name" : "booleanValue", "type" : ["null", "boolean"]}, 10 | {"name" : "floatValue", "type" : ["null", "float"]}, 11 | {"name" : "doubleValue", "type" : ["null", "double"]}, 12 | {"name" : "bytesValue", "type" : ["null", "bytes"]}, 13 | {"name" : "nullValue", "type" : "null"}, 14 | {"name" : "date", "type" : ["null", "long"]} 15 | ] 16 | } 17 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsOfArrays.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsOfArrays", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "values", 8 | "type" : { 9 | "type" : "array", 10 | "items" : "int" 11 | } 12 | } 13 | ] 14 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsOfArraysOfRecords.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsOfArraysOfRecords", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "values", 8 | "type" : { 9 | "type" : "array", 10 | "items" : { 11 | "name" : "innerRecord", 12 | "type" : "record", 13 | "fields" : [ 14 | {"name" : "k", "type" : "string"}, 15 | {"name" : "v", "type" : "int"} 16 | ] 17 | } 18 | } 19 | } 20 | ] 21 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsOfStringArrays.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsOfStringArrays", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "values", 7 | "type" : { 8 | "type" : "array", 9 | "items" : "string" 10 | } 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsSubSchema.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "records", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "doc" : "subset of records schema, to make sure you can manually specify a compatible subschema", 5 | "type" : "record", 6 | "fields" : [ 7 | {"name" : "key", "type" : "string"}, 8 | {"name" : "intValue", "type" : "int"} 9 | ] 10 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsSubSchemaNullable.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsSubSchemaNullable", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "doc" : "subset of records schema, to make sure you can manually specify a compatible subschema", 5 | "type" : "record", 6 | "fields" : [ 7 | {"name" : "key", "type" : ["null", "string"]}, 8 | {"name" : "value", "type" : ["null", "string"]} 9 | ] 10 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsWithDoubleUnderscores.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsWithDoubleUnderscores", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "A__key", "type" : ["null", "string"]}, 7 | {"name" : "B__C__intValue", "type" : ["null", "int"]} 8 | ] 9 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsWithEnums.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsWithEnums", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "value", "type" : "int"}, 8 | {"name" : "type", "type" : 9 | {"type" : "enum", "name" : "typeEnum", "symbols" : ["GOOD","BAD","OTHER"]} 10 | } 11 | ] 12 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsWithFixed.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsWithFixed", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "value", "type" : 8 | {"type" : "fixed", "size" : 8, "name" : "IPv4Address"} 9 | } 10 | ] 11 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsWithMaps.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsWithMaps", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "value", "type" : "int"}, 8 | {"name" : "parameters", "type" : 9 | {"type" : "map", "values" : "string"} 10 | } 11 | ] 12 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsWithMapsOfArrayOfRecords.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsWithMapsOfArrayOfRecords", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "value", "type" : "int"}, 8 | {"name" : "parameters", "type" : 9 | {"type" : "map", 10 | "values" : { 11 | "type" : "array", 12 | "items" : { 13 | "name" : "innerRecord", 14 | "type" : "record", 15 | "fields" : [ 16 | {"name" : "k", "type" : "string"}, 17 | {"name" : "v", "type" : "int"} 18 | ] 19 | } 20 | } 21 | } 22 | } 23 | ] 24 | } 25 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsWithMapsOfRecords.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsWithMapsOfRecords", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "value", "type" : "int"}, 8 | {"name" : "parameters", "type" : 9 | {"type" : "map", "values" : { 10 | "type" : "record", 11 | "name" : "parameterMap", 12 | "fields" : [ 13 | {"name" : "k", "type" : "string"}, 14 | {"name" : "v", "type" : "int"} 15 | ] 16 | } 17 | } 18 | } 19 | ] 20 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsWithNullableUnions.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsWithNullableUnions", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : ["string","null"]}, 7 | {"name" : "value", "type" : ["int","null"]} 8 | ] 9 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnion.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "recordsWithSimpleUnion", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "value", "type" : ["int","long","null"]} 8 | ] 9 | } 10 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recordsWithSimpleUnionOutput.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "records", 3 | "namespace" : "org.apache.pig.test.builtin", 4 | "doc" : "subset of records schema, to make sure you can manually specify a compatible subschema", 5 | "type" : "record", 6 | "fields" : [ 7 | {"name" : "key", "type" : "string"}, 8 | {"name" : "intValue", "type" : "int"} 9 | ] 10 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/recursiveRecord.avsc: -------------------------------------------------------------------------------- 1 | { "name" : "recursiveRecord", 2 | "namespace" : "org.apache.pig.test.builtin", 3 | "type" : "record", 4 | "fields" : [ 5 | {"name" : "key" , "type" : "string"}, 6 | {"name" : "value" , "type" : "string"}, 7 | {"name" : "next" , "type" : [ "org.apache.pig.test.builtin.recursiveRecord" , "null" ]} 8 | ] 9 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/simpleRecordsTrevni.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "simpleRecords", 3 | "namespace" : "org.apache.test.builtin", 4 | "type" : "record", 5 | "fields" : [ 6 | {"name" : "key", "type" : "string"}, 7 | {"name" : "intValue", "type" : "int"}, 8 | {"name" : "stringValue", "type" : "string"}, 9 | {"name" : "doubleValue", "type" : "double"} 10 | ] 11 | } -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/testDirectory.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "record", 3 | "name" : "testdirectory", 4 | "namespace" : "org.apache.pig.test.builtin", 5 | "fields" : [ { 6 | "name" : "item", 7 | "type" : "int" 8 | }, { 9 | "name" : "timestamp", 10 | "type" : "long" 11 | } ] 12 | } 13 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/avro/schema/testDirectoryCounts.avsc: -------------------------------------------------------------------------------- 1 | { 2 | "type" : "record", 3 | "name" : "stats", 4 | "namespace" : "org.apache.pig.test.builtin", 5 | "fields" : [ { 6 | "name" : "itemSum", 7 | "type" : [ "null", "int" ] 8 | }, { 9 | "name" : "n", 10 | "type" : [ "null", "int" ] 11 | } ] 12 | } 13 | -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/orc/charvarchar.orc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/builtin/orc/charvarchar.orc -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/orc/datetype.orc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/builtin/orc/datetype.orc -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/orc/nullmapkey.orc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/builtin/orc/nullmapkey.orc -------------------------------------------------------------------------------- /test/org/apache/pig/builtin/orc/orc-file-11-format.orc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/builtin/orc/orc-file-11-format.orc -------------------------------------------------------------------------------- /test/org/apache/pig/parser/TestAST.pig: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | A = LOAD 'source.txt' USING org.apache.pig.builtin.TextLoader() AS (a:int, b:long, c:chararray); 20 | B = FOREACH A generate $0 * 5, b, $2; 21 | C = FILTER B by a > 100; 22 | D = LIMIT C 400; 23 | STORE D into 'output.txt'; -------------------------------------------------------------------------------- /test/org/apache/pig/parser/TestDefaultDataTypeInserter.pig: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | A = load 'xx' as ( uname, vname, w:tuple(z, zz) ); 20 | store A into 'yy'; 21 | 22 | B = load 'z' as ass; -------------------------------------------------------------------------------- /test/org/apache/pig/test/PigExecTestCase.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ConfFile1.txt: -------------------------------------------------------------------------------- 1 | date="20080228" 2 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ConfFile2.txt: -------------------------------------------------------------------------------- 1 | destination='\'/user/kaleidoscope/pow_stats/20080228/acct/InactiveAcct\'' 2 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ConfFile3.txt: -------------------------------------------------------------------------------- 1 | destination='this shud be skipped' -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ConfFileComplexVal.txt: -------------------------------------------------------------------------------- 1 | storefile = /user/pig/tests/results/DefineClause_4.out 2 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ConfFileDuplicates.txt: -------------------------------------------------------------------------------- 1 | destination='\'/user/kaleidoscope/pow_stats/20080228/acct/InactiveAcct\'' 2 | date = 'this is to be skipped' 3 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ConfFileSameParamMultipleTimes.txt: -------------------------------------------------------------------------------- 1 | date = 'skip this' 2 | date = 20080228 3 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ConfFileWithEmptyComments.txt: -------------------------------------------------------------------------------- 1 | date = '20080228' 2 | 3 | #this is a comment line 4 | 5 | key1 = 'value1' 6 | 7 | #this is also a comment line 8 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ConfFileWithInvalidLines.txt: -------------------------------------------------------------------------------- 1 | date = '20080228' 2 | this is an invalid line 3 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ConfFileWithValidLines.txt: -------------------------------------------------------------------------------- 1 | date = '20080228' 2 | destination=/user/kaleidoscope/pow_stats/20080228/acct/InactiveAcct 3 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan1.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOSort; 3 | LOSort [limit="100"]; 4 | LOSort -> LOStore; 5 | } 6 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan10.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOLimit; 3 | LOLimit [limit="100"]; 4 | LOLimit -> LOForEach; 5 | LOForEach [hasflat="false"]; 6 | LOForEach -> LOCogroup; 7 | LOCogroup -> LOStore; 8 | } 9 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan2.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOLimit; 3 | LOLimit [limit="10"]; 4 | LOLimit -> LOStore; 5 | } 6 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan3.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOLimit; 3 | LOLimit [limit="100"]; 4 | LOLimit -> LOCross; 5 | LOLoad -> LOLimit; 6 | LOLimit [limit="100"]; 7 | LOLimit -> LOCross; 8 | LOCross -> LOLimit; 9 | LOLimit [limit="100"]; 10 | LOLimit -> LOStore; 11 | } 12 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan4.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOCogroup; 3 | LOCogroup -> LOForEach; 4 | LOForEach [hasflat="true"]; 5 | LOForEach -> LOLimit; 6 | LOLimit [limit="100"]; 7 | LOLimit -> LOStore; 8 | } 9 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan5.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOLimit; 3 | LOLimit [limit="100"]; 4 | LOLimit -> LOForEach; 5 | LOForEach [hasflat="false"]; 6 | LOForEach -> LOStore; 7 | } 8 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan6.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOLimit; 3 | LOLimit [limit="20"]; 4 | LOLimit -> LOStore; 5 | } 6 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan7.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOForEach; 3 | LOForEach [hasflat="true"]; 4 | LOForEach -> LOLimit; 5 | LOLimit [limit="100"]; 6 | LOLimit -> LOStore; 7 | } 8 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan8.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOSort; 3 | LOSort [limit="10"]; 4 | LOSort -> LOStore; 5 | } 6 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/new-optlimitplan9.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad -> LOSort; 3 | LOSort [limit="10"]; 4 | LOSort -> LOStore; 5 | } 6 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan1.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad18 -> LOSort20; 3 | LOSort20 [limit="100"]; 4 | } 5 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan10.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad2061 -> LOLimit2062; 3 | LOLimit2062 [limit="100"]; 4 | LOLimit2062 -> LOForEach2067; 5 | LOForEach2067 [hasflat="false"]; 6 | LOForEach2067 -> LOCogroup2064; 7 | } 8 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan12.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad2082 -> LOStream2083; 3 | LOStream2083 -> LOLimit2084; 4 | LOLimit2084 [limit="10"]; 5 | } 6 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan2.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad22 -> LOLimit23; 3 | LOLimit23 [limit="10"]; 4 | } 5 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan3.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad25 -> LOLimit29; 3 | LOLimit29 [limit="100"]; 4 | LOLimit29 -> LOCross27; 5 | LOLoad26 -> LOLimit30; 6 | LOLimit30 [limit="100"]; 7 | LOLimit30 -> LOCross27; 8 | LOCross27 -> LOLimit28; 9 | LOLimit28 [limit="100"]; 10 | } 11 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan4.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad2029 -> LOCogroup2031; 3 | LOCogroup2031 -> LOForEach2035; 4 | LOForEach2035 [hasflat="true"]; 5 | LOForEach2035 -> LOLimit2036; 6 | LOLimit2036 [limit="100"]; 7 | } 8 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan5.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad2037 -> LOLimit2042; 3 | LOLimit2042 [limit="100"]; 4 | LOLimit2042 -> LOForEach2041; 5 | LOForEach2041 [hasflat="false"]; 6 | } 7 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan6.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad2043 -> LOLimit2044; 3 | LOLimit2044 [limit="20"]; 4 | } 5 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan7.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad2047 -> LOForEach2051; 3 | LOForEach2051 [hasflat="true"]; 4 | LOForEach2051 -> LOLimit2052; 5 | LOLimit2052 [limit="100"]; 6 | } 7 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan8.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad2053 -> LOSort2055; 3 | LOSort2055 [limit="-1"]; 4 | LOSort2055 -> LOLimit2056; 5 | LOLimit2056 [limit="10"]; 6 | } 7 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optlimitplan9.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | LOLoad2057 -> LOSort2059; 3 | LOSort2059 [limit="10"]; 4 | } 5 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/optplan1.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | graph [pigScript=" A = load 'myfile' as (p:int, q:long, r:float, s:double, t:map[], u:tuple (x:int, y:int), v:bag {tuple(int:z)}); B = group A by p; C = foreach B generate $0, COUNT($1);" ] ; 3 | 4 | load [key="0", type="LOLoad" , schema= "p: bytearray,q: bytearray,r: bytearray,s: bytearray,t: bytearray ,u: bytearray,v: bytearray"] ; 5 | typecast [ key="23", type="LOForEach", schema= "p: int,q: long,r: float,s: double,t: map[] ,u: tuple(x: int,y: int),v: bag {x: tuple (z: int)}"] ; 6 | order [key="2", type="LOSort", schema= "p: int,q: long,r: float,s: double,t: map[] ,u: tuple(x: int,y: int),v: bag {x: tuple (z: int)}"] ; 7 | 8 | load -> typecast -> order ; 9 | } 10 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/plan1.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | graph [pigScript=" A = LOAD 'tmp' ; B = DISTINCT A ; "] ; 3 | 4 | node [schema="field1: int, field2: float, field3: chararray"] ; 5 | 6 | load [key="10", type="LOLoad"] ; 7 | distinct [key="12", type="LODistinct"] ; 8 | 9 | load -> distinct ; 10 | } -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/testScript1.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | graph [pigScript=" A = LOAD 'tmp' as (field1: int, field2: float, field3: chararray ) ; B = DISTINCT A ; "] ; 3 | 4 | node [schema="field1: int, field2: float, field3: chararray"] ; 5 | 6 | load [key="10", type="LOLoad"] ; 7 | distinct [key="20", type="LODistinct"] ; 8 | 9 | load -> distinct ; 10 | } -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/testScript2.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | graph [pigScript=" A = LOAD 'tmp' ; B = DISTINCT A ; "] ; 3 | 4 | load [key="10", type="LOLoad"] ; 5 | distinct [key="20", type="LODistinct"] ; 6 | 7 | load -> distinct ; 8 | } -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/testScript3.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | graph [pigScript=" a = load 'a' as (field1: long, field2: tuple(inner1 : bytearray, inner2 : float) ) ; 3 | b = group a by field2; "] ; 4 | 5 | load [key="10", type="LOLoad", schema="field1: long, field2: tuple(inner1 : bytearray, inner2 : float)"] ; 6 | group [key="20", type="LOCogroup" , schema="group: chararray,a: bag{ tuple1:tuple(field1: long,field2: tuple(inner1: bytearray,inner2: integer))}"] ; 7 | 8 | load -> group ; 9 | } -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/testScript4.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | graph [pigScript=" a = load 'a' as (field1: int, field2: long); 3 | b = load 'a' as (field1: bytearray, field2: double); 4 | c = group a by (field1,field2) , b by (field1,field2) ; "] ; 5 | 6 | load1 [key="10", type="LOLoad", schema="field1: int, field2: long"] ; 7 | load2 [key="15", type="LOLoad", schema="field1: bytearray, field2: double"] ; 8 | group [key="20", type="LOCogroup" , schema="group2: tuple([NoAlias]:int, [NoAlias]:double) , 9 | a: bag{tuple1:tuple(field1: int,field2: long)}, 10 | b: bag{tuple1:tuple(field1: bytearray,field2: double)} "] ; 11 | 12 | load1 -> group ; 13 | load2 -> group ; 14 | } 15 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/testScript5.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | graph [pigScript=" a = load 'a' as (field1: long, field2: tuple(inner1 : bytearray, inner2 : float) ) ; 3 | b = FOREACH a GENERATE field1*field1 ;"] ; 4 | 5 | load [key="10", type="LOLoad", schema="field1: long, field2: tuple(inner1 : bytearray, inner2 : float)"] ; 6 | foreach [key="20", type="LOForEach" , schema="[NoAlias] : long"] ; 7 | 8 | load -> foreach ; 9 | } 10 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/DotFiles/testScript6.dot: -------------------------------------------------------------------------------- 1 | digraph graph1 { 2 | graph [pigScript=" a = load 'a' as (name: chararray, details: tuple(age, gpa), field3: tuple(a,b)); 3 | e = foreach a generate name, details.(age, gpa), field3.(a,b) ; "] ; 4 | 5 | load1 [key="10", type="LOLoad", schema="name: chararray, details: tuple(age, gpa), field3: tuple(a,b)"] ; 6 | foreach1 [key="15", type="LOForEach", schema="name: chararray,details: tuple(age: bytearray,gpa: bytearray),field3: tuple(a: bytearray,b: bytearray)"] ; 7 | 8 | load1 -> foreach1 ; 9 | } 10 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ExpectedResult3.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | register /data/pigudf.jar; 20 | 21 | aa = load '/user/pig/tests/data/singlefile/textdoc.txt ' using PigStorage('\x01'); 22 | bb = filter aa by (ARITY == '16') and ( $4 eq '' or $4 eq 'NULL' or $4 eq 'ss') parallel 400; 23 | a = foreach bb generate $0,$12,$7; 24 | store inactiveAccounts into '/user/pig/tests/results/DefineClause_4.out'; 25 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/ExpectedResultDollarSign.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | a = load 'data'; 20 | b = filter by ($0 == 'x') and ($1 == 'y'); 21 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/Arithmetic.gld: -------------------------------------------------------------------------------- 1 | A: Store() 2 | | 3 | |---A: New For Each(false,false,false)[bag] - scope-64 4 | | | 5 | | Add[double] - scope-51 6 | | | 7 | | |---Add[double] - scope-48 8 | | | | 9 | | | |---Cast[double] - scope-45 10 | | | | | 11 | | | | |---Project[bytearray][0] - scope-44 12 | | | | 13 | | | |---Cast[double] - scope-47 14 | | | | 15 | | | |---Project[bytearray][1] - scope-46 16 | | | 17 | | |---Cast[double] - scope-50 18 | | | 19 | | |---Constant(5) - scope-49 20 | | | 21 | | Subtract[int] - scope-60 22 | | | 23 | | |---Subtract[int] - scope-57 24 | | | | 25 | | | |---Cast[int] - scope-55 26 | | | | | 27 | | | | |---Project[bytearray][0] - scope-54 28 | | | | 29 | | | |---Constant(5) - scope-56 30 | | | 31 | | |---Cast[int] - scope-59 32 | | | 33 | | |---Project[bytearray][1] - scope-58 34 | | | 35 | | Constant(hello) - scope-63 36 | | 37 | |---test-11: Load() 38 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/BinCond.gld: -------------------------------------------------------------------------------- 1 | A: Store() 2 | | 3 | |---A: New For Each(false)[bag] - scope-106 4 | | | 5 | | POBinCond[double] - scope-100 6 | | | 7 | | |---Equal To[boolean] - scope-89 8 | | | | 9 | | | |---Cast[chararray] - scope-87 10 | | | | | 11 | | | | |---Project[bytearray][1] - scope-86 12 | | | | 13 | | | |---Constant(3) - scope-88 14 | | | 15 | | |---Add[double] - scope-94 16 | | | | 17 | | | |---Cast[double] - scope-91 18 | | | | | 19 | | | | |---Project[bytearray][2] - scope-90 20 | | | | 21 | | | |---Cast[double] - scope-93 22 | | | | 23 | | | |---Project[bytearray][3] - scope-92 24 | | | 25 | | |---Subtract[double] - scope-99 26 | | | 27 | | |---Cast[double] - scope-96 28 | | | | 29 | | | |---Project[bytearray][2] - scope-95 30 | | | 31 | | |---Cast[double] - scope-98 32 | | | 33 | | |---Project[bytearray][3] - scope-97 34 | | 35 | |---test-15: Load() 36 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/Comparison.gld: -------------------------------------------------------------------------------- 1 | A: Store() 2 | | 3 | |---A: Filter[bag] - scope-67 4 | | | 5 | | Greater Than[boolean] - scope-83 6 | | | 7 | | |---Add[double] - scope-72 8 | | | | 9 | | | |---Cast[double] - scope-69 10 | | | | | 11 | | | | |---Project[bytearray][0] - scope-68 12 | | | | 13 | | | |---Cast[double] - scope-71 14 | | | | 15 | | | |---Project[bytearray][1] - scope-70 16 | | | 17 | | |---Multiply[double] - scope-82 18 | | | 19 | | |---Subtract[double] - scope-77 20 | | | | 21 | | | |---Cast[double] - scope-74 22 | | | | | 23 | | | | |---Project[bytearray][0] - scope-73 24 | | | | 25 | | | |---Cast[double] - scope-76 26 | | | | 27 | | | |---Project[bytearray][1] - scope-75 28 | | | 29 | | |---Cast[double] - scope-81 30 | | | 31 | | |---Divide[int] - scope-80 32 | | | 33 | | |---Constant(4) - scope-78 34 | | | 35 | | |---Constant(2) - scope-79 36 | | 37 | |---test-13: Load() 38 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/ComplexForeach.gld: -------------------------------------------------------------------------------- 1 | C: Store() 2 | | 3 | |---C: New For Each(false)[bag] - scope-7 4 | | | 5 | | RelationToExpressionProject[bag][*] - scope-1 6 | | | 7 | | |---B: Filter[bag] - scope-3 8 | | | | 9 | | | Equal To[boolean] - scope-6 10 | | | | 11 | | | |---Project[bytearray][1] - scope-4 12 | | | | 13 | | | |---Project[bytearray][2] - scope-5 14 | | | 15 | | |---Project[bag][0] - scope-2 16 | | 17 | |---test-0: Load() 18 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/Distinct.gld: -------------------------------------------------------------------------------- 1 | test-7: Store() 2 | | 3 | |---test-6: PODistinct[bag] - scope-14 4 | | 5 | |---test-5: Load() 6 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/IsNull1.gld: -------------------------------------------------------------------------------- 1 | y: Filter[bag] - scope-170 2 | | | 3 | | Not[boolean] - scope-173 4 | | | 5 | | |---POIsNull[boolean] - scope-172 6 | | | 7 | | |---Project[bytearray][0] - scope-171 8 | | 9 | |---test-27: Split - scope-169 10 | | 11 | |---test-26: Load() 12 | 13 | x: Store() 14 | | 15 | |---x: Filter[bag] - scope-174 16 | | | 17 | | POIsNull[boolean] - scope-176 18 | | | 19 | | |---Project[bytearray][0] - scope-175 20 | | 21 | |---test-27: Split - scope-169 22 | | 23 | |---test-26: Load() 24 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/IsNull2.gld: -------------------------------------------------------------------------------- 1 | Filter[tuple] - Test-Plan-Builder-258 2 | | | 3 | | Not[boolean] - Test-Plan-Builder-261 4 | | | 5 | | |---POIsNull[tuple] - Test-Plan-Builder-260 6 | | | 7 | | |---Project[bytearray][0] - Test-Plan-Builder-259 8 | | 9 | |---Split - Test-Plan-Builder-257 10 | | 11 | |---Load(a:org.apache.pig.builtin.PigStorage) - Test-Plan-Builder-256 12 | 13 | Filter[tuple] - Test-Plan-Builder-262 14 | | | 15 | | POIsNull[tuple] - Test-Plan-Builder-264 16 | | | 17 | | |---Project[bytearray][0] - Test-Plan-Builder-263 18 | | 19 | |---Split - Test-Plan-Builder-257 20 | | 21 | |---Load(a:org.apache.pig.builtin.PigStorage) - Test-Plan-Builder-256 22 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/Limit.gld: -------------------------------------------------------------------------------- 1 | test-31: Store() 2 | | 3 | |---test-30: Limit - scope-179 4 | | 5 | |---test-29: Load() 6 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/MRC1.gld: -------------------------------------------------------------------------------- 1 | MapReduce(-1) - -3: 2 | | Store(DummyFil:DummyLdr) - -5515425171581967372 3 | | | 4 | | |---Filter[tuple] - --6061281703859425960 5 | | | | 6 | | | Constant(true) - --3396897091865664764 7 | | | 8 | | |---Package(Packager)[tuple]{Unknown} - --5758282087831209061 9 | | Local Rearrange[tuple]{Unknown}(false) - -3709512757404691843 10 | | | 11 | | |---Load(file:/tmp/temp-1456742965/tmp2077335416:org.apache.pig.impl.io.InterStorage) - -2 12 | | 13 | |---MapReduce(-1) - -0: 14 | | Store(file:/tmp/temp-1456742965/tmp2077335416:org.apache.pig.impl.io.InterStorage) - -1 15 | | | 16 | | |---Package(Packager)[tuple]{Unknown} - --2057425961601007773 17 | | Local Rearrange[tuple]{Unknown}(false) - --8361563503038121624 18 | | | 19 | | |---Load(DummyFil:DummyLdr) - -7506868571066332964 20 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/MRC12.gld: -------------------------------------------------------------------------------- 1 | MapReduce(-1) - -6: 2 | | Store(DummyFil:DummyLdr) - --1596982214453270401 3 | | | 4 | | |---Package(Packager)[tuple]{Unknown} - -2312201225366906989 5 | | Union[tuple] - -7 6 | | | 7 | | |---Local Rearrange[tuple]{Unknown}(false) - --4071762447953696591 8 | | | | 9 | | | |---Filter[tuple] - --6487150145665307346 10 | | | | | 11 | | | | Constant(true) - -7123161826157220327 12 | | | | 13 | | | |---Load(file:/tmp/temp-1456742965/tmp2077335416:org.apache.pig.impl.io.InterStorage) - -2 14 | | | 15 | | |---Local Rearrange[tuple]{Unknown}(false) - --3509976263222494134 16 | | | 17 | | |---Filter[tuple] - -340188275237520979 18 | | | | 19 | | | Constant(true) - --5941754500044119766 20 | | | 21 | | |---Load(file:/tmp/temp-1456742965/tmp2077335416:org.apache.pig.impl.io.InterStorage) - -4 22 | | 23 | |---MapReduce(-1) - -0: 24 | Reduce Plan Empty 25 | | Store(file:/tmp/temp-1456742965/tmp2077335416:org.apache.pig.impl.io.InterStorage) - -1 26 | | | 27 | | |---Load(DummyFil:DummyLdr) - -2626971498845605352 28 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/MRC17.gld: -------------------------------------------------------------------------------- 1 | MapReduce(1) - -0: 2 | | Store(DummyFil:DummyLdr) - --2731291429733866515 3 | | | 4 | | |---Limit - -6 5 | | | 6 | | |---New For Each(true)[bag] - -5 7 | | | | 8 | | | Project[tuple][1] - -4 9 | | | 10 | | |---Package(Packager)[tuple]{tuple} - -3 11 | | Local Rearrange[tuple]{tuple}(false) - -2 12 | | | | 13 | | | Project[tuple][*] - -1 14 | | | 15 | | |---Limit - --43001471365805096 16 | | | 17 | | |---Load(DummyFil:DummyLdr) - -5534705358975373945 18 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/MRC19.gld: -------------------------------------------------------------------------------- 1 | MapReduce(1) - -0: 2 | | Store(DummyFil:DummyLdr) - -1662763901266102631 3 | | | 4 | | |---New For Each(false)[tuple] - -6357361387299749270 5 | | | | 6 | | | POSortedDistinct[tuple] - -1793365165218576787 7 | | | 8 | | |---Package(Packager)[tuple]{Unknown} - --3258087883799592471 9 | | Local Rearrange[tuple]{Unknown}(false) - --8083579488061691196 10 | | | 11 | | |---Load(DummyFil:DummyLdr) - -698333249886773960 -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/MRC2.gld: -------------------------------------------------------------------------------- 1 | MapReduce(-1) - -2: 2 | Reduce Plan Empty 3 | | Store(DummyFil:DummyLdr) - --2626287810923037076 4 | | | 5 | | |---Union[tuple] - --5768272326302808468 6 | | | 7 | | |---Load(file:/tmp/temp-1456742965/tmp2077335416:org.apache.pig.impl.io.InterStorage) - -3 8 | | | 9 | | |---Load(file:/tmp/temp-1456742965/tmp-26634357:org.apache.pig.impl.io.InterStorage) - -5 10 | | 11 | |---MapReduce(-1) - -0: 12 | | | Store(file:/tmp/temp-1456742965/tmp2077335416:org.apache.pig.impl.io.InterStorage) - -4 13 | | | | 14 | | | |---Package(Packager)[tuple]{Unknown} - --2829086180578157275 15 | | | Local Rearrange[tuple]{Unknown}(false) - -6435233330554227045 16 | | | | 17 | | | |---Load(DummyFil:DummyLdr) - --4168060277593001906 18 | | 19 | |---MapReduce(-1) - -1: 20 | | Store(file:/tmp/temp-1456742965/tmp-26634357:org.apache.pig.impl.io.InterStorage) - -6 21 | | | 22 | | |---Package(Packager)[tuple]{Unknown} - -7483213803049293823 23 | | Local Rearrange[tuple]{Unknown}(false) - --5190071275724378681 24 | | | 25 | | |---Load(DummyFil:DummyLdr) - --6957591191795645940 26 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/MRC5.gld: -------------------------------------------------------------------------------- 1 | MapReduce(-1) - -2: 2 | Reduce Plan Empty 3 | | Store(DummyFil:DummyLdr) - --8512881738335808286 4 | | | 5 | | |---Union[tuple] - -6693653468874366867 6 | | | 7 | | |---Filter[tuple] - -8515950928528386562 8 | | | | | 9 | | | | Constant(true) - -913122466036599874 10 | | | | 11 | | | |---Load(DummyFil:DummyLdr) - --203604194309414000 12 | | | 13 | | |---Filter[tuple] - -8554221887998033529 14 | | | | 15 | | | Constant(true) - --3347320220748403847 16 | | | 17 | | |---Load(DummyFil:DummyLdr) - -5969405952749301492 -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/MRC9.gld: -------------------------------------------------------------------------------- 1 | MapReduce(-1) - -2: 2 | | Store(DummyFil:DummyLdr) - -7714111612268358662 3 | | | 4 | | |---Package(Packager)[tuple]{Unknown} - --1613182091613226659 5 | | Union[tuple] - -3 6 | | | 7 | | |---Filter[tuple] - -5165956429696944631 8 | | | | | 9 | | | | Constant(true) - -5321755951016030071 10 | | | | 11 | | | |---Load(DummyFil:DummyLdr) - -2197807331204639125 12 | | | 13 | | |---Filter[tuple] - -6139496040975471496 14 | | | | 15 | | | Constant(true) - --8447156979210379761 16 | | | 17 | | |---Load(DummyFil:DummyLdr) - -5878058249424113280 -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/Sort.gld: -------------------------------------------------------------------------------- 1 | test-4: Store() 2 | | 3 | |---test-3: POSort[bag]() - scope-11 4 | | | 5 | | Project[bytearray][0] - scope-10 6 | | 7 | |---test-2: Load() 8 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/Split1.gld: -------------------------------------------------------------------------------- 1 | y: Filter[bag] - scope-157 2 | | | 3 | | Greater Than[boolean] - scope-161 4 | | | 5 | | |---Cast[chararray] - scope-159 6 | | | | 7 | | | |---Project[bytearray][0] - scope-158 8 | | | 9 | | |---Constant(7) - scope-160 10 | | 11 | |---test-24: Split - scope-156 12 | | 13 | |---test-23: Load() 14 | 15 | x: Store() 16 | | 17 | |---x: Filter[bag] - scope-162 18 | | | 19 | | Less Than[boolean] - scope-166 20 | | | 21 | | |---Cast[chararray] - scope-164 22 | | | | 23 | | | |---Project[bytearray][0] - scope-163 24 | | | 25 | | |---Constant(7) - scope-165 26 | | 27 | |---test-24: Split - scope-156 28 | | 29 | |---test-23: Load() 30 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/Split2.gld: -------------------------------------------------------------------------------- 1 | Filter[tuple] - Test-Plan-Builder-240 2 | | | 3 | | Less Than[boolean] - Test-Plan-Builder-243 4 | | | 5 | | |---Project[bytearray][0] - Test-Plan-Builder-241 6 | | | 7 | | |---Constant(7) - Test-Plan-Builder-242 8 | | 9 | |---Split - Test-Plan-Builder-239 10 | | 11 | |---Load(a:org.apache.pig.builtin.PigStorage) - Test-Plan-Builder-238 12 | 13 | Filter[tuple] - Test-Plan-Builder-244 14 | | | 15 | | Greater Than[boolean] - Test-Plan-Builder-247 16 | | | 17 | | |---Project[bytearray][0] - Test-Plan-Builder-245 18 | | | 19 | | |---Constant(7) - Test-Plan-Builder-246 20 | | 21 | |---Split - Test-Plan-Builder-239 22 | | 23 | |---Load(a:org.apache.pig.builtin.PigStorage) - Test-Plan-Builder-238 24 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/Union.gld: -------------------------------------------------------------------------------- 1 | A: Store() 2 | | 3 | |---A: Union[bag] - scope-153 4 | | 5 | |---test-19: Load() 6 | | 7 | |---test-20: Load() 8 | | 9 | |---test-21: Load() 10 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/jsTst3: -------------------------------------------------------------------------------- 1 | YPOODAGXEI,414 2 | OFWIXPNXJT,66 3 | KARRADPURE,305 4 | DTDPRBHLMH,19 5 | ADTXAGCZMH,172 6 | ULXMCNLRTE,449 7 | XZVAEEOCBF,214 8 | OKQPSAECSO,79 9 | XZIAJTPDEG,208 10 | TWFPATFMDB,307 11 | BQRDTLNRRN,157 12 | PNCMXJEGWU,440 13 | HWXVZZWVLW,93 14 | JJZLFNBXMZ,28 15 | SWROITWBRN,422 16 | GSGYGBZWMC,395 17 | RUUQJWYYXK,231 18 | HYZPWBFDEW,27 19 | DADHTIJBJU,13 20 | CUQHDLCNBQ,55 21 | MUXNTVANKS,377 22 | SRYEAIINHM,120 23 | ZCMAFXDCWC,477 24 | XMMNCYRSTK,175 25 | DMGLDTTNHN,15 26 | CCOXHORRTC,467 27 | IXKDFGECTL,394 28 | QIMXFQWPRX,58 29 | IMIGEEZXGX,48 30 | TVVEZUKEJX,207 31 | TWBRTCTJAU,484 32 | MAZPENXFJO,195 33 | NSWQJVIFRC,104 34 | OZDCZGJTTJ,295 35 | UHEZYGKTZU,232 36 | OYELBXNCTV,237 37 | TOWCLBYFDM,471 38 | HEOTEHYHXV,319 39 | BTQRUNOTPW,425 40 | YMFZNIUOMA,98 41 | FQPNSPUSAV,135 42 | WPNQFEFFCF,336 43 | OAUCJXFPMC,489 44 | XPYFBSVAZL,76 45 | TMXDXKBGDY,90 46 | SXHGTBGQYA,233 47 | BHVMQYNWJS,247 48 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/jsTst4: -------------------------------------------------------------------------------- 1 | ACEIXTCBOW,925 2 | EILBSMSUKV,959 3 | WIAZAYWLEI,809 4 | UTBSWQZACZ,827 5 | YQADCKFKUL,977 6 | VTMPACSASV,950 7 | DNFLELBCFY,829 8 | KKRLLORICZ,919 9 | VCQVFKTVSR,900 10 | IHTBBKZVBP,964 11 | JOTXNRVLSJ,920 12 | YISDNQVNLH,871 13 | TYZSOUDSMT,830 14 | KTCQNWGZCI,857 15 | IHCDPTBTMZ,869 16 | AWFCKJLFWT,968 17 | TDVUDCTMPK,943 18 | QCMEVUXQNI,811 19 | QFYGHDGYAT,904 20 | GDMDOZUFYB,815 21 | KQNVQUCMHP,921 22 | MCZLCFWGMF,854 23 | KZMOHJNKSM,885 24 | LHBPGFAJGI,958 25 | BIPGPJWDCI,860 26 | OFWIXPNXJT,66 27 | DTDPRBHLMH,19 28 | ADTXAGCZMH,172 29 | OKQPSAECSO,79 30 | BQRDTLNRRN,157 31 | HWXVZZWVLW,93 32 | JJZLFNBXMZ,28 33 | HYZPWBFDEW,27 34 | DADHTIJBJU,13 35 | CUQHDLCNBQ,55 36 | SRYEAIINHM,120 37 | XMMNCYRSTK,175 38 | DMGLDTTNHN,15 39 | QIMXFQWPRX,58 40 | IMIGEEZXGX,48 41 | MAZPENXFJO,195 42 | NSWQJVIFRC,104 43 | YMFZNIUOMA,98 44 | FQPNSPUSAV,135 45 | XPYFBSVAZL,76 46 | TMXDXKBGDY,90 47 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/spark/SPARKC-LoadStore-1-text.gld: -------------------------------------------------------------------------------- 1 | #-------------------------------------------------- 2 | # Spark Plan 3 | #-------------------------------------------------- 4 | 5 | Spark node scope-18 6 | a: Store(file:///tmp/pigoutput:org.apache.pig.builtin.PigStorage) - scope-8 7 | | 8 | |---a: New For Each(false,false)[bag] - scope-7 9 | | | 10 | | Cast[int] - scope-2 11 | | | 12 | | |---Project[bytearray][0] - scope-1 13 | | | 14 | | Cast[int] - scope-5 15 | | | 16 | | |---Project[bytearray][1] - scope-4 17 | | 18 | |---a: Load(file:///tmp/input:org.apache.pig.builtin.PigStorage) - scope-0-------- 19 | 20 | Spark node scope-19 21 | b: Store(file:///tmp/pigoutput1:org.apache.pig.builtin.PigStorage) - scope-17 22 | | 23 | |---b: New For Each(false,false)[bag] - scope-16 24 | | | 25 | | Cast[int] - scope-11 26 | | | 27 | | |---Project[bytearray][0] - scope-10 28 | | | 29 | | Cast[int] - scope-14 30 | | | 31 | | |---Project[bytearray][1] - scope-13 32 | | 33 | |---b: Load(file:///tmp/pigoutput:org.apache.pig.builtin.PigStorage) - scope-9-------- 34 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/tez/TEZC-Limit-1.gld: -------------------------------------------------------------------------------- 1 | #-------------------------------------------------- 2 | # There are 1 DAGs in the session 3 | #-------------------------------------------------- 4 | #-------------------------------------------------- 5 | # TEZ DAG plan: pig-0_scope-0 6 | #-------------------------------------------------- 7 | Tez vertex scope-10 -> Tez vertex scope-12, 8 | Tez vertex scope-12 9 | 10 | Tez vertex scope-10 11 | # Plan on vertex 12 | POValueOutputTez - scope-11 -> [scope-12] 13 | | 14 | |---b: Limit - scope-1 15 | | 16 | |---a: Load(file:///tmp/input:org.apache.pig.builtin.PigStorage) - scope-0 17 | Tez vertex scope-12 18 | # Plan on vertex 19 | c: Store(file:///tmp/pigoutput:org.apache.pig.builtin.PigStorage) - scope-9 20 | | 21 | |---c: New For Each(false)[bag] - scope-8 22 | | | 23 | | Project[int][0] - scope-6 24 | | 25 | |---a: New For Each(false)[bag] - scope-5 26 | | | 27 | | Cast[int] - scope-3 28 | | | 29 | | |---Project[bytearray][0] - scope-2 30 | | 31 | |---b: Limit - scope-14 32 | | 33 | |---POValueInputTez - scope-13 <- scope-10 34 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/tez/TEZC-Rank-1.gld: -------------------------------------------------------------------------------- 1 | #-------------------------------------------------- 2 | # There are 1 DAGs in the session 3 | #-------------------------------------------------- 4 | #-------------------------------------------------- 5 | # TEZ DAG plan: pig-0_scope-0 6 | #-------------------------------------------------- 7 | Tez vertex scope-11 -> Tez vertex scope-12,Tez vertex scope-14, 8 | Tez vertex scope-12 -> Tez vertex scope-14, 9 | Tez vertex scope-14 10 | 11 | Tez vertex scope-11 12 | # Plan on vertex 13 | POCounterTez - scope-8 -> scope-14,scope-12 14 | | 15 | |---a: New For Each(false,false)[bag] - scope-7 16 | | | 17 | | Cast[int] - scope-2 18 | | | 19 | | |---Project[bytearray][0] - scope-1 20 | | | 21 | | Cast[int] - scope-5 22 | | | 23 | | |---Project[bytearray][1] - scope-4 24 | | 25 | |---a: Load(file:///tmp/input1:org.apache.pig.builtin.PigStorage) - scope-0 26 | Tez vertex scope-12 27 | # Plan on vertex 28 | PORankStatsTez - scope-13 <- scope-11 -> scope-14 29 | Tez vertex scope-14 30 | # Plan on vertex 31 | b: Store(file:///tmp/pigoutput/d:org.apache.pig.builtin.PigStorage) - scope-10 32 | | 33 | |---PORankTez - scope-9 <- scope-11,scope-12 34 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/GoldenFiles/tez/TEZC-Stream-1.gld: -------------------------------------------------------------------------------- 1 | #-------------------------------------------------- 2 | # There are 1 DAGs in the session 3 | #-------------------------------------------------- 4 | #-------------------------------------------------- 5 | # TEZ DAG plan: pig-0_scope-0 6 | #-------------------------------------------------- 7 | Tez vertex scope-10 8 | 9 | Tez vertex scope-10 10 | # Plan on vertex 11 | b: Store(file:///tmp/pigoutput:org.apache.pig.builtin.PigStorage) - scope-9 12 | | 13 | |---b: POStream[stream.pl -n 5 (stdin-org.apache.pig.builtin.PigStreaming/stdout-org.apache.pig.builtin.PigStreaming)] - scope-8 14 | | 15 | |---a: New For Each(false,false)[bag] - scope-7 16 | | | 17 | | Cast[int] - scope-2 18 | | | 19 | | |---Project[bytearray][0] - scope-1 20 | | | 21 | | Cast[int] - scope-5 22 | | | 23 | | |---Project[bytearray][1] - scope-4 24 | | 25 | |---a: Load(file:///tmp/input:PigStorage(',')) - scope-0 26 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/InputFiles/jsTst5.txt: -------------------------------------------------------------------------------- 1 | asldfkj, 1 2 | qweroj, 2 3 | zxcvlkjwer, 3 4 | xcovij, 2 5 | woi, 1 6 | asdlfkj, 1 7 | asdlkj, 2 8 | asdklfhqweur, 3 9 | zxcvoiu, 2 10 | zxcpiou, 1 11 | lkjqwer, 3 12 | xcviop, 2 13 | xcvpiouwer, 1 14 | zxcvju, 3 15 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/TestIllustrateInput.txt: -------------------------------------------------------------------------------- 1 | 4 6 2 | 3 1 3 | 5 7 4 | 1 4 5 | 0 9 6 | 7 8 7 | 10 9 8 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/TestIllustrateInput2.txt: -------------------------------------------------------------------------------- 1 | 14 16 2 | 13 11 3 | 15 17 4 | 11 14 5 | 17 18 6 | 20 19 7 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/TestIllustrateInput_invalid.txt: -------------------------------------------------------------------------------- 1 | , 2 | 1,2 3 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/TestWordCount.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/test/data/TestWordCount.jar -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/blockEndingInCR.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/test/data/blockEndingInCR.txt.bz2 -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/blockHeaderEndsAt136500.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/test/data/blockHeaderEndsAt136500.txt.bz2 -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/bzipTest.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/test/data/bzipTest.bz2 -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/bzipdir1.bz2/bzipdir2.bz2/recordLossblockHeaderEndsAt136500.txt.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/test/data/bzipdir1.bz2/bzipdir2.bz2/recordLossblockHeaderEndsAt136500.txt.bz2 -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/explainScript.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | rmf input-copy.txt; cat 'foo'; a = load '1.txt' ; aliases;illustrate a; copyFromLocal foo bar; copyToLocal foo bar; describe a; mkdir foo; run bar.pig; exec bar.pig; cp foo bar; explain a;cd 'bar'; pwd; ls ; fs -ls ; fs -rmr foo; mv foo bar; dump a;store a into 'input-copy.txt' ; a = load '2.txt' as (b);explain a; rm foo; store a into 'bar'; 20 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/generate_date.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | if "%1"=="" ( 3 | echo 20080228 4 | ) else ( 5 | echo %1 6 | ) 7 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/generate_date.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Licensed to the Apache Software Foundation (ASF) under one 3 | # or more contributor license agreements. See the NOTICE file 4 | # distributed with this work for additional information 5 | # regarding copyright ownership. The ASF licenses this file 6 | # to you under the Apache License, Version 2.0 (the 7 | # "License"); you may not use this file except in compliance 8 | # with the License. You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, 13 | # software distributed under the License is distributed on an 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | # KIND, either express or implied. See the License for the 16 | # specific language governing permissions and limitations 17 | # under the License. 18 | 19 | if [ $# -eq 0 ] 20 | then 21 | echo "20080228"; 22 | elif [ $# -eq 1 ] 23 | then 24 | #echo `date +%Y``date +%m``date +%d`; 25 | echo $1; 26 | fi 27 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/illustrate.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | A = load 'test/org/apache/pig/test/data/TestIllustrateInput.txt' as (x:int, y:int); 20 | B = distinct A; 21 | C = FILTER B by x > 3; 22 | D = FILTER B by x < 3; 23 | store C into 'Bigger'; 24 | store D into 'Smaller'; 25 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/illustrate2.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | A = load 'test/org/apache/pig/test/data/TestIllustrateInput.txt' as (x:int, y:int); 20 | B = FILTER A by x > 3; 21 | C = FILTER A by x < 3; 22 | store B into 'Bigger'; 23 | store C into 'Smaller'; 24 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/illustrate3.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | A = load 'test/org/apache/pig/test/data/TestIllustrateInput.txt' as (x:int); 20 | A1 = group A by x; 21 | A2 = foreach A1 generate group, COUNT(A); 22 | store A2 into 'A'; 23 | B = load 'test/org/apache/pig/test/data/TestIllustrateInput.txt' as (x:double, y:int); 24 | B1 = group B by x; 25 | B2 = foreach B1 generate group, COUNT(B); 26 | store B2 into 'B'; 27 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/illustrate4.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | A = load 'test/org/apache/pig/test/data/TestIllustrateInput_invalid.txt' using PigStorage(',') as (x:int, y:int); 20 | STORE A INTO 'A.txt'; 21 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/illustrate5.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | A = load 'test/org/apache/pig/test/data/TestIllustrateInput.txt' as (x:int, y:int); 20 | B = group A by x; 21 | C = foreach B generate group, COUNT(A); 22 | store C into 'out1'; 23 | store A into 'out2'; 24 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/illustrate6.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | a = load 'test/org/apache/pig/test/data/TestIllustrateInput.txt' as (x:int, y:int); 20 | b = group a all; 21 | c = foreach b generate COUNT(a) as count; d = foreach a generate x / c.count; store d into 'test.out'; 22 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/illustrate7.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | a = load 'test/org/apache/pig/test/data/TestIllustrateInput.txt' as (x:int, y:int); 20 | b = load 'test/org/apache/pig/test/data/TestIllustrateInput2.txt' as (x:int, y:int); 21 | c = join a by x, b by x; 22 | store c into 'test.out'; 23 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/input5.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | %declare udfs /data/pigudf.jar 19 | register $udfs; 20 | 21 | aa = load '$loadfile ' using PigStorage('\x01'); 22 | bb = filter aa by (ARITY == '16') and ( $4 eq '' or $4 eq 'NULL' or $4 eq 'ss') parallel 400; 23 | a = foreach bb generate $0,$12,$7; 24 | store inactiveAccounts into '$storefile'; 25 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/inputDollarSign.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | a = load 'data'; 20 | b = filter by $filter; 21 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/inputNoVars.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | 20 | register /home/y/lib/java/pigtest/testudf.jar; 21 | A = load '/user/pig/tests/data/singlefile/textdoc' using TextLoader(); 22 | define X `perl -ne 'chomp $_; print "$_\n"'` output (stdout using org.apache.pig.test.udf.storefunc.StringStore()); 23 | B = stream A through X; 24 | store B into '/user/pig/tests/results/olgan.1209067990/DefineClause_4.out'; 25 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/newinputS.txt: -------------------------------------------------------------------------------- 1 | key1=value1 2 | date=20080202 3 | mypath=/user/abhit/$date 4 | date2=20080202.txt 5 | path2='user/kal/$date/$date2' 6 | 7 | 8 | a = 2 9 | b = 3 10 | c = $a + $b -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/output26.pig: -------------------------------------------------------------------------------- 1 | avro = LOAD '/data/part-m-00000.avro' USING PigStorage (); 2 | avro2 = FOREACH avro GENERATE browser_id, component_version, member_id, page_key, session_id, tracking_time, type; 3 | fs -rmr testOut/out1; 4 | STORE avro2 INTO 'testOut/out2' 5 | USING PigStorage ( 6 | ' { 7 | "debug": 5, 8 | "schema": 9 | { "type":"record","name":"TestRecord", 10 | "fields": [ {"name":"browser_id", "type":["null","string"]}, 11 | {"name":"component_version","type":"int"}, 12 | {"name":"member_id","type":"int"}, 13 | {"name":"page_key","type":["null","string"]}, 14 | {"name":"session_id","type":"long"}, 15 | {"name":"tracking_time","type":"long"}, 16 | {"name":"type","type":["null","string"]} 17 | ] 18 | } 19 | } 20 | '); 21 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/passwd: -------------------------------------------------------------------------------- 1 | root:x:0:0:root:/root:/bin/bash 2 | bin:x:1:1:bin:/bin:/sbin/nologin 3 | daemon:x:2:2:daemon:/sbin:/sbin/nologin 4 | adm:x:3:4:adm:/var/adm:/sbin/nologin 5 | lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin 6 | sync:x:5:0:sync:/sbin:/bin/sync 7 | shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown 8 | halt:x:7:0:halt:/sbin:/sbin/halt 9 | mail:x:8:12:mail:/var/spool/mail:/sbin/nologin 10 | news:x:9:13:news:/etc/news: 11 | uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin 12 | operator:x:11:0:operator:/root:/sbin/nologin 13 | games:x:12:100:games:/usr/games:/sbin/nologin 14 | gopher:x:13:30:gopher:/var/gopher:/sbin/nologin 15 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/passwd2: -------------------------------------------------------------------------------- 1 | root:x:0:0:root:/root:/bin/bash 2 | bin:x:1:1:bin:/bin:/sbin/nologin 3 | daemon:x:2:2:daemon:/sbin:/sbin/nologin 4 | adm:x:3:4:adm:/var/adm:/sbin/nologin 5 | lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin 6 | sync:x:5:0:sync:/sbin:/bin/sync 7 | shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown 8 | halt:x:7:0:halt:/sbin:/sbin/halt 9 | mail:x:8:12:mail:/var/spool/mail:/sbin/nologin 10 | news:x:9:13:news:/etc/news: 11 | uucp:x:10:14:uucp:/var/spool/uucp:/sbin/nologin 12 | operator:x:11:0:operator:/root:/sbin/nologin 13 | games:x:12:100:games:/usr/games:/sbin/nologin 14 | gopher:x:13:30:gopher:/var/gopher:/sbin/nologin 15 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/pigtestloader.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/org/apache/pig/test/data/pigtestloader.jar -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/test.ppf: -------------------------------------------------------------------------------- 1 | LIMIT = 5 2 | FILE = foo 3 | FUNCTION = COUNT 4 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/test_broken.ppf: -------------------------------------------------------------------------------- 1 | LIMIT = WONTWORK 2 | FILE = foo 3 | FUNCTION = COUNT 4 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/testsub.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | foo = load '$FILE' as (foo, fast, regenerate); 20 | bar = limit foo $LIMIT; 21 | baz = foreach bar generate $FUNCTION($0); 22 | explain baz; 23 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/testsubnested_exec.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | exec -param_file test/org/apache/pig/test/data/test.ppf test/org/apache/pig/test/data/testsub.pig; 20 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/data/testsubnested_run.pig: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | run -param LIMIT=5 -param FILE=foo -param FUNCTION=COUNT test/org/apache/pig/test/data/testsub.pig; 20 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/utils/MultiLevelDerivedUDF3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.test.utils; 20 | 21 | public class MultiLevelDerivedUDF3 extends MultiLevelDerivedUDF2 { 22 | } 23 | -------------------------------------------------------------------------------- /test/org/apache/pig/test/utils/UPPER.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.test.utils; 20 | 21 | import org.apache.pig.EvalFunc; 22 | import org.apache.pig.data.Tuple; 23 | 24 | public class UPPER extends EvalFunc { 25 | public String exec(Tuple input) { 26 | final int quotient = 5/0; 27 | String str="hello"; 28 | return str; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /test/perf/pigmix/conf/config.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | hdfsroot=/user/pig/tests/data/pigmix 4 | localtmp=/tmp 5 | 6 | # configure the number of mappers for data generator 7 | mappers=90 8 | 9 | # ~1600 bytes per row for page_views (it is the base for most other inputs) 10 | rows=625000000 11 | 12 | # only used in L11 (widerow, ~2500 bytes per row) 13 | widerowcnt=10000000 14 | -------------------------------------------------------------------------------- /test/perf/pigmix/lib/sdsuLibJKD12.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/test/perf/pigmix/lib/sdsuLibJKD12.jar -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L1.pig: -------------------------------------------------------------------------------- 1 | -- This script tests reading from a map, flattening a bag of maps, and use of bincond. 2 | register $PIGMIX_JAR 3 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 4 | as (user, action, timespent, query_term, ip_addr, timestamp, 5 | estimated_revenue, page_info, page_links); 6 | B = foreach A generate user, (int)action as action, (map[])page_info as page_info, 7 | flatten((bag{tuple(map[])})page_links) as page_links; 8 | C = foreach B generate user, 9 | (action == 1 ? page_info#'a' : page_links#'b') as header; 10 | D = group C by user parallel $PARALLEL; 11 | E = foreach D generate group, COUNT(C) as cnt; 12 | store E into '$PIGMIX_OUTPUT/L1out'; 13 | 14 | 15 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L10.pig: -------------------------------------------------------------------------------- 1 | --This script covers order by of multiple values. 2 | register $PIGMIX_JAR 3 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 4 | as (user, action, timespent:int, query_term, ip_addr, timestamp, 5 | estimated_revenue:double, page_info, page_links); 6 | B = order A by query_term, estimated_revenue desc, timespent parallel $PARALLEL; 7 | store B into '$PIGMIX_OUTPUT/L10out'; 8 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L11.pig: -------------------------------------------------------------------------------- 1 | -- This script covers distinct and union. 2 | register $PIGMIX_JAR 3 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 4 | as (user, action, timespent, query_term, ip_addr, timestamp, 5 | estimated_revenue, page_info, page_links); 6 | B = foreach A generate user; 7 | C = distinct B parallel $PARALLEL; 8 | alpha = load '$HDFS_ROOT/widerow' using PigStorage('\u0001'); 9 | beta = foreach alpha generate $0 as name; 10 | gamma = distinct beta parallel $PARALLEL; 11 | D = union C, gamma; 12 | E = distinct D parallel $PARALLEL; 13 | store E into '$PIGMIX_OUTPUT/L11out'; 14 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L12.pig: -------------------------------------------------------------------------------- 1 | -- This script covers multi-store queries. 2 | register $PIGMIX_JAR 3 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 4 | as (user, action, timespent, query_term, ip_addr, timestamp, 5 | estimated_revenue, page_info, page_links); 6 | B = foreach A generate user, action, (int)timespent as timespent, query_term, 7 | (double)estimated_revenue as estimated_revenue; 8 | split B into C if user is not null, alpha if user is null; 9 | split C into D if query_term is not null, aleph if query_term is null; 10 | E = group D by user parallel $PARALLEL; 11 | F = foreach E generate group, MAX(D.estimated_revenue); 12 | store F into '$PIGMIX_OUTPUT/highest_value_page_per_user'; 13 | beta = group alpha by query_term parallel $PARALLEL; 14 | gamma = foreach beta generate group, SUM(alpha.timespent); 15 | store gamma into '$PIGMIX_OUTPUT/total_timespent_per_term'; 16 | beth = group aleph by action parallel $PARALLEL; 17 | gimel = foreach beth generate group, COUNT(aleph); 18 | store gimel into '$PIGMIX_OUTPUT/queries_per_action'; 19 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L13.pig: -------------------------------------------------------------------------------- 1 | register $PIGMIX_JAR 2 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 3 | as (user, action, timespent, query_term, ip_addr, timestamp, estimated_revenue, page_info, page_links); 4 | B = foreach A generate user, estimated_revenue; 5 | alpha = load '$HDFS_ROOT/power_users_samples' using PigStorage('\u0001') as (name, phone, address, city, state, zip); 6 | beta = foreach alpha generate name, phone; 7 | C = join B by user left outer, beta by name parallel $PARALLEL; 8 | store C into '$PIGMIX_OUTPUT/L13out'; 9 | 10 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L14.pig: -------------------------------------------------------------------------------- 1 | register $PIGMIX_JAR 2 | A = load '$HDFS_ROOT/page_views_sorted' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 3 | as (user, action, timespent, query_term, ip_addr, timestamp, estimated_revenue, page_info, page_links); 4 | B = foreach A generate user, estimated_revenue; 5 | alpha = load '$HDFS_ROOT/users_sorted' using PigStorage('\u0001') as (name, phone, address, city, state, zip); 6 | beta = foreach alpha generate name; 7 | C = join B by user, beta by name using 'merge'; 8 | store C into '$PIGMIX_OUTPUT/L14out'; 9 | 10 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L15.pig: -------------------------------------------------------------------------------- 1 | register $PIGMIX_JAR 2 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 3 | as (user, action, timespent, query_term, ip_addr, timestamp, estimated_revenue, page_info, page_links); 4 | B = foreach A generate user, action, estimated_revenue, timespent; 5 | C = group B by user parallel $PARALLEL; 6 | D = foreach C { 7 | beth = distinct B.action; 8 | rev = distinct B.estimated_revenue; 9 | ts = distinct B.timespent; 10 | generate group, COUNT(beth), SUM(rev), (int)AVG(ts); 11 | } 12 | store D into '$PIGMIX_OUTPUT/L15out'; 13 | 14 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L16.pig: -------------------------------------------------------------------------------- 1 | register $PIGMIX_JAR 2 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 3 | as (user, action, timespent, query_term, ip_addr, timestamp, estimated_revenue, page_info, page_links); 4 | B = foreach A generate user, estimated_revenue; 5 | C = group B by user parallel $PARALLEL; 6 | D = foreach C { 7 | E = order B by estimated_revenue; 8 | F = E.estimated_revenue; 9 | generate group, SUM(F); 10 | } 11 | 12 | store D into '$PIGMIX_OUTPUT/L16out'; 13 | 14 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L17.pig: -------------------------------------------------------------------------------- 1 | register $PIGMIX_JAR 2 | A = load '$HDFS_ROOT/widegroupbydata' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 3 | as (user, action, timespent, query_term, ip_addr, timestamp, 4 | estimated_revenue, page_info, page_links, user_1, action_1, timespent_1, query_term_1, ip_addr_1, timestamp_1, 5 | estimated_revenue_1, page_info_1, page_links_1, user_2, action_2, timespent_2, query_term_2, ip_addr_2, timestamp_2, 6 | estimated_revenue_2, page_info_2, page_links_2); 7 | B = group A by (user, action, timespent, query_term, ip_addr, timestamp, 8 | estimated_revenue, user_1, action_1, timespent_1, query_term_1, ip_addr_1, timestamp_1, 9 | estimated_revenue_1, user_2, action_2, timespent_2, query_term_2, ip_addr_2, timestamp_2, 10 | estimated_revenue_2) parallel $PARALLEL; 11 | C = foreach B generate SUM(A.timespent), SUM(A.timespent_1), SUM(A.timespent_2), AVG(A.estimated_revenue), AVG(A.estimated_revenue_1), AVG(A.estimated_revenue_2); 12 | store C into '$PIGMIX_OUTPUT/L17out'; 13 | 14 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L2.pig: -------------------------------------------------------------------------------- 1 | -- This script tests using a join small enough to do in fragment and replicate. 2 | register $PIGMIX_JAR 3 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 4 | as (user, action, timespent, query_term, ip_addr, timestamp, 5 | estimated_revenue, page_info, page_links); 6 | B = foreach A generate user, estimated_revenue; 7 | alpha = load '$HDFS_ROOT/power_users' using PigStorage('\u0001') as (name, phone, 8 | address, city, state, zip); 9 | beta = foreach alpha generate name; 10 | C = join B by user, beta by name using 'replicated' parallel $PARALLEL; 11 | store C into '$PIGMIX_OUTPUT/L2out'; 12 | 13 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L3.pig: -------------------------------------------------------------------------------- 1 | --This script tests a join too large for fragment and replicate. It also 2 | --contains a join followed by a group by on the same key, something that we 3 | --could potentially optimize by not regrouping. 4 | register $PIGMIX_JAR 5 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 6 | as (user, action, timespent, query_term, ip_addr, timestamp, 7 | estimated_revenue, page_info, page_links); 8 | B = foreach A generate user, (double)estimated_revenue; 9 | alpha = load '$HDFS_ROOT/users' using PigStorage('\u0001') as (name, phone, address, 10 | city, state, zip); 11 | beta = foreach alpha generate name; 12 | C = join beta by name, B by user parallel $PARALLEL; 13 | D = group C by $0 parallel $PARALLEL; 14 | E = foreach D generate group, SUM(C.estimated_revenue); 15 | store E into '$PIGMIX_OUTPUT/L3out'; 16 | 17 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L4.pig: -------------------------------------------------------------------------------- 1 | -- This script covers foreach/generate with a nested distinct. 2 | register $PIGMIX_JAR 3 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 4 | as (user, action, timespent, query_term, ip_addr, timestamp, 5 | estimated_revenue, page_info, page_links); 6 | B = foreach A generate user, action; 7 | C = group B by user parallel $PARALLEL; 8 | D = foreach C { 9 | aleph = B.action; 10 | beth = distinct aleph; 11 | generate group, COUNT(beth); 12 | } 13 | store D into '$PIGMIX_OUTPUT/L4out'; 14 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L5.pig: -------------------------------------------------------------------------------- 1 | --This script does an anti-join. This is useful because it is a use of 2 | --cogroup that is not a regular join. 3 | register $PIGMIX_JAR 4 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 5 | as (user, action, timespent, query_term, ip_addr, timestamp, 6 | estimated_revenue, page_info, page_links); 7 | B = foreach A generate user; 8 | alpha = load '$HDFS_ROOT/users' using PigStorage('\u0001') as (name, phone, address, 9 | city, state, zip); 10 | beta = foreach alpha generate name; 11 | C = cogroup beta by name, B by user parallel $PARALLEL; 12 | D = filter C by COUNT(beta) == 0; 13 | E = foreach D generate group; 14 | store E into '$PIGMIX_OUTPUT/L5out'; 15 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L6.pig: -------------------------------------------------------------------------------- 1 | -- This script covers the case where the group by key is a significant 2 | -- percentage of the row. 3 | register $PIGMIX_JAR 4 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 5 | as (user, action, timespent, query_term, ip_addr, timestamp, 6 | estimated_revenue, page_info, page_links); 7 | B = foreach A generate user, action, (int)timespent as timespent, query_term, ip_addr, timestamp; 8 | C = group B by (user, query_term, ip_addr, timestamp) parallel $PARALLEL; 9 | D = foreach C generate flatten(group), SUM(B.timespent); 10 | store D into '$PIGMIX_OUTPUT/L6out'; 11 | 12 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L7.pig: -------------------------------------------------------------------------------- 1 | -- This script covers having a nested plan with splits. 2 | register $PIGMIX_JAR 3 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() as (user, action, timespent, query_term, 4 | ip_addr, timestamp, estimated_revenue, page_info, page_links); 5 | B = foreach A generate user, timestamp; 6 | C = group B by user parallel $PARALLEL; 7 | D = foreach C { 8 | morning = filter B by timestamp < 43200; 9 | afternoon = filter B by timestamp >= 43200; 10 | generate group, COUNT(morning), COUNT(afternoon); 11 | } 12 | store D into '$PIGMIX_OUTPUT/L7out'; 13 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L8.pig: -------------------------------------------------------------------------------- 1 | -- This script covers group all. 2 | register $PIGMIX_JAR 3 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 4 | as (user, action, timespent, query_term, ip_addr, timestamp, 5 | estimated_revenue, page_info, page_links); 6 | B = foreach A generate user, (int)timespent as timespent, (double)estimated_revenue as estimated_revenue; 7 | C = group B all; 8 | D = foreach C generate SUM(B.timespent), AVG(B.estimated_revenue); 9 | store D into '$PIGMIX_OUTPUT/L8out'; 10 | -------------------------------------------------------------------------------- /test/perf/pigmix/src/pig/L9.pig: -------------------------------------------------------------------------------- 1 | --This script covers order by of a single value. 2 | register $PIGMIX_JAR 3 | A = load '$HDFS_ROOT/page_views' using org.apache.pig.test.pigmix.udf.PigPerformanceLoader() 4 | as (user, action, timespent, query_term, ip_addr, timestamp, 5 | estimated_revenue, page_info, page_links); 6 | B = order A by query_term parallel $PARALLEL; 7 | store B into '$PIGMIX_OUTPUT/L9out'; 8 | -------------------------------------------------------------------------------- /test/pigunit-tests: -------------------------------------------------------------------------------- 1 | **/TestPigTest.java 2 | **/TestGruntParser.java 3 | -------------------------------------------------------------------------------- /test/resources/org/apache/pig/test/ClassLoaderSanityCheck.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | 19 | package org.apache.pig.test; 20 | 21 | /** 22 | * A dummy class to ensure PigContext's classloader's 'consistency' 23 | * after registering jars. 24 | */ 25 | public class ClassLoaderSanityCheck { 26 | } 27 | -------------------------------------------------------------------------------- /test/resources/org/apache/pig/test/RegisteredJarVisibilitySchema.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, software 13 | * distributed under the License is distributed on an "AS IS" BASIS, 14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | * See the License for the specific language governing permissions and 16 | * limitations under the License. 17 | */ 18 | package org.apache.pig.test; 19 | 20 | import java.io.Serializable; 21 | 22 | /** 23 | * Please see {@link TestRegisteredJarVisibility} for information about this class. 24 | */ 25 | public class RegisteredJarVisibilitySchema implements Serializable { 26 | } 27 | -------------------------------------------------------------------------------- /test/smoke-tests: -------------------------------------------------------------------------------- 1 | **/TestCommit.java 2 | **/TestMultiQueryLocal.java 3 | **/TestStreaming.java 4 | **/TestJoinSmoke.java 5 | -------------------------------------------------------------------------------- /tutorial/data/excite.log.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/tutorial/data/excite.log.bz2 -------------------------------------------------------------------------------- /tutorial/scripts/script1-hadoop.pig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/pig/d795e8309d321a1b8b818e440348aab4ca3f8b5c/tutorial/scripts/script1-hadoop.pig --------------------------------------------------------------------------------