Skip to content

Commit

Permalink
Fix return types in usage comments showing CREATE FUNCTION stmts.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Russell committed Feb 10, 2014
1 parent c182fe2 commit 7f053a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions udf-sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ BooleanVal FuzzyEquals(FunctionContext* context, const DoubleVal& x, const Doubl
BooleanVal HasVowels(FunctionContext* context, const StringVal& input);


// Usage: > create function countvowels(string) returns boolean
// Usage: > create function countvowels(string) returns int
// location '/user/cloudera/libudfsample.so' SYMBOL='CountVowels';
// > select countvowels('abracadabra hocus pocus');
// > select countvowels(c1) from t1;
IntVal CountVowels(FunctionContext* context, const StringVal& arg1);

// Usage: > create function stripvowels(string) returns boolean
// Usage: > create function stripvowels(string) returns string
// location '/user/cloudera/libudfsample.so' SYMBOL='StripVowels';
// > select stripvowels('colour color');
// > select stripvowels(c1) from t1;
Expand Down

0 comments on commit 7f053a6

Please sign in to comment.