-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-32403][SQL] Refactor current ScriptTransformationExec #29199
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
Conversation
|
FYI @maropu |
| case NullType => voidTypeInfo | ||
| case dt => | ||
| throw new AnalysisException( | ||
| s"${dt.getClass.getSimpleName.replace("$", "")} cannot be converted to Hive TypeInfo") |
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.
This is related to this reafactoring?
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.
This is related to this reafactoring?
So make this change as a seperated jira?
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.
I think this is a testing issue (2.): #29085 (comment)
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.
I think this is a testing issue (2.): #29085 (comment)
OK, change in next pr(2)
|
FYI: This PR comes from the comment: #29085 (comment) |
|
Could you file a new JIRA? |
|
Anyone could check this? @cloud-fan @viirya @wangyum |
|
Test build #126382 has finished for PR 29199 at commit
|
|
Test build #126381 has finished for PR 29199 at commit
|
|
Test build #126378 has finished for PR 29199 at commit
|
Done |
|
Test build #126393 has finished for PR 29199 at commit
|
|
Any update? |
I think we will have a default native serde. So for now we just need a fake one which just uses cast to string? |
@alfozan will add their spark serde , and will have a default one #29085 (comment) |
For @maropu's advice. more detail is :
|
|
It‘s ok to merge this and start to work on follow step ? |
|
|
||
| // This nullability is a performance optimization in order to avoid an Option.foreach() call | ||
| // inside of a loop | ||
| @Nullable val (inputSerde, inputSoi) = initInputSerDe(ioschema, input).getOrElse((null, null)) |
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.
why do we use @Nullable for local variables?
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.
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.
How about checking performance numbers with/without it?
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.
How about checking performance numbers with/without it?
Seems not need, since we have remove these unnecessary judgement in each row's loop.
It's ok to just remove it.
|
|
||
| // This nullability is a performance optimization in order to avoid an Option.foreach() call | ||
| // inside of a loop | ||
| @Nullable val (outputSerde, outputSoi) = { |
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.
ditto
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.
ditto
Removed
|
Test build #127016 has finished for PR 29199 at commit
|
|
retest this please |
|
Test build #127250 has finished for PR 29199 at commit
|
|
retest this please |
|
Test build #127259 has finished for PR 29199 at commit
|
|
retest this please |
|
Test build #127272 has finished for PR 29199 at commit
|
|
thanks, merging to master! |
What changes were proposed in this pull request?
This PR comes from the comment: #29085 (comment)
ScriptTransformationIOSchemacreateOutputIteratorWithoutSerde&&createOutputIteratorWithSerdeScriptTransformationIOSchema.defaultIOSchemaWhy are the changes needed?
Refactor code
Does this PR introduce any user-facing change?
NO
How was this patch tested?
NO