Skip to content

Commit

Permalink
[FLINK-9119][table][docs] Fix example code error in Concepts & Common…
Browse files Browse the repository at this point in the history
… API

This closes apache#5935.
  • Loading branch information
yanghua authored and zentol committed May 2, 2018
1 parent ac9156a commit 0973e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/dev/table/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ A `Table` is registered in a `TableEnvironment` as follows:
StreamTableEnvironment tableEnv = TableEnvironment.getTableEnvironment(env);

// Table is the result of a simple projection query
Table projTable = tableEnv.scan("X").project(...);
Table projTable = tableEnv.scan("X").select(...);

// register the Table projTable as table "projectedX"
tableEnv.registerTable("projectedTable", projTable);
Expand All @@ -186,7 +186,7 @@ tableEnv.registerTable("projectedTable", projTable);
val tableEnv = TableEnvironment.getTableEnvironment(env)

// Table is the result of a simple projection query
val projTable: Table = tableEnv.scan("X").project(...)
val projTable: Table = tableEnv.scan("X").select(...)

// register the Table projTable as table "projectedX"
tableEnv.registerTable("projectedTable", projTable)
Expand Down

0 comments on commit 0973e34

Please sign in to comment.