You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by ts...@apache.org on 2015/05/22 20:30:53 UTC

[03/12] drill git commit: hsuanyi's Update 020-develop-a-simple-function.md pull request

hsuanyi's Update 020-develop-a-simple-function.md pull request


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/3a32564b
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/3a32564b
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/3a32564b

Branch: refs/heads/gh-pages
Commit: 3a32564b1730dc47ef657e20c82a38d25f4ce83a
Parents: b99a8e0
Author: Kristine Hahn <kh...@maprtech.com>
Authored: Thu May 21 17:27:56 2015 -0700
Committer: Kristine Hahn <kh...@maprtech.com>
Committed: Thu May 21 17:27:56 2015 -0700

----------------------------------------------------------------------
 _docs/develop-custom-functions/020-develop-a-simple-function.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/3a32564b/_docs/develop-custom-functions/020-develop-a-simple-function.md
----------------------------------------------------------------------
diff --git a/_docs/develop-custom-functions/020-develop-a-simple-function.md b/_docs/develop-custom-functions/020-develop-a-simple-function.md
index 094f0c1..794182c 100644
--- a/_docs/develop-custom-functions/020-develop-a-simple-function.md
+++ b/_docs/develop-custom-functions/020-develop-a-simple-function.md
@@ -15,7 +15,7 @@ function interface:
 		<dependency>
 		<groupId>org.apache.drill.exec</groupId>
 		<artifactId>drill-java-exec</artifactId>
-		<version>1.0.0-m2-incubating-SNAPSHOT</version>
+		<version>1.0.0</version>
 		</dependency>
 
   2. Create a class that implements the `DrillSimpleFunc` interface and identify the scope as `FunctionScope.SIMPLE`.
@@ -40,7 +40,7 @@ function interface:
 		public void setup(RecordBatch b) {
 		}
 		public void eval() {
-		 out.value = (int) (in1.value + in2.value);
+		 out.value = in1.value + in2.value;
 		}
 
   5. Use the maven-source-plugin to compile the sources and classes JAR files. Verify that an empty `drill-module.conf` is included in the resources folder of the JARs.