From b7fc061f6759fae79c09e32de811fb040297b01e Mon Sep 17 00:00:00 2001 From: William Vaughan Date: Mon, 24 Jun 2013 17:35:46 -0700 Subject: [PATCH] fix error in AliasableEvalFunc documentation --- src/java/datafu/pig/util/AliasableEvalFunc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/datafu/pig/util/AliasableEvalFunc.java b/src/java/datafu/pig/util/AliasableEvalFunc.java index 45d7155..ba04e7a 100644 --- a/src/java/datafu/pig/util/AliasableEvalFunc.java +++ b/src/java/datafu/pig/util/AliasableEvalFunc.java @@ -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)); * }