Skip to content

Commit

Permalink
[FLINK-1710] [table] Switch compile backend to Janino
Browse files Browse the repository at this point in the history
This greatly reduces compile time while still supporting the same
feature set.
  • Loading branch information
aljoscha committed Apr 13, 2015
1 parent 92e0c77 commit f81d9f0
Show file tree
Hide file tree
Showing 17 changed files with 707 additions and 637 deletions.
1 change: 1 addition & 0 deletions flink-dist/src/main/flink-bin/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ BSD-style licenses:
[3-clause BSD license]
- Kryo (https://github.com/EsotericSoftware/kryo) - Copyright (c) 2008, Nathan Sweet
- D3 (http:https://d3js.org/) - Copyright (c) 2010-2014, Michael Bostock
- Janino (http:https://docs.codehaus.org/display/JANINO/Home) - Copyright (c) 2001-2010, Arno Unkrig

[BSD-like License]
- Scala Library (http:https://www.scala-lang.org/) - Copyright (c) 2002-2014 EPFL, Copyright (c) 2011-2014 Typesafe, Inc.
Expand Down
8 changes: 8 additions & 0 deletions flink-dist/src/main/flink-bin/NOTICE
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-----------------------------------------------------------------------
Janino
-----------------------------------------------------------------------

Janino - An embedded Java[TM] compiler

Copyright (c) 2001-2010, Arno Unkrig
All rights reserved.

-----------------------------------------------------------------------
The Netty Project
Expand Down
6 changes: 6 additions & 0 deletions flink-staging/flink-table/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ under the License.
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.codehaus.janino</groupId>
<artifactId>janino</artifactId>
<version>2.7.5</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-tests</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public String toString() {
return "WC " + word + " " + count;
}
}

public static void main(String[] args) throws Exception {
ExecutionEnvironment env = ExecutionEnvironment.createCollectionsEnvironment();
TableEnvironment tableEnv = new TableEnvironment();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ case class Table(private[flink] val operation: PlanNode) {
}

/**
* Joins to [[Table]]s. Similar to an SQL join. The fields of the two joined
* Joins two [[Table]]s. Similar to an SQL join. The fields of the two joined
* operations must not overlap, use [[as]] to rename fields if necessary. You can use
* where and select clauses after a join to further specify the behaviour of the join.
*
Expand Down
Loading

0 comments on commit f81d9f0

Please sign in to comment.