-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-22215][SQL] Add configuration to set the threshold for generated class #19447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -934,6 +934,15 @@ object SQLConf { | |
| .intConf | ||
| .createWithDefault(10000) | ||
|
|
||
| val GENERATED_CLASS_LENGTH_THRESHOLD = | ||
| buildConf("spark.sql.codegen.generatedClass.size.threshold") | ||
| .doc("Threshold in bytes for the size of a generated class. If the generated class " + | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry for my ignorance. If users cannot set it, how can this parameter be changed?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this is not a frequently-used parameter for users. Also, other JVM implimentation-specific parameters are internal, e.g.,
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with you, but might you please explain me how to set a parameter which is internal? Thanks.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Users can change this value in the same way with other public parameters, but
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for the explanation, I'll add it immediately. |
||
| "size is higher of this value, a private nested class is created and used." + | ||
| "This is useful to limit the number of named constants in the class " + | ||
| "and therefore its Constant Pool. The default is 1600k.") | ||
| .intConf | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add |
||
| .createWithDefault(1600000) | ||
|
|
||
| object Deprecated { | ||
| val MAPRED_REDUCE_TASKS = "mapred.reduce.tasks" | ||
| } | ||
|
|
@@ -1214,6 +1223,8 @@ class SQLConf extends Serializable with Logging { | |
|
|
||
| def arrowMaxRecordsPerBatch: Int = getConf(ARROW_EXECUTION_MAX_RECORDS_PER_BATCH) | ||
|
|
||
| def generatedClassLengthThreshold: Int = getConf(GENERATED_CLASS_LENGTH_THRESHOLD) | ||
|
|
||
| /** ********************** SQLConf functionality methods ************ */ | ||
|
|
||
| /** Set Spark SQL configuration properties. */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to know this discussion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the interesting link. I assume using SparkEnv has the same problem, hasn't it?