Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ insert_final_newline = false
indent_style = tab
indent_size = 4

# For verify plan tests
[*Test.xml]
indent_style = space
indent_size = 2
Comment on lines +274 to +276
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sync with DiffRepository where indentation is in spaces

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍 Also had this indentation issue when manually updating xmls


[*.py]
indent_style = space
indent_size = 4

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ MultipleInput(readOrder=[0,1], members=[\nHashJoin(joinType=[InnerJoin], where=[
]]>
</Resource>
</TestCase>
<TestCase name="testExplainWithAgg[extended=true]">
<TestCase name="testExplainWithAgg[extended=false]">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here and all other xml files: were dropped and completely regenerated

<Resource name="explain">
<![CDATA[== Abstract Syntax Tree ==
LogicalProject(EXPR$0=[$1])
Expand All @@ -103,12 +103,12 @@ LogicalProject(EXPR$0=[$1])
+- LogicalTableScan(table=[[default_catalog, default_database, MyTable1]])

== Optimized Physical Plan ==
Calc(select=[EXPR$0]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- HashAggregate(isMerge=[true], groupBy=[a], select=[a, Final_COUNT(count1$0) AS EXPR$0]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- Exchange(distribution=[hash[a]]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- LocalHashAggregate(groupBy=[a], select=[a, Partial_COUNT(*) AS count1$0]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- Calc(select=[a]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- BoundedStreamScan(table=[[default_catalog, default_database, MyTable1]], fields=[a, b, c]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
Calc(select=[EXPR$0])
+- HashAggregate(isMerge=[true], groupBy=[a], select=[a, Final_COUNT(count1$0) AS EXPR$0])
+- Exchange(distribution=[hash[a]])
+- LocalHashAggregate(groupBy=[a], select=[a, Partial_COUNT(*) AS count1$0])
+- Calc(select=[a])
+- BoundedStreamScan(table=[[default_catalog, default_database, MyTable1]], fields=[a, b, c])

== Optimized Execution Plan ==
Calc(select=[EXPR$0])
Expand All @@ -120,7 +120,7 @@ Calc(select=[EXPR$0])
]]>
</Resource>
</TestCase>
<TestCase name="testExplainWithAgg[extended=false]">
<TestCase name="testExplainWithAgg[extended=true]">
<Resource name="explain">
<![CDATA[== Abstract Syntax Tree ==
LogicalProject(EXPR$0=[$1])
Expand All @@ -129,12 +129,12 @@ LogicalProject(EXPR$0=[$1])
+- LogicalTableScan(table=[[default_catalog, default_database, MyTable1]])

== Optimized Physical Plan ==
Calc(select=[EXPR$0])
+- HashAggregate(isMerge=[true], groupBy=[a], select=[a, Final_COUNT(count1$0) AS EXPR$0])
+- Exchange(distribution=[hash[a]])
+- LocalHashAggregate(groupBy=[a], select=[a, Partial_COUNT(*) AS count1$0])
+- Calc(select=[a])
+- BoundedStreamScan(table=[[default_catalog, default_database, MyTable1]], fields=[a, b, c])
Calc(select=[EXPR$0]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- HashAggregate(isMerge=[true], groupBy=[a], select=[a, Final_COUNT(count1$0) AS EXPR$0]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- Exchange(distribution=[hash[a]]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- LocalHashAggregate(groupBy=[a], select=[a, Partial_COUNT(*) AS count1$0]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- Calc(select=[a]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- BoundedStreamScan(table=[[default_catalog, default_database, MyTable1]], fields=[a, b, c]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}

== Optimized Execution Plan ==
Calc(select=[EXPR$0])
Expand Down Expand Up @@ -446,35 +446,35 @@ SortLimit(orderBy=[a ASC], offset=[0], fetch=[5], global=[true])
]]>
</Resource>
</TestCase>
<TestCase name="testExplainWithTableSourceScan[extended=true]">
<TestCase name="testExplainWithTableSourceScan[extended=false]">
<Resource name="explain">
<![CDATA[== Abstract Syntax Tree ==
LogicalProject(a=[$0], b=[$1], c=[$2])
+- LogicalTableScan(table=[[default_catalog, default_database, MyTable]])

== Optimized Physical Plan ==
TableSourceScan(table=[[default_catalog, default_database, MyTable]], fields=[a, b, c]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
TableSourceScan(table=[[default_catalog, default_database, MyTable]], fields=[a, b, c])

== Optimized Execution Plan ==
TableSourceScan(table=[[default_catalog, default_database, MyTable]], fields=[a, b, c])
]]>
</Resource>
</TestCase>
<TestCase name="testExplainWithTableSourceScan[extended=false]">
<TestCase name="testExplainWithTableSourceScan[extended=true]">
<Resource name="explain">
<![CDATA[== Abstract Syntax Tree ==
LogicalProject(a=[$0], b=[$1], c=[$2])
+- LogicalTableScan(table=[[default_catalog, default_database, MyTable]])

== Optimized Physical Plan ==
TableSourceScan(table=[[default_catalog, default_database, MyTable]], fields=[a, b, c])
TableSourceScan(table=[[default_catalog, default_database, MyTable]], fields=[a, b, c]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}

== Optimized Execution Plan ==
TableSourceScan(table=[[default_catalog, default_database, MyTable]], fields=[a, b, c])
]]>
</Resource>
</TestCase>
<TestCase name="testExplainWithUnion[extended=true]">
<TestCase name="testExplainWithUnion[extended=false]">
<Resource name="explain">
<![CDATA[== Abstract Syntax Tree ==
LogicalUnion(all=[true])
Expand All @@ -484,9 +484,9 @@ LogicalUnion(all=[true])
+- LogicalTableScan(table=[[default_catalog, default_database, MyTable2]])

== Optimized Physical Plan ==
Union(all=[true], union=[a, b, c]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
:- BoundedStreamScan(table=[[default_catalog, default_database, MyTable1]], fields=[a, b, c]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- BoundedStreamScan(table=[[default_catalog, default_database, MyTable2]], fields=[d, e, f]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
Union(all=[true], union=[a, b, c])
:- BoundedStreamScan(table=[[default_catalog, default_database, MyTable1]], fields=[a, b, c])
+- BoundedStreamScan(table=[[default_catalog, default_database, MyTable2]], fields=[d, e, f])

== Optimized Execution Plan ==
Union(all=[true], union=[a, b, c])
Expand All @@ -495,7 +495,7 @@ Union(all=[true], union=[a, b, c])
]]>
</Resource>
</TestCase>
<TestCase name="testExplainWithUnion[extended=false]">
<TestCase name="testExplainWithUnion[extended=true]">
<Resource name="explain">
<![CDATA[== Abstract Syntax Tree ==
LogicalUnion(all=[true])
Expand All @@ -505,9 +505,9 @@ LogicalUnion(all=[true])
+- LogicalTableScan(table=[[default_catalog, default_database, MyTable2]])

== Optimized Physical Plan ==
Union(all=[true], union=[a, b, c])
:- BoundedStreamScan(table=[[default_catalog, default_database, MyTable1]], fields=[a, b, c])
+- BoundedStreamScan(table=[[default_catalog, default_database, MyTable2]], fields=[d, e, f])
Union(all=[true], union=[a, b, c]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
:- BoundedStreamScan(table=[[default_catalog, default_database, MyTable1]], fields=[a, b, c]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}
+- BoundedStreamScan(table=[[default_catalog, default_database, MyTable2]], fields=[d, e, f]): rowcount = , cumulative cost = {rows, cpu, io, network, memory}

== Optimized Execution Plan ==
Union(all=[true], union=[a, b, c])
Expand Down
Loading