-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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-5573][SQL] Add explode to dataframes #4546
Conversation
Test build #27314 has started for PR 4546 at commit
|
Test build #27315 has started for PR 4546 at commit
|
override def explode[A <: Product : TypeTag] | ||
(input: Column*)(f: Row => TraversableOnce[A]): DataFrame = err() | ||
|
||
///////////////////////////////////////////////////////////////////////////// |
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.
while you are at it, this is indented wrong now
Test build #27314 has finished for PR 4546 at commit
|
Test PASSed. |
Test build #27315 has finished for PR 4546 at commit
|
Test PASSed. |
Test build #27318 has started for PR 4546 at commit
|
f: A => TraversableOnce[B]): DataFrame = { | ||
val dataType = ScalaReflection.schemaFor[B].dataType | ||
val attributes = AttributeReference(outputColumn, dataType)() :: Nil | ||
def rowFunction(row: Row) = { |
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.
if you define this as a val, i think it doesn't capture outer?
Test build #27318 has finished for PR 4546 at commit
|
Test PASSed. |
Test build #27340 has started for PR 4546 at commit
|
Test build #27340 has finished for PR 4546 at commit
|
Test PASSed. |
Author: Michael Armbrust <[email protected]> Closes #4546 from marmbrus/explode and squashes the following commits: eefd33a [Michael Armbrust] whitespace a8d496c [Michael Armbrust] Merge remote-tracking branch 'apache/master' into explode 4af740e [Michael Armbrust] Merge remote-tracking branch 'origin/master' into explode dc86a5c [Michael Armbrust] simple version d633d01 [Michael Armbrust] add scala specific 950707a [Michael Armbrust] fix comments ba8854c [Michael Armbrust] [SPARK-5573][SQL] Add explode to dataframes (cherry picked from commit ee04a8b) Signed-off-by: Michael Armbrust <[email protected]>
No description provided.