forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-19944][hive] Support sink parallelism configuration for Hive c…
…onnector This closes apache#15060
- Loading branch information
Showing
7 changed files
with
197 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...ink-connector-hive/src/test/resources/explain/testHiveTableSinkWithParallelismInBatch.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
== Abstract Syntax Tree == | ||
LogicalSink(table=[test-catalog.db1.test_table], fields=[EXPR$0, EXPR$1]) | ||
+- LogicalProject(EXPR$0=[1], EXPR$1=[1]) | ||
+- LogicalValues(tuples=[[{ 0 }]]) | ||
|
||
== Optimized Physical Plan == | ||
Sink(table=[test-catalog.db1.test_table], fields=[EXPR$0, EXPR$1]) | ||
+- Calc(select=[1 AS EXPR$0, 1 AS EXPR$1]) | ||
+- Values(tuples=[[{ 0 }]], values=[ZERO]) | ||
|
||
== Optimized Execution Plan == | ||
Sink(table=[test-catalog.db1.test_table], fields=[EXPR$0, EXPR$1]) | ||
+- Calc(select=[1 AS EXPR$0, 1 AS EXPR$1]) | ||
+- Values(tuples=[[{ 0 }]], values=[ZERO]) | ||
|
||
== Physical Execution Plan == | ||
{ | ||
"nodes" : [ { | ||
"id" : 1, | ||
"type" : "Source: Values(tuples=[[{ 0 }]], values=[ZERO])", | ||
"pact" : "Data Source", | ||
"contents" : "Source: Values(tuples=[[{ 0 }]], values=[ZERO])", | ||
"parallelism" : 1 | ||
}, { | ||
"id" : 2, | ||
"type" : "Calc(select=[1 AS EXPR$0, 1 AS EXPR$1])", | ||
"pact" : "Operator", | ||
"contents" : "Calc(select=[1 AS EXPR$0, 1 AS EXPR$1])", | ||
"parallelism" : 1, | ||
"predecessors" : [ { | ||
"id" : 1, | ||
"ship_strategy" : "FORWARD", | ||
"side" : "second" | ||
} ] | ||
}, { | ||
"id" : 3, | ||
"type" : "Map", | ||
"pact" : "Operator", | ||
"contents" : "Map", | ||
"parallelism" : 1, | ||
"predecessors" : [ { | ||
"id" : 2, | ||
"ship_strategy" : "FORWARD", | ||
"side" : "second" | ||
} ] | ||
}, { | ||
"id" : 4, | ||
"type" : "Sink: Unnamed", | ||
"pact" : "Data Sink", | ||
"contents" : "Sink: Unnamed", | ||
"parallelism" : 8, | ||
"predecessors" : [ { | ||
"id" : 3, | ||
"ship_strategy" : "REBALANCE", | ||
"side" : "second" | ||
} ] | ||
} ] | ||
} |
58 changes: 58 additions & 0 deletions
58
...connector-hive/src/test/resources/explain/testHiveTableSinkWithParallelismInStreaming.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
== Abstract Syntax Tree == | ||
LogicalSink(table=[test-catalog.db1.test_table], fields=[EXPR$0, EXPR$1]) | ||
+- LogicalProject(EXPR$0=[1], EXPR$1=[1]) | ||
+- LogicalValues(tuples=[[{ 0 }]]) | ||
|
||
== Optimized Physical Plan == | ||
Sink(table=[test-catalog.db1.test_table], fields=[EXPR$0, EXPR$1]) | ||
+- Calc(select=[1 AS EXPR$0, 1 AS EXPR$1]) | ||
+- Values(type=[RecordType(INTEGER ZERO)], tuples=[[{ 0 }]]) | ||
|
||
== Optimized Execution Plan == | ||
Sink(table=[test-catalog.db1.test_table], fields=[EXPR$0, EXPR$1]) | ||
+- Calc(select=[1 AS EXPR$0, 1 AS EXPR$1]) | ||
+- Values(tuples=[[{ 0 }]]) | ||
|
||
== Physical Execution Plan == | ||
{ | ||
"nodes" : [ { | ||
"id" : 1, | ||
"type" : "Source: Values(tuples=[[{ 0 }]])", | ||
"pact" : "Data Source", | ||
"contents" : "Source: Values(tuples=[[{ 0 }]])", | ||
"parallelism" : 1 | ||
}, { | ||
"id" : 2, | ||
"type" : "Calc(select=[1 AS EXPR$0, 1 AS EXPR$1])", | ||
"pact" : "Operator", | ||
"contents" : "Calc(select=[1 AS EXPR$0, 1 AS EXPR$1])", | ||
"parallelism" : 1, | ||
"predecessors" : [ { | ||
"id" : 1, | ||
"ship_strategy" : "FORWARD", | ||
"side" : "second" | ||
} ] | ||
}, { | ||
"id" : 3, | ||
"type" : "StreamingFileWriter", | ||
"pact" : "Operator", | ||
"contents" : "StreamingFileWriter", | ||
"parallelism" : 8, | ||
"predecessors" : [ { | ||
"id" : 2, | ||
"ship_strategy" : "REBALANCE", | ||
"side" : "second" | ||
} ] | ||
}, { | ||
"id" : 4, | ||
"type" : "Sink: end", | ||
"pact" : "Data Sink", | ||
"contents" : "Sink: end", | ||
"parallelism" : 1, | ||
"predecessors" : [ { | ||
"id" : 3, | ||
"ship_strategy" : "REBALANCE", | ||
"side" : "second" | ||
} ] | ||
} ] | ||
} |