Skip to content

Commit

Permalink
fix error in AliasableEvalFunc documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
William Vaughan committed Jun 25, 2013
1 parent 657af7c commit b7fc061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/datafu/pig/util/AliasableEvalFunc.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* DataBag interestRates = getBag(input, "interest_rates");
*
* for (Tuple interestTuple : interestRates) {
* Double interest = getDouble(interestTuple, "interest_rate"); // get a value from the inner bag tuple by alias
* Double interest = getDouble(interestTuple, getPrefixedAliasName("interest_rates", "interest_rate")); // get a value from the inner bag tuple by alias
* double monthlyPayment = computeMonthlyPayment(principal, numPayments, interest);
* output.add(TupleFactory.getInstance().newTuple(monthlyPayment));
* }
Expand Down

0 comments on commit b7fc061

Please sign in to comment.