Table of Contents | ||
---|---|---|
|
How To Test Pig
This document covers how to test Pig. It is intended for Pig developers who need to know how to test their work. It can also be used by Pig users who wish to verify their instance of Pig.
...
Key | What it Does | Example | Required? | ||
---|---|---|---|---|---|
delimiter | Provides | | Only with | ||
execonly | This test will only be executed in specified mode; options are | | No | ||
expected_err_regex | Checks stderr error for the provided regular expression | | No | ||
expected_out_regex | Checks stdout error for the provided regular expression | | No | ||
floatpostprocess | Run floating point numbers through a post processor, since due to precision issues different runs of the same script will produce slightly different values. All floating point numbers are rounded to 3 decimal places. This must be used in conjunction with | | For outputs that include calculated floating point values. | ||
ignore | Do not run this test, used when a test is failing but we don't want to remove it because it will be needed once the issue is fixed. A reason for ignoring the test should be given. | | No | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9c2f8c187d82f476-4ee16194-4b2f4e05-b89fb2f4-0e458e181ecf55835dfd6c1d"><ac:plain-text-body><![CDATA[ | java_params | Values to be passed on the | | No | ]]></ac:plain-text-body></ac:structured-macro> |
not_expected_err_regex | Checks that stderr does not match the provided regular expression | | No | ||
not_expected_out_regex | Checks that stdout does not match the provided regular expression | | No | ||
notmq | Tells the test harness this is not a multi-query test; only necessary when a test has multiple | | No | ||
num | Test number; must be unique in the test group | | Yes | ||
pig | The Pig Latin script to run in the test | | Yes | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4e9b8d41b772ced9-93e5c08e-45684488-8da98f4f-8a5de74643f3c611478f4dd9"><ac:plain-text-body><![CDATA[ | pig_params | Command line arguments to pass to | | No | ]]></ac:plain-text-body></ac:structured-macro> |
rc | Expected return code | | No | ||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a9397c01515a4a92-0df7ebca-45cf4952-8b8a9884-b9571399f849acf9def6204b"><ac:plain-text-body><![CDATA[ | sortArgs | Arguments to pass to the Unix | | Only when job output should be sorted | ]]></ac:plain-text-body></ac:structured-macro> |
verify_pig_script | Alternate Pig Latin script to use to generate the expected results | | No |
...