-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-19088][SQL] Optimize sequence type deserialization codegen #16541
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 1 commit
4aaef15
a330d5f
1092375
85edddd
b5f87bd
d04e043
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Dealias collection type before obtaining its companion object Change collClass to Option Rename variables
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -307,11 +307,11 @@ object ScalaReflection extends ScalaReflection { | |
| } | ||
| } | ||
|
|
||
| val cls = t.companion.decl(TermName("newBuilder")) match { | ||
| val cls = t.dealias.companion.decl(TermName("newBuilder")) match { | ||
| case NoSymbol => classOf[Seq[_]] | ||
|
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 checked that the builder for Can we keep the original expression if we can't find
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. Rethink about this. It may not be a problem. Let me try to test it first. |
||
| case _ => mirror.runtimeClass(t.typeSymbol.asClass) | ||
| } | ||
| MapObjects(mapFunction, getPath, dataType, cls) | ||
| MapObjects(mapFunction, getPath, dataType, Some(cls)) | ||
|
|
||
| case t if t <:< localTypeOf[Map[_, _]] => | ||
| // TODO: add walked type path for map | ||
|
|
||
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.
dealiasis not available in scala 2.10, @michalsenkyr can you come up with a workaround? thanks!