Skip to content

Commit de2f528

Browse files
committed
Improve description of function migration
1 parent 1340869 commit de2f528

7 files changed

+62
-9
lines changed

dev/update_function_docs.sh

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ dev/update_function_docs.sh file for updating surrounding text.
5858
5959
# Aggregate Functions (NEW)
6060
61-
This page is a WIP and will replace the Aggregate Functions page once completed.
61+
Note: this documentation is in the process of being migrated to be [automatically created from the codebase].
62+
Please see the [Aggregate Functions (old)](aggregate_functions.md) page for
63+
the rest of the documentation.
64+
65+
[automatically created from the codebase]: https://github.com/apache/datafusion/issues/12740
6266
6367
Aggregate functions operate on a set of values to compute a single result.
6468
EOF
@@ -105,7 +109,12 @@ dev/update_function_docs.sh file for updating surrounding text.
105109
106110
# Scalar Functions (NEW)
107111
108-
This page is a WIP and will replace the Scalar Functions page once completed.
112+
Note: this documentation is in the process of being migrated to be [automatically created from the codebase].
113+
Please see the [Scalar Functions (old)](aggregate_functions.md) page for
114+
the rest of the documentation.
115+
116+
[automatically created from the codebase]: https://github.com/apache/datafusion/issues/12740
117+
109118
EOF
110119

111120
echo "Running CLI and inserting scalar function docs table"
@@ -151,9 +160,16 @@ dev/update_function_docs.sh file for updating surrounding text.
151160
152161
# Window Functions (NEW)
153162
154-
This page is a WIP and will replace the Window Functions page once completed.
163+
Note: this documentation is in the process of being migrated to be [automatically created from the codebase].
164+
Please see the [Window Functions (Old)](window_functions.md) page for
165+
the rest of the documentation.
166+
167+
[automatically created from the codebase]: https://github.com/apache/datafusion/issues/12740
155168
156-
A _window function_ performs a calculation across a set of table rows that are somehow related to the current row. This is comparable to the type of calculation that can be done with an aggregate function. However, window functions do not cause rows to become grouped into a single output row like non-window aggregate calls would. Instead, the rows retain their separate identities. Behind the scenes, the window function is able to access more than just the current row of the query result
169+
A _window function_ performs a calculation across a set of table rows that are somehow related to the current row.
170+
This is comparable to the type of calculation that can be done with an aggregate function.
171+
However, window functions do not cause rows to become grouped into a single output row like non-window aggregate calls would.
172+
Instead, the rows retain their separate identities. Behind the scenes, the window function is able to access more than just the current row of the query result
157173
158174
Here is an example that shows how to compare each employee's salary with the average salary in his or her department:
159175

docs/source/user-guide/sql/aggregate_functions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121

2222
Aggregate functions operate on a set of values to compute a single result.
2323

24+
Note: this documentation is in the process of being migrated to be [automatically created from the codebase].
25+
Please see the [Aggregate Functions (new)](aggregate_functions_new.md) page for
26+
the rest of the documentation.
27+
28+
[automatically created from the codebase]: https://github.com/apache/datafusion/issues/12740
29+
2430
## General
2531

2632
- [avg](#avg)

docs/source/user-guide/sql/aggregate_functions_new.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ dev/update_function_docs.sh file for updating surrounding text.
2727

2828
# Aggregate Functions (NEW)
2929

30-
This page is a WIP and will replace the Aggregate Functions page once completed.
30+
Note: this documentation is in the process of being migrated to be [automatically created from the codebase].
31+
Please see the [Aggregate Functions (old)](aggregate_functions.md) page for
32+
the rest of the documentation.
33+
34+
[automatically created from the codebase]: https://github.com/apache/datafusion/issues/12740
3135

3236
Aggregate functions operate on a set of values to compute a single result.
3337

docs/source/user-guide/sql/scalar_functions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@
1919

2020
# Scalar Functions
2121

22+
Scalar functions operate on a single row at a time and return a single value.
23+
24+
Note: this documentation is in the process of being migrated to be [automatically created from the codebase].
25+
Please see the [Scalar Functions (new)](scalar_functions_new.md) page for
26+
the rest of the documentation.
27+
28+
[automatically created from the codebase]: https://github.com/apache/datafusion/issues/12740
29+
2230
## Math Functions
2331

2432
- [abs](#abs)

docs/source/user-guide/sql/scalar_functions_new.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ dev/update_function_docs.sh file for updating surrounding text.
2727

2828
# Scalar Functions (NEW)
2929

30-
This page is a WIP and will replace the Scalar Functions page once completed.
30+
Note: this documentation is in the process of being migrated to be [automatically created from the codebase].
31+
Please see the [Scalar Functions (old)](aggregate_functions.md) page for
32+
the rest of the documentation.
33+
34+
[automatically created from the codebase]: https://github.com/apache/datafusion/issues/12740
3135

3236
## Math Functions
3337

docs/source/user-guide/sql/window_functions.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@
1919

2020
# Window Functions
2121

22-
A _window function_ performs a calculation across a set of table rows that are somehow related to the current row. This is comparable to the type of calculation that can be done with an aggregate function. However, window functions do not cause rows to become grouped into a single output row like non-window aggregate calls would. Instead, the rows retain their separate identities. Behind the scenes, the window function is able to access more than just the current row of the query result
22+
A _window function_ performs a calculation across a set of table rows that are somehow related to the current row.
23+
24+
Note: this documentation is in the process of being migrated to be [automatically created from the codebase].
25+
Please see the [Window Functions (new)](window_functions_new.md) page for
26+
the rest of the documentation.
27+
28+
[automatically created from the codebase]: https://github.com/apache/datafusion/issues/12740
29+
30+
Window functions are comparable to the type of calculation that can be done with an aggregate function. However, window functions do not cause rows to become grouped into a single output row like non-window aggregate calls would. Instead, the rows retain their separate identities. Behind the scenes, the window function is able to access more than just the current row of the query result
2331

2432
Here is an example that shows how to compare each employee's salary with the average salary in his or her department:
2533

docs/source/user-guide/sql/window_functions_new.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ dev/update_function_docs.sh file for updating surrounding text.
2727

2828
# Window Functions (NEW)
2929

30-
This page is a WIP and will replace the Window Functions page once completed.
30+
Note: this documentation is in the process of being migrated to be [automatically created from the codebase].
31+
Please see the [Window Functions (Old)](window_functions.md) page for
32+
the rest of the documentation.
3133

32-
A _window function_ performs a calculation across a set of table rows that are somehow related to the current row. This is comparable to the type of calculation that can be done with an aggregate function. However, window functions do not cause rows to become grouped into a single output row like non-window aggregate calls would. Instead, the rows retain their separate identities. Behind the scenes, the window function is able to access more than just the current row of the query result
34+
[automatically created from the codebase]: https://github.com/apache/datafusion/issues/12740
35+
36+
A _window function_ performs a calculation across a set of table rows that are somehow related to the current row.
37+
This is comparable to the type of calculation that can be done with an aggregate function.
38+
However, window functions do not cause rows to become grouped into a single output row like non-window aggregate calls would.
39+
Instead, the rows retain their separate identities. Behind the scenes, the window function is able to access more than just the current row of the query result
3340

3441
Here is an example that shows how to compare each employee's salary with the average salary in his or her department:
3542

0 commit comments

Comments
 (0)