Formatting Pig data
How to convert expressions to a tuple.
The examples in this document include how to convert expressions to a tuple, which
differs slightly from DataStax Enterprise 3.1.2-3.1.3. The syntax in 3.1.4 has been
simplified and .value
is no longer needed to specify the values to
be converted:
-
DataStax Enterprise 3.1.2-3.1.3
grunt> insertformat= FOREACH morevalues GENERATE TOTUPLE(TOTUPLE('a',x.value)),TOTUPLE(y.value);
-
DataStax Enterprise 3.1.4 and later
grunt> insertformat= FOREACH morevalues GENERATE TOTUPLE(TOTUPLE('a',x)),TOTUPLE(y);