Skip to content

Commit

Permalink
[SPARK-44990][SQL][FOLLOWUP] Remove lazy of nullAsQuotedEmptyString
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
This is a follow up PR of apache#42738 . Remove lazy of `nullAsQuotedEmptyString`.

### Why are the changes needed?
Remove lazy of nullAsQuotedEmptyString. Because most case it useless.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
add new test.

### Was this patch authored or co-authored using generative AI tooling?
No

Closes apache#42744 from Hisoka-X/SPARK-44990_csv_null_benchmark.

Authored-by: Jia Fan <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
  • Loading branch information
Hisoka-X authored and cloud-fan committed Sep 1, 2023
1 parent 4bb3aae commit c783e5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class UnivocityGenerator(
options.locale,
legacyFormat = FAST_DATE_FORMAT,
isParsing = false)
private lazy val nullAsQuotedEmptyString =
private val nullAsQuotedEmptyString =
SQLConf.get.getConf(SQLConf.LEGACY_NULL_VALUE_WRITTEN_AS_QUOTED_EMPTY_STRING_CSV)

@scala.annotation.tailrec
Expand Down

0 comments on commit c783e5a

Please sign in to comment.