Skip to content

Commit 14eb150

Browse files
committed
chore: update Prettier to version 3.7.4 in doc scripts
1 parent 82c8d54 commit 14eb150

8 files changed

Lines changed: 140 additions & 146 deletions

File tree

ci/scripts/doc_prettier_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set -euo pipefail
2121

2222
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2323
SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")"
24-
PRETTIER_VERSION="2.7.1"
24+
PRETTIER_VERSION="3.7.4"
2525
PRETTIER_TARGETS=(
2626
'{datafusion,datafusion-cli,datafusion-examples,dev,docs}/**/*.md'
2727
'!datafusion/CHANGELOG.md'

dev/update_config_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,6 @@ EOF
239239

240240

241241
echo "Running prettier"
242-
npx prettier@2.3.2 --write "$TARGET_FILE"
242+
npx prettier@3.7.4 --write "$TARGET_FILE"
243243

244244
echo "'$TARGET_FILE' successfully updated!"

dev/update_function_docs.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
set -e
2222

23+
PRETTIER_VERSION="3.7.4"
2324
SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2425
cd "${SOURCE_DIR}/../" && pwd
2526

@@ -114,7 +115,7 @@ echo "Running CLI and inserting aggregate function docs table"
114115
$PRINT_AGGREGATE_FUNCTION_DOCS_COMMAND >> "$TARGET_FILE"
115116

116117
echo "Running prettier"
117-
npx prettier@2.3.2 --write "$TARGET_FILE"
118+
npx prettier@${PRETTIER_VERSION} --write "$TARGET_FILE"
118119

119120
echo "'$TARGET_FILE' successfully updated!"
120121

@@ -158,7 +159,7 @@ echo "Running CLI and inserting scalar function docs table"
158159
$PRINT_SCALAR_FUNCTION_DOCS_COMMAND >> "$TARGET_FILE"
159160

160161
echo "Running prettier"
161-
npx prettier@2.3.2 --write "$TARGET_FILE"
162+
npx prettier@${PRETTIER_VERSION} --write "$TARGET_FILE"
162163

163164
echo "'$TARGET_FILE' successfully updated!"
164165

@@ -336,6 +337,6 @@ echo "Running CLI and inserting window function docs table"
336337
$PRINT_WINDOW_FUNCTION_DOCS_COMMAND >> "$TARGET_FILE"
337338

338339
echo "Running prettier"
339-
npx prettier@2.3.2 --write "$TARGET_FILE"
340+
npx prettier@${PRETTIER_VERSION} --write "$TARGET_FILE"
340341

341342
echo "'$TARGET_FILE' successfully updated!"

dev/update_metric_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ echo "Running CLI and inserting metric docs table"
6363
$PRINT_METRIC_DOCS_COMMAND >> "$TARGET_FILE"
6464

6565
echo "Running prettier"
66-
npx prettier@2.3.2 --write "$TARGET_FILE"
66+
npx prettier@3.7.4 --write "$TARGET_FILE"
6767

6868
echo "'$TARGET_FILE' successfully updated!"

docs/source/library-user-guide/query-optimizer.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,11 @@ When analyzing expressions, DataFusion runs boundary analysis using interval ari
453453
Consider a simple predicate like age > 18 AND age <= 25. The analysis flows as follows:
454454

455455
1. Context Initialization
456-
457456
- Begin with known column statistics
458457
- Set up initial boundaries based on column constraints
459458
- Initialize the shared analysis context
460459

461460
2. Expression Tree Walk
462-
463461
- Analyze each node in the expression tree
464462
- Propagate boundary information upward
465463
- Allow child nodes to influence parent boundaries

docs/source/user-guide/concepts-readings-events.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ This is a list of DataFusion related blog posts, articles, and other resources.
9898
- **2024-10-16** [Blog: Candle Image Segmentation](https://www.letsql.com/posts/candle-image-segmentation/)
9999

100100
- **2024-09-23 → 2024-12-02** [Talks: Carnegie Mellon University: Database Building Blocks Seminar Series - Fall 2024](https://db.cs.cmu.edu/seminar2024/)
101-
102101
- **2024-11-12** [Video: Building InfluxDB 3.0 with the FDAP Stack: Apache Flight, DataFusion, Arrow and Parquet (Paul Dix)](https://www.youtube.com/watch?v=AGS4GNGDK_4)
103102

104103
- **2024-11-04** [Video: Synnada: Towards “Unified” Compute Engines: Opportunities and Challenges (Mehmet Ozan Kabak)](https://www.youtube.com/watch?v=z38WY9uZtt4)

docs/source/user-guide/configs.md

Lines changed: 133 additions & 133 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,7 +2452,6 @@ date_bin(interval, expression, origin-timestamp)
24522452
- **interval**: Bin interval.
24532453
- **expression**: Time expression to operate on. Can be a constant, column, or function.
24542454
- **origin-timestamp**: Optional. Starting point used to determine bin boundaries. If not specified defaults 1970-01-01T00:00:00Z (the UNIX epoch in UTC). The following intervals are supported:
2455-
24562455
- nanoseconds
24572456
- microseconds
24582457
- milliseconds
@@ -2517,7 +2516,6 @@ date_part(part, expression)
25172516
#### Arguments
25182517

25192518
- **part**: Part of the date to return. The following date parts are supported:
2520-
25212519
- year
25222520
- isoyear (ISO 8601 week-numbering year)
25232521
- quarter (emits value in inclusive range [1, 4] based on which quartile of the year the date is in)
@@ -2560,7 +2558,6 @@ date_trunc(precision, expression)
25602558
- **precision**: Time precision to truncate to. The following precisions are supported:
25612559

25622560
For Timestamp types:
2563-
25642561
- year / YEAR
25652562
- quarter / QUARTER
25662563
- month / MONTH
@@ -2573,7 +2570,6 @@ date_trunc(precision, expression)
25732570
- microsecond / MICROSECOND
25742571

25752572
For Time types (hour, minute, second, millisecond, microsecond only):
2576-
25772573
- hour / HOUR
25782574
- minute / MINUTE
25792575
- second / SECOND

0 commit comments

Comments
 (0)