Skip to content

Commit

Permalink
[FLINK-15495][sql-cli] Set default planner to Blink planner for SQL C…
Browse files Browse the repository at this point in the history
…lient (#10787)
  • Loading branch information
wuchong committed Jan 13, 2020
1 parent 68f9b8b commit 415ab57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/dev/table/sqlClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ catalogs:
# Properties that change the fundamental execution behavior of a table program.

execution:
planner: old # optional: either 'old' (default) or 'blink'
planner: blink # optional: either 'blink' (default) or 'old'
type: streaming # required: execution mode either 'batch' or 'streaming'
result-mode: table # required: either 'table' or 'changelog'
max-table-result-rows: 1000000 # optional: maximum number of maintained rows in
Expand Down Expand Up @@ -254,7 +254,7 @@ This configuration:
- defines a view `MyCustomView` that declares a virtual table using a SQL query,
- defines a user-defined function `myUDF` that can be instantiated using the class name and two constructor parameters,
- connects to two Hive catalogs and uses `catalog_1` as the current catalog with `mydb1` as the current database of the catalog,
- uses the old planner in streaming mode for running statements with event-time characteristic and a parallelism of 1,
- uses the blink planner in streaming mode for running statements with event-time characteristic and a parallelism of 1,
- runs exploratory queries in the `table` result mode,
- and makes some planner adjustments around join reordering and spilling via configuration options.

Expand Down
4 changes: 2 additions & 2 deletions docs/dev/table/sqlClient.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ catalogs:
# Properties that change the fundamental execution behavior of a table program.

execution:
planner: old # optional: either 'old' (default) or 'blink'
planner: blink # optional: either 'blink' (default) or 'old'
type: streaming # required: execution mode either 'batch' or 'streaming'
result-mode: table # required: either 'table' or 'changelog'
max-table-result-rows: 1000000 # optional: maximum number of maintained rows in
Expand Down Expand Up @@ -254,7 +254,7 @@ This configuration:
- defines a view `MyCustomView` that declares a virtual table using a SQL query,
- defines a user-defined function `myUDF` that can be instantiated using the class name and two constructor parameters,
- connects to two Hive catalogs and uses `catalog_1` as the current catalog with `mydb1` as the current database of the catalog,
- uses the old planner in streaming mode for running statements with event-time characteristic and a parallelism of 1,
- uses the blink planner in streaming mode for running statements with event-time characteristic and a parallelism of 1,
- runs exploratory queries in the `table` result mode,
- and makes some planner adjustments around join reordering and spilling via configuration options.

Expand Down
4 changes: 2 additions & 2 deletions flink-table/flink-sql-client/conf/sql-client-defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ catalogs: [] # empty list

execution:
# select the implementation responsible for planning table programs
# possible values are 'old' (used by default) or 'blink'
planner: old
# possible values are 'blink' (used by default) or 'old'
planner: blink
# 'batch' or 'streaming' execution
type: streaming
# allow 'event-time' or only 'processing-time' in sources
Expand Down

0 comments on commit 415ab57

Please sign in to comment.