Commit 15dcd21
[SPARK-50360][SS][FOLLOWUP][MINOR] Make readVersion lazy value
### What changes were proposed in this pull request?
This is followup to #48880
`readVersion` is made a `lazy` value.
After `input` is closed, its value is not changed to `null` because `input` is only used by `readVersion`.
### Why are the changes needed?
`StateStoreChangelogReaderFactory` is able to produce more than one reader.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Existing test suite.
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #49091 from tedyu/null-input.
Authored-by: Zhihong Yu <[email protected]>
Signed-off-by: Jungtaek Lim <[email protected]>1 parent ef37f9a commit 15dcd21
File tree
1 file changed
+3
-2
lines changed- sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
389 | 389 | | |
390 | 390 | | |
391 | 391 | | |
| 392 | + | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| |||
0 commit comments