Dear Wiki user, You have subscribed to a wiki page or wiki category on "Pig Wiki" for change notification.
The following page has been changed by CorinneC: http://wiki.apache.org/pig/PigTypesFunctionalSpec ------------------------------------------------------------------------------ == Definitions == * arithmetic operator: *, /, +, - * atomic data types: Single valued types (e.g. int, float). - * comparitor: boolean operations that test equality, inequality, or do another comparison (such as MATCHES). + * comparator: boolean operations that test equality, inequality, or do another comparison (such as MATCHES). * complex data types: Multi-valued types (e.g. bag). * datum: A value, could be of complex or atomic type. - * expression operators: Language constructs used in FILTER or FOREACH statements that evaluate expressions of data. These include comparitors, arithmetic operators, user defined functions, and language provided functions. + * expression operators: Language constructs used in FILTER or FOREACH statements that evaluate expressions of data. These include comparators, arithmetic operators, user defined functions, and language provided functions. * relational operators: Top level language constructs such as FILTER, GROUP BY, etc. @@ -244, +244 @@ current pig, and to maintain easy use of the language without requiring casts everywhere in the code. - [[Anchor(Comparitors)]] + [[Anchor(Comparators)]] - === Comparitors === + === Comparators === - Comparitors are currently "perlish" in that they require the user to define + Comparators are currently "perlish" in that they require the user to define the type of the operands. If the user wishes to compare two operands numerically, = = is used, whereas `eq` is used for comparing two operands as - strings. The existing string comparitors `eq`, `ne`, `lt`, `lte`, `gt`, `gte` will + strings. The existing string comparators `eq`, `ne`, `lt`, `lte`, `gt`, `gte` will continue to be supported, but they should be considered depricated. It will now be legal to use = = , ! = , etc. with data of type chararray.