Skip to content

Commit 4477423

Browse files
committed
regen
1 parent 41977fd commit 4477423

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

sql/core/src/test/resources/sql-tests/results/explain.sql.out

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,22 @@ struct<plan:string>
5555

5656
== Analyzed Logical Plan ==
5757
sum(DISTINCT val): bigint
58-
Aggregate [sum(distinct cast(val#x as bigint)) AS sum(DISTINCT val)#xL]
58+
Aggregate [sum(distinct val#x) AS sum(DISTINCT val)#xL]
5959
+- SubqueryAlias spark_catalog.default.explain_temp1
6060
+- Relation[key#x,val#x] parquet
6161

6262
== Optimized Logical Plan ==
63-
Aggregate [sum(distinct cast(val#x as bigint)) AS sum(DISTINCT val)#xL]
63+
Aggregate [sum(distinct val#x) AS sum(DISTINCT val)#xL]
6464
+- Project [val#x]
6565
+- Relation[key#x,val#x] parquet
6666

6767
== Physical Plan ==
68-
*HashAggregate(keys=[], functions=[sum(distinct cast(val#x as bigint)#xL)], output=[sum(DISTINCT val)#xL])
68+
*HashAggregate(keys=[], functions=[sum(distinct val#x)], output=[sum(DISTINCT val)#xL])
6969
+- Exchange SinglePartition, ENSURE_REQUIREMENTS, [id=#x]
70-
+- *HashAggregate(keys=[], functions=[partial_sum(distinct cast(val#x as bigint)#xL)], output=[sum#xL])
71-
+- *HashAggregate(keys=[cast(val#x as bigint)#xL], functions=[], output=[cast(val#x as bigint)#xL])
72-
+- Exchange hashpartitioning(cast(val#x as bigint)#xL, 4), ENSURE_REQUIREMENTS, [id=#x]
73-
+- *HashAggregate(keys=[cast(val#x as bigint) AS cast(val#x as bigint)#xL], functions=[], output=[cast(val#x as bigint)#xL])
70+
+- *HashAggregate(keys=[], functions=[partial_sum(distinct val#x)], output=[sum#xL])
71+
+- *HashAggregate(keys=[val#x], functions=[], output=[val#x])
72+
+- Exchange hashpartitioning(val#x, 4), ENSURE_REQUIREMENTS, [id=#x]
73+
+- *HashAggregate(keys=[val#x], functions=[], output=[val#x])
7474
+- *ColumnarToRow
7575
+- FileScan parquet default.explain_temp1[val#x] Batched: true, DataFilters: [], Format: Parquet, Location [not included in comparison]/{warehouse_dir}/explain_temp1], PartitionFilters: [], PushedFilters: [], ReadSchema: struct<val:int>
7676

@@ -620,7 +620,7 @@ Input [2]: [key#x, val#x]
620620
(15) HashAggregate [codegen id : 1]
621621
Input [1]: [key#x]
622622
Keys: []
623-
Functions [1]: [partial_avg(cast(key#x as bigint))]
623+
Functions [1]: [partial_avg(key#x)]
624624
Aggregate Attributes [2]: [sum#x, count#xL]
625625
Results [2]: [sum#x, count#xL]
626626

@@ -631,9 +631,9 @@ Arguments: SinglePartition, ENSURE_REQUIREMENTS, [id=#x]
631631
(17) HashAggregate [codegen id : 2]
632632
Input [2]: [sum#x, count#xL]
633633
Keys: []
634-
Functions [1]: [avg(cast(key#x as bigint))]
635-
Aggregate Attributes [1]: [avg(cast(key#x as bigint))#x]
636-
Results [1]: [avg(cast(key#x as bigint))#x AS avg(key)#x]
634+
Functions [1]: [avg(key#x)]
635+
Aggregate Attributes [1]: [avg(key#x)#x]
636+
Results [1]: [avg(key#x)#x AS avg(key)#x]
637637

638638

639639
-- !query
@@ -684,7 +684,7 @@ Input [1]: [key#x]
684684
(6) HashAggregate [codegen id : 1]
685685
Input [1]: [key#x]
686686
Keys: []
687-
Functions [1]: [partial_avg(cast(key#x as bigint))]
687+
Functions [1]: [partial_avg(key#x)]
688688
Aggregate Attributes [2]: [sum#x, count#xL]
689689
Results [2]: [sum#x, count#xL]
690690

@@ -695,9 +695,9 @@ Arguments: SinglePartition, ENSURE_REQUIREMENTS, [id=#x]
695695
(8) HashAggregate [codegen id : 2]
696696
Input [2]: [sum#x, count#xL]
697697
Keys: []
698-
Functions [1]: [avg(cast(key#x as bigint))]
699-
Aggregate Attributes [1]: [avg(cast(key#x as bigint))#x]
700-
Results [1]: [avg(cast(key#x as bigint))#x AS avg(key)#x]
698+
Functions [1]: [avg(key#x)]
699+
Aggregate Attributes [1]: [avg(key#x)#x]
700+
Results [1]: [avg(key#x)#x AS avg(key)#x]
701701

702702
Subquery:2 Hosting operator id = 3 Hosting Expression = ReusedSubquery Subquery scalar-subquery#x, [id=#x]
703703

@@ -895,7 +895,7 @@ Input [2]: [key#x, val#x]
895895
(3) HashAggregate [codegen id : 1]
896896
Input [2]: [key#x, val#x]
897897
Keys: []
898-
Functions [3]: [partial_count(val#x), partial_sum(cast(key#x as bigint)), partial_count(key#x) FILTER (WHERE (val#x > 1))]
898+
Functions [3]: [partial_count(val#x), partial_sum(key#x), partial_count(key#x) FILTER (WHERE (val#x > 1))]
899899
Aggregate Attributes [3]: [count#xL, sum#xL, count#xL]
900900
Results [3]: [count#xL, sum#xL, count#xL]
901901

@@ -906,9 +906,9 @@ Arguments: SinglePartition, ENSURE_REQUIREMENTS, [id=#x]
906906
(5) HashAggregate [codegen id : 2]
907907
Input [3]: [count#xL, sum#xL, count#xL]
908908
Keys: []
909-
Functions [3]: [count(val#x), sum(cast(key#x as bigint)), count(key#x)]
910-
Aggregate Attributes [3]: [count(val#x)#xL, sum(cast(key#x as bigint))#xL, count(key#x)#xL]
911-
Results [2]: [(count(val#x)#xL + sum(cast(key#x as bigint))#xL) AS TOTAL#xL, count(key#x)#xL AS count(key) FILTER (WHERE (val > 1))#xL]
909+
Functions [3]: [count(val#x), sum(key#x), count(key#x)]
910+
Aggregate Attributes [3]: [count(val#x)#xL, sum(key#x)#xL, count(key#x)#xL]
911+
Results [2]: [(count(val#x)#xL + sum(key#x)#xL) AS TOTAL#xL, count(key#x)#xL AS count(key) FILTER (WHERE (val > 1))#xL]
912912

913913

914914
-- !query

0 commit comments

Comments
 (0)