Commit 6abc4a1
committed
[SPARK-45841][SQL] Expose stack trace by
### What changes were proposed in this pull request?
In the PR, I propose to change the case class `DataFrameQueryContext`, and add stack traces as a field and override `callSite`, `fragment` using the new field `stackTrace`.
### Why are the changes needed?
By exposing the stack trace, we give users opportunity to see all stack traces needed for debugging.
### Does this PR introduce _any_ user-facing change?
No, `DataFrameQueryContext` hasn't been released yet.
### How was this patch tested?
By running the modified test suite:
```
$ build/sbt "test:testOnly *DatasetSuite"
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #43703 from MaxGekk/stack-traces-in-DataFrameQueryContext.
Authored-by: Max Gekk <[email protected]>
Signed-off-by: Max Gekk <[email protected]>DataFrameQueryContext
1 parent f866549 commit 6abc4a1
File tree
2 files changed
+22
-24
lines changed- sql
- api/src/main/scala/org/apache/spark/sql/catalyst/trees
- core/src/test/scala/org/apache/spark/sql
2 files changed
+22
-24
lines changedLines changed: 14 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 137 | + | |
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
147 | 158 | | |
148 | 159 | | |
149 | 160 | | |
| |||
157 | 168 | | |
158 | 169 | | |
159 | 170 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
2668 | 2669 | | |
2669 | 2670 | | |
2670 | 2671 | | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
2671 | 2677 | | |
2672 | | - | |
2673 | | - | |
2674 | | - | |
2675 | | - | |
2676 | | - | |
| 2678 | + | |
2677 | 2679 | | |
2678 | 2680 | | |
2679 | 2681 | | |
2680 | 2682 | | |
| 2683 | + | |
2681 | 2684 | | |
2682 | 2685 | | |
2683 | 2686 | | |
| |||
0 commit comments