Skip to content

Commit 463d842

Browse files
yiaanyalambclaude
authored
[asf-site] docs: publish 55.0.0 and 55.1.0 documentation snapshots (#25881)
- related to #17071 Publish complete generated documentation for the 55.0.0 and 55.1.0 release tags under versions/ on the asf-site branch. Built using the tagged docs/build.sh and the small Sphinx configuration overlay in #24792. The generated pages include a version picker, release-specific canonical URLs, search indexes and static assets. Verified locally with browser navigation across all three versions and the missing-page fallback. This branch contains only one publication commit on top of Apache asf-site; - merging should follow the archive-retention change in #25880. --------- Co-authored-by: Andrew Lamb <[email protected]> Co-authored-by: Claude Fable 5.1 <[email protected]>
1 parent 0e0e62e commit 463d842

464 files changed

Lines changed: 236970 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
#!/usr/bin/env bash
2+
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
# This script runs all the Rust lints locally the same way the
21+
# DataFusion CI does
22+
#
23+
# Note: The installed checking tools (e.g., taplo) are not guaranteed to match
24+
# the CI versions for simplicity, there might be some minor differences. Check
25+
# `.github/workflows` for the CI versions.
26+
#
27+
#
28+
#
29+
# For each lint scripts:
30+
#
31+
# By default, they run in check mode:
32+
# ./ci/scripts/rust_fmt.sh
33+
#
34+
# With `--write`, scripts perform best-effort auto fixes:
35+
# ./ci/scripts/rust_fmt.sh --write
36+
#
37+
# The `--write` flag assumes a clean git repository (no uncommitted changes); to force
38+
# auto fixes even if there are unstaged changes, use `--allow-dirty`:
39+
# ./ci/scripts/rust_fmt.sh --write --allow-dirty
40+
#
41+
# New scripts can use `rust_fmt.sh` as a reference.
42+
43+
set -euo pipefail
44+
45+
usage() {
46+
cat >&2 <<EOF
47+
Usage: $0 [--write] [--allow-dirty]
48+
49+
Runs the local Rust lint suite similar to CI.
50+
--write Run formatters, clippy and other non-functional checks in best-effort write/fix mode (requires a clean git worktree, no uncommitted changes; some checks are test-only and ignore this flag).
51+
--allow-dirty Allow \`--write\` to run even when the git worktree has uncommitted changes.
52+
EOF
53+
exit 1
54+
}
55+
56+
ensure_tool() {
57+
local cmd="$1"
58+
local install_cmd="$2"
59+
if ! command -v "$cmd" &> /dev/null; then
60+
echo "Installing $cmd using: $install_cmd"
61+
eval "$install_cmd"
62+
fi
63+
}
64+
65+
MODE="check"
66+
ALLOW_DIRTY=0
67+
68+
while [[ $# -gt 0 ]]; do
69+
case "$1" in
70+
--write)
71+
MODE="write"
72+
;;
73+
--allow-dirty)
74+
ALLOW_DIRTY=1
75+
;;
76+
-h|--help)
77+
usage
78+
;;
79+
*)
80+
usage
81+
;;
82+
esac
83+
shift
84+
done
85+
86+
SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")"
87+
88+
ensure_tool "taplo" "cargo install taplo-cli --locked"
89+
ensure_tool "hawkeye" "cargo install hawkeye --locked"
90+
ensure_tool "typos" "cargo install typos-cli --locked"
91+
92+
run_step() {
93+
local name="$1"
94+
shift
95+
echo "[${SCRIPT_NAME}] Running ${name}"
96+
"$@"
97+
}
98+
99+
declare -a WRITE_STEPS=(
100+
"ci/scripts/rust_fmt.sh|true"
101+
"ci/scripts/rust_clippy.sh|true"
102+
"ci/scripts/rust_toml_fmt.sh|true"
103+
"ci/scripts/license_header.sh|true"
104+
"ci/scripts/typos_check.sh|true"
105+
"ci/scripts/doc_prettier_check.sh|true"
106+
)
107+
108+
declare -a READONLY_STEPS=(
109+
"ci/scripts/check_no_cargo_install_in_workflows.sh|false"
110+
"ci/scripts/rust_docs.sh|false"
111+
)
112+
113+
for entry in "${WRITE_STEPS[@]}" "${READONLY_STEPS[@]}"; do
114+
IFS='|' read -r script_path supports_write <<<"$entry"
115+
script_name="$(basename "$script_path")"
116+
args=()
117+
if [[ "$supports_write" == "true" && "$MODE" == "write" ]]; then
118+
args+=(--write)
119+
[[ $ALLOW_DIRTY -eq 1 ]] && args+=(--allow-dirty)
120+
fi
121+
if [[ ${#args[@]} -gt 0 ]]; then
122+
run_step "$script_name" "$script_path" "${args[@]}"
123+
else
124+
run_step "$script_name" "$script_path"
125+
fi
126+
done
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
A,b,c
2+
1,2,3
3+
1,10,5
4+
2,5,6
5+
2,1,4
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
set -euo pipefail
21+
22+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
23+
SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")"
24+
source "${SCRIPT_DIR}/utils/git.sh"
25+
26+
MODE="check"
27+
ALLOW_DIRTY=0
28+
29+
usage() {
30+
cat >&2 <<EOF
31+
Usage: $0 [--write] [--allow-dirty]
32+
33+
Runs \`cargo fmt --all -- --check\` by default to verify Rust formatting.
34+
--write Run \`cargo fmt --all\` to auto-fix formatting (requires a clean git worktree, no uncommitted changes).
35+
--allow-dirty Allow \`--write\` to run even when the git worktree has uncommitted changes.
36+
EOF
37+
exit 1
38+
}
39+
40+
while [[ $# -gt 0 ]]; do
41+
case "$1" in
42+
--write)
43+
MODE="write"
44+
;;
45+
--allow-dirty)
46+
ALLOW_DIRTY=1
47+
;;
48+
-h|--help)
49+
usage
50+
;;
51+
*)
52+
usage
53+
;;
54+
esac
55+
shift
56+
done
57+
58+
if [[ "$MODE" == "write" && $ALLOW_DIRTY -eq 0 ]]; then
59+
require_clean_work_tree "$SCRIPT_NAME" || exit 1
60+
fi
61+
62+
if [[ "$MODE" == "write" ]]; then
63+
echo "[${SCRIPT_NAME}] \`cargo fmt --all\`"
64+
cargo fmt --all
65+
else
66+
echo "[${SCRIPT_NAME}] \`cargo fmt --all -- --check\`"
67+
cargo fmt --all -- --check
68+
fi
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
set -euo pipefail
21+
22+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
23+
SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")"
24+
25+
source "${SCRIPT_DIR}/utils/git.sh"
26+
27+
MODE="check"
28+
ALLOW_DIRTY=0
29+
30+
usage() {
31+
cat >&2 <<EOF
32+
Usage: $0 [--write] [--allow-dirty]
33+
34+
Runs \`taplo format --check\` by default to verify TOML formatting.
35+
--write Run \`taplo format\` to auto-fix formatting (best-effort; requires a clean git worktree, no uncommitted changes).
36+
--allow-dirty Allow \`--write\` to run even when the git worktree has uncommitted changes.
37+
EOF
38+
exit 1
39+
}
40+
41+
while [[ $# -gt 0 ]]; do
42+
case "$1" in
43+
--write)
44+
MODE="write"
45+
;;
46+
--allow-dirty)
47+
ALLOW_DIRTY=1
48+
;;
49+
-h|--help)
50+
usage
51+
;;
52+
*)
53+
usage
54+
;;
55+
esac
56+
shift
57+
done
58+
59+
if [[ "$MODE" == "write" && $ALLOW_DIRTY -eq 0 ]]; then
60+
require_clean_work_tree "$SCRIPT_NAME" || exit 1
61+
fi
62+
63+
if [[ "$MODE" == "write" ]]; then
64+
echo "[${SCRIPT_NAME}] \`taplo format\`"
65+
taplo format
66+
else
67+
echo "[${SCRIPT_NAME}] \`taplo format --check\`"
68+
taplo format --check
69+
fi
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Licensed to the Apache Software Foundation (ASF) under one
4+
# or more contributor license agreements. See the NOTICE file
5+
# distributed with this work for additional information
6+
# regarding copyright ownership. The ASF licenses this file
7+
# to you under the Apache License, Version 2.0 (the
8+
# "License"); you may not use this file except in compliance
9+
# with the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
set -euo pipefail
21+
22+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
23+
SCRIPT_NAME="$(basename "${BASH_SOURCE[0]}")"
24+
CLIPPY_FEATURES="avro,integration-tests,extended_tests"
25+
CLIPPY_ARGS=(--all-targets --workspace --features "$CLIPPY_FEATURES")
26+
CLIPPY_LINT_ARGS=(-- -D warnings)
27+
28+
source "${SCRIPT_DIR}/utils/git.sh"
29+
30+
MODE="check"
31+
ALLOW_DIRTY=0
32+
33+
usage() {
34+
cat >&2 <<EOF
35+
Usage: $SCRIPT_NAME [--write] [--allow-dirty]
36+
37+
Runs \`cargo clippy\` to lint.
38+
--write Run \`cargo clippy --fix\` to apply fixes for clippy lints (requires a clean git worktree, no uncommitted changes).
39+
--allow-dirty Allow \`--write\` to run even when the git worktree has uncommitted or staged changes.
40+
EOF
41+
exit 1
42+
}
43+
44+
while [[ $# -gt 0 ]]; do
45+
case "$1" in
46+
--write)
47+
MODE="write"
48+
;;
49+
--allow-dirty)
50+
ALLOW_DIRTY=1
51+
;;
52+
-h|--help)
53+
usage
54+
;;
55+
*)
56+
usage
57+
;;
58+
esac
59+
shift
60+
done
61+
62+
if [[ "$MODE" == "write" && $ALLOW_DIRTY -eq 0 ]]; then
63+
require_clean_work_tree "$SCRIPT_NAME" || exit 1
64+
fi
65+
66+
CLIPPY_CMD=(cargo clippy)
67+
if [[ "$MODE" == "write" ]]; then
68+
CLIPPY_CMD+=(--fix)
69+
if [[ $ALLOW_DIRTY -eq 1 ]]; then
70+
CLIPPY_CMD+=(--allow-dirty --allow-staged)
71+
fi
72+
fi
73+
CLIPPY_CMD+=("${CLIPPY_ARGS[@]}" "${CLIPPY_LINT_ARGS[@]}")
74+
75+
echo "[${SCRIPT_NAME}] \`${CLIPPY_CMD[*]}\`"
76+
"${CLIPPY_CMD[@]}"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
-- Test scanning out dictionary columns
2+
select dict_10_optional from t;
3+
select dict_100_optional from t;
4+
select dict_1000_optional from t;
5+
6+
-- Test filtering dictionary columns
7+
select count(*) from t where dict_10_required = 'prefix#0';
8+
select count(*) from t where dict_100_required = 'prefix#0';
9+
select count(*) from t where dict_1000_required = 'prefix#0';
10+
11+
-- Test select integers
12+
select i64_optional from t where dict_10_required = 'prefix#2' and dict_1000_required = 'prefix#10';
13+
select i64_required from t where dict_10_required = 'prefix#2' and dict_1000_required = 'prefix#10';
14+
15+
-- Test select integers
16+
select string_optional from t where dict_10_required = 'prefix#1' and dict_1000_required = 'prefix#1';
17+
select string_required from t where dict_10_required = 'prefix#1' and dict_1000_required = 'prefix#1';
18+
19+
-- Test select distinct
20+
select distinct dict_10_required from t where dict_1000_optional is not NULL and i64_optional > 0;
21+
select distinct dict_10_required from t where dict_1000_optional is not NULL and i64_optional > 0;
22+
select distinct dict_10_required from t where dict_1000_optional is not NULL and i64_required > 0;
23+
select distinct dict_10_required from t where dict_1000_optional is not NULL and i64_required > 0;
24+
25+
-- Test basic aggregations
26+
select dict_10_optional, count(*) from t group by dict_10_optional;
27+
select dict_10_optional, dict_100_optional, count(*) from t group by dict_10_optional, dict_100_optional;
28+
29+
-- Test float aggregations
30+
select dict_10_optional, dict_100_optional, MIN(f64_required), MAX(f64_required), AVG(f64_required) from t group by dict_10_optional, dict_100_optional;
31+
select dict_10_optional, dict_100_optional, MIN(f64_optional), MAX(f64_optional), AVG(f64_optional) from t group by dict_10_optional, dict_100_optional;
32+
select dict_10_required, dict_100_required, MIN(f64_optional), MAX(f64_optional), AVG(f64_optional) from t group by dict_10_required, dict_100_required;

0 commit comments

Comments
 (0)