Commit 11e2e42
committed
[SPARK-44481][CONNECT][PYTHON] Make pyspark.sql.is_remote an API
### What changes were proposed in this pull request?
This PR proposes to expose and document `pyspark.sql.is_remote` as an API.
### Why are the changes needed?
For the end users to be able to do if-else, e.g., for dispatching the code path to the legacy mode or connect mode.
### Does this PR introduce _any_ user-facing change?
Yes, it exposes a method as an API.
### How was this patch tested?
Manually built and checked the documentation.
Closes #42072 from HyukjinKwon/SPARK-44481.
Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>1 parent fa9725f commit 11e2e42
File tree
3 files changed
+22
-1
lines changed- python
- docs/source/reference/pyspark.sql
- pyspark/sql
3 files changed
+22
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
149 | 168 | | |
150 | 169 | | |
151 | 170 | | |
| |||
0 commit comments