Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ class CSVOptions(
val lineSeparatorInWrite: Option[String] = lineSeparator

val inputBufferSize: Option[Int] = parameters.get("inputBufferSize").map(_.toInt)
.orElse(SQLConf.get.getConf(SQLConf.CSV_INPUT_BUFFER_SIZE))

/**
* The handling method to be used when unescaped quotes are found in the input.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,16 @@ object SQLConf {
.booleanConf
.createWithDefault(true)

val CSV_INPUT_BUFFER_SIZE = buildConf("spark.sql.csv.parser.inputBufferSize")
.internal()
.doc("If it is set, it configures the buffer size of CSV input during parsing. " +
"It is the same as inputBufferSize option in CSV which has a higher priority. " +
"Note that this is a workaround for the parsing library's regression, and this " +
"configuration is internal and supposed to be removed in the near future.")
.version("3.0.3")
.intConf
.createOptional

val REPL_EAGER_EVAL_ENABLED = buildConf("spark.sql.repl.eagerEval.enabled")
.doc("Enables eager evaluation or not. When true, the top K rows of Dataset will be " +
"displayed if and only if the REPL supports the eager evaluation. Currently, the " +
Expand Down