This is an automated email from the ASF dual-hosted git repository.
wenchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 61d4581b7b2a [SPARK-48455][DOCS][MINOR] Remove unused DECLARE
statement from IF statement example in Docs
61d4581b7b2a is described below
commit 61d4581b7b2ada0efbf93f682c39c73b9252df79
Author: Milan Dankovic <[email protected]>
AuthorDate: Tue Jan 27 19:51:49 2026 +0800
[SPARK-48455][DOCS][MINOR] Remove unused DECLARE statement from IF
statement example in Docs
### What changes were proposed in this pull request?
Remove dead code from example in If Statement documentation.
### Why are the changes needed?
It is needed to keep documentation in good shape.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
No tests needed.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #53995 from miland-db/milan-dankovic_data/improve-docs.
Authored-by: Milan Dankovic <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
---
docs/control-flow/if-stmt.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/docs/control-flow/if-stmt.md b/docs/control-flow/if-stmt.md
index 2e93dc7f6d50..a687fc5c1c64 100644
--- a/docs/control-flow/if-stmt.md
+++ b/docs/control-flow/if-stmt.md
@@ -47,7 +47,6 @@ IF condition THEN { stmt ; } [...]
```SQL
> BEGIN
DECLARE choice DOUBLE DEFAULT 3.9;
- DECLARE result STRING;
IF choice < 2 THEN
VALUES ('one fish');
ELSEIF choice < 3 THEN
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]