Commit a2392be
[SPARK-41862][SQL] Fix correctness bug related to DEFAULT values in Orc reader
### What changes were proposed in this pull request?
This PR fixes a correctness bug related to column DEFAULT values in Orc reader.
* #37280 introduced a performance regression in the Orc reader.
* #39362 fixed the performance regression, but stopped the column DEFAULT feature from working, causing a temporary correctness regression that we agreed for me to fix later.
* This PR restores column DEFAULT functionality for Orc scans and fixes the correctness regression while not reintroducing the performance regression.
### Why are the changes needed?
This PR fixes a correctness bug.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
This PR updates a unit test to exercise that the Orc scan functionality is correct.
Closes #39370 from dtenedor/fix-perf-bug-orc-reader.
Authored-by: Daniel Tenedorio <daniel.tenedorio@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>1 parent c26d598 commit a2392be
File tree
2 files changed
+19
-67
lines changed- sql/core/src
- main/scala/org/apache/spark/sql/execution/datasources/orc
- test/scala/org/apache/spark/sql/sources
2 files changed
+19
-67
lines changedLines changed: 16 additions & 55 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
45 | 59 | | |
46 | 60 | | |
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| |||
288 | 294 | | |
289 | 295 | | |
290 | 296 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | 297 | | |
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
1555 | | - | |
1556 | 1555 | | |
1557 | 1556 | | |
1558 | 1557 | | |
| |||
1591 | 1590 | | |
1592 | 1591 | | |
1593 | 1592 | | |
1594 | | - | |
1595 | | - | |
1596 | | - | |
1597 | | - | |
| 1593 | + | |
1598 | 1594 | | |
1599 | 1595 | | |
1600 | 1596 | | |
| |||
1679 | 1675 | | |
1680 | 1676 | | |
1681 | 1677 | | |
1682 | | - | |
1683 | | - | |
| 1678 | + | |
1684 | 1679 | | |
1685 | 1680 | | |
1686 | 1681 | | |
| |||
1944 | 1939 | | |
1945 | 1940 | | |
1946 | 1941 | | |
1947 | | - | |
1948 | | - | |
1949 | | - | |
1950 | | - | |
1951 | | - | |
| 1942 | + | |
1952 | 1943 | | |
1953 | 1944 | | |
1954 | 1945 | | |
| |||
0 commit comments