Commit 07b153a
committed
fix: update SparkSession retrieval method in Databricks adapter
### Description
This commit modifies the `DatabricksSessionHandle` and `SessionPythonJobHelper` classes to ensure the retrieval of the SparkSession uses the shared SparkContext instead of creating a new one. This change enhances compatibility with Databricks environments and improves error handling during SparkSession initialization.1 parent 2dfac34 commit 07b153a
3 files changed
Lines changed: 20 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
849 | | - | |
850 | | - | |
851 | | - | |
| 849 | + | |
| 850 | + | |
852 | 851 | | |
853 | 852 | | |
854 | 853 | | |
855 | 854 | | |
856 | 855 | | |
857 | | - | |
| 856 | + | |
858 | 857 | | |
859 | 858 | | |
860 | | - | |
861 | | - | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
862 | 863 | | |
863 | | - | |
| 864 | + | |
864 | 865 | | |
865 | 866 | | |
866 | 867 | | |
867 | | - | |
| 868 | + | |
868 | 869 | | |
869 | 870 | | |
870 | 871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
217 | | - | |
| 215 | + | |
| 216 | + | |
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
223 | | - | |
| 222 | + | |
224 | 223 | | |
225 | 224 | | |
226 | | - | |
227 | | - | |
228 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
229 | 231 | | |
230 | 232 | | |
231 | | - | |
| 233 | + | |
232 | 234 | | |
233 | 235 | | |
234 | 236 | | |
| |||
0 commit comments