Navigation Menu

Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
TAJO-906: Runtime code generation for evaluating expression trees.
Browse files Browse the repository at this point in the history
Closes #113
  • Loading branch information
hyunsik committed Aug 23, 2014
1 parent 839081a commit 7603a3d
Show file tree
Hide file tree
Showing 255 changed files with 47,476 additions and 284 deletions.
3 changes: 3 additions & 0 deletions CHANGES
Expand Up @@ -31,6 +31,9 @@ Release 0.9.0 - unreleased

IMPROVEMENT

TAJO-906: Runtime code generation for evaluating expression trees.
(hyunsik)

TAJO-931: Output file can be punctuated depending on the file size.
(hyunsik)

Expand Down
31 changes: 31 additions & 0 deletions LICENSE
Expand Up @@ -340,3 +340,34 @@ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATIONS TO
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

-----------------------------------------------------------------------------
Copyright (c) 2000-2011 INRIA, France Telecom
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
52 changes: 4 additions & 48 deletions pom.xml
Expand Up @@ -90,6 +90,7 @@
<module>tajo-storage</module>
<module>tajo-yarn-pullserver</module>
<module>tajo-dist</module>
<module>tajo-thirdparty/asm</module>
</modules>

<build>
Expand Down Expand Up @@ -178,9 +179,9 @@
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.7.1</version>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.7</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -336,51 +337,6 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.8</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<excludeSubProjects>false</excludeSubProjects>
<numUnapprovedLicenses>0</numUnapprovedLicenses>
<excludes>
<exclude>CHANGES</exclude>
<exclude>**/workers</exclude>
<exclude>**/querymasters</exclude>
<exclude>**/*.sql</exclude>
<exclude>**/*.hiveql</exclude>
<exclude>**/*.schema</exclude>
<exclude>**/*.tbl</exclude>
<exclude>**/*.js</exclude>
<exclude>**/*.result</exclude>
<exclude>**/*.json</exclude>
<exclude>**/*.avsc</exclude>
<!-- generated content -->
<exclude>**/target/**</exclude>
<exclude>**/*.log</exclude>
<!-- source control and IDEs -->
<exclude>.git/**</exclude>
<exclude>.gitignore</exclude>
<exclude>*.patch</exclude>
<exclude>.idea/**</exclude>
<exclude>**/*.iml</exclude>
<exclude>**/*.ipr</exclude>
<exclude>**/.project</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.settings/**</exclude>
<exclude>atlassian-ide-plugin.xml</exclude>
<exclude>.reviewboardrc</exclude>
<exclude>**/sphinx_rtd_theme/**/*</exclude>
<!-- tajo-doc -->
<exclude>**/*.rst</exclude>
<exclude>**/resources/*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
13 changes: 12 additions & 1 deletion tajo-algebra/pom.xml
Expand Up @@ -43,6 +43,18 @@
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down Expand Up @@ -79,7 +91,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</build>
Expand Down
12 changes: 4 additions & 8 deletions tajo-catalog/pom.xml
Expand Up @@ -44,23 +44,20 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
</configuration>
</plugin>
</plugins>
</build>

Expand Down Expand Up @@ -163,7 +160,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</reporting>
Expand Down
13 changes: 12 additions & 1 deletion tajo-catalog/tajo-catalog-client/pom.xml
Expand Up @@ -46,6 +46,18 @@
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand Down Expand Up @@ -110,7 +122,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</build>
Expand Down
13 changes: 12 additions & 1 deletion tajo-catalog/tajo-catalog-common/pom.xml
Expand Up @@ -46,6 +46,18 @@
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand Down Expand Up @@ -129,7 +141,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</build>
Expand Down
Expand Up @@ -481,7 +481,7 @@ public static boolean isMatchedFunction(List<DataType> definedTypes, List<DataTy

// If all parameters are equivalent to the basis type
for (TajoDataTypes.Type type : varLengthTypesOfGivenParams) {
if (type != Type.NULL_TYPE && type != basisTypeOfVarLengthType) {
if (type != Type.NULL_TYPE && !isCompatibleType(basisTypeOfVarLengthType, type)) {
return false;
}
}
Expand Down
Expand Up @@ -98,7 +98,7 @@ public String getSignature() {
}

@SuppressWarnings("unchecked")
public Class<? extends Function> getFuncClass() throws InternalException {
public Class<? extends Function> getFuncClass() {
return this.funcClass;
}

Expand Down
11 changes: 9 additions & 2 deletions tajo-catalog/tajo-catalog-drivers/pom.xml
Expand Up @@ -37,10 +37,18 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<configuration>
<excludes>
<exclude>tajo-hcatalog/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
Expand Down Expand Up @@ -68,7 +76,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</reporting>
Expand Down
19 changes: 17 additions & 2 deletions tajo-catalog/tajo-catalog-drivers/tajo-hcatalog/pom.xml
Expand Up @@ -46,6 +46,23 @@
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>derby.log</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
Expand All @@ -69,7 +86,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</build>
Expand Down Expand Up @@ -371,7 +387,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</reporting>
Expand Down
20 changes: 18 additions & 2 deletions tajo-catalog/tajo-catalog-server/pom.xml
Expand Up @@ -46,6 +46,24 @@
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>derby.log</exclude>
<exclude>src/main/resources/schemas/**/*.sql</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand Down Expand Up @@ -106,7 +124,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</build>
Expand Down Expand Up @@ -217,7 +234,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</reporting>
Expand Down
14 changes: 12 additions & 2 deletions tajo-client/pom.xml
Expand Up @@ -57,10 +57,21 @@
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12.4</version>
<configuration>
<systemProperties>
<tajo.test>TRUE</tajo.test>
Expand Down Expand Up @@ -332,7 +343,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</reporting>
Expand Down

0 comments on commit 7603a3d

Please sign in to comment.