-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28916][SQL] Split subexpression elimination functions code for Generate[Mutable|Unsafe]Projection #25642
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 4 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 |
|---|---|---|
|
|
@@ -2202,4 +2202,12 @@ class DataFrameSuite extends QueryTest with SharedSparkSession { | |
| |*(1) Range (0, 10, step=1, splits=2)""".stripMargin)) | ||
| } | ||
| } | ||
|
|
||
| test("SPARK-28916: subexrepssion elimination can cause 64kb code limit") { | ||
|
||
| val df = spark.range(2).selectExpr((0 to 5000).map(i => s"id as field_$i"): _*) | ||
| df.createOrReplaceTempView("spark64kb") | ||
| val data = spark.sql("select * from spark64kb limit 10") | ||
|
||
| // This fails if 64Kb limit is reached in code generation | ||
| data.describe() | ||
|
||
| } | ||
| } | ||
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.
We don't need to check if its empty?
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.
It is not necessary: if it is empty
splitExpressionswould return an empty string, anyway I can add it if you think it is more clear