beryllw commented on PR #2779:
URL: https://github.com/apache/fluss/pull/2779#issuecomment-4072063185
```
INSERT INTO %s (id, amount) VALUES (1, 100), (2, 200), (3, 300);
== Abstract Syntax Tree ==
LogicalSink(table=[testcatalog.defaultdb.insert_values_union_table],
targetColumns=[[0],[2]], fields=[id, auto_increment_id, amount])
+- LogicalProject(id=[CAST($0):INTEGER], auto_increment_id=[$1],
amount=[CAST($2):BIGINT])
+- LogicalUnion(all=[true])
:- LogicalProject(EXPR$0=[1], EXPR$1=[null:BIGINT], EXPR$2=[100])
: +- LogicalValues(tuples=[[{ 0 }]])
:- LogicalProject(EXPR$0=[2], EXPR$1=[null:BIGINT], EXPR$2=[200])
: +- LogicalValues(tuples=[[{ 0 }]])
+- LogicalProject(EXPR$0=[3], EXPR$1=[null:BIGINT], EXPR$2=[300])
+- LogicalValues(tuples=[[{ 0 }]])
== Optimized Physical Plan ==
Sink(table=[testcatalog.defaultdb.insert_values_union_table],
targetColumns=[[0],[2]], fields=[id, auto_increment_id, amount])
+- Union(all=[true], union=[id, auto_increment_id, amount])
:- Calc(select=[CAST(1 AS INTEGER) AS id, null:BIGINT AS
auto_increment_id, CAST(100:BIGINT AS BIGINT) AS amount])
: +- Values(type=[RecordType(INTEGER ZERO)], tuples=[[{ 0 }]])
:- Calc(select=[CAST(2 AS INTEGER) AS id, null:BIGINT AS
auto_increment_id, CAST(200:BIGINT AS BIGINT) AS amount])
: +- Values(type=[RecordType(INTEGER ZERO)], tuples=[[{ 0 }]])
+- Calc(select=[CAST(3 AS INTEGER) AS id, null:BIGINT AS
auto_increment_id, CAST(300:BIGINT AS BIGINT) AS amount])
+- Values(type=[RecordType(INTEGER ZERO)], tuples=[[{ 0 }]])
== Optimized Execution Plan ==
Sink(table=[testcatalog.defaultdb.insert_values_union_table],
targetColumns=[[0],[2]], fields=[id, auto_increment_id, amount])
+- Union(all=[true], union=[id, auto_increment_id, amount])
:- Calc(select=[CAST(1 AS INTEGER) AS id, null:BIGINT AS
auto_increment_id, CAST(100 AS BIGINT) AS amount])
: +- Values(tuples=[[{ 0 }]])(reuse_id=[1])
:- Calc(select=[CAST(2 AS INTEGER) AS id, null:BIGINT AS
auto_increment_id, CAST(200 AS BIGINT) AS amount])
: +- Reused(reference_id=[1])
+- Calc(select=[CAST(3 AS INTEGER) AS id, null:BIGINT AS
auto_increment_id, CAST(300 AS BIGINT) AS amount])
+- Reused(reference_id=[1])
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]