-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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
[SPARK-23407][SQL] add a config to try to inline all mutable states during codegen #20599
Changes from all 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 |
---|---|---|
|
@@ -675,6 +675,16 @@ object SQLConf { | |
"disable logging or -1 to apply no limit.") | ||
.createWithDefault(1000) | ||
|
||
val CODEGEN_TRY_INLINE_ALL_STATES = | ||
buildConf("spark.sql.codegen.tryInlineAllStates") | ||
.internal() | ||
.doc("When adding mutable states during code generation, whether or not we should try to " + | ||
"inline all the states. If this config is false, we only try to inline primitive stats, " + | ||
"so that primitive states are more likely to be inlined. Set this config to true to make " + | ||
"the behavior same as Spark 2.2.") | ||
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 it only behaves the same before we hit the threshold? 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. yea, let me improve it. 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. Also watch out for a typo |
||
.booleanConf | ||
.createWithDefault(false) | ||
|
||
val WHOLESTAGE_HUGE_METHOD_LIMIT = buildConf("spark.sql.codegen.hugeMethodLimit") | ||
.internal() | ||
.doc("The maximum bytecode size of a single compiled Java function generated by whole-stage " + | ||
|
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.
Are these changes related to this PR?
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.
not, but a small clean up.