drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tshi...@apache.org
Subject [03/12] drill git commit: hsuanyi's Update 020-develop-a-simple-function.md pull request
Date Fri, 22 May 2015 18:30:53 GMT
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 <khahn@maprtech.com>
Authored: Thu May 21 17:27:56 2015 -0700
Committer: Kristine Hahn <khahn@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.   


Mime
View raw message