Uh oh!
There was an error while loading. Please reload this page.
[SPARK-23914][SQL][follow-up] refactor ArrayUnion - #21937
Conversation
holdensmagicalunicorn
commented
Jul 31, 2018
SparkQA
commented
Jul 31, 2018
Test build #93840 has finished for PR 21937 at commit
|
SparkQA
commented
Aug 4, 2018
Test build #94208 has finished for PR 21937 at commit
|
There was a problem hiding this comment.
nit: new $arrayBuilderClass() should work?
There was a problem hiding this comment.
nit: classOf[mutable.ArrayBuilder[_]].getName?
ueshin
commented
Aug 6, 2018
I'll revisit after the conflict is fixed. |
kiszk
commented
Aug 6, 2018
I see. Now, I am rebasing and resolving conflicts. |
| val classTag = s"scala.reflect.ClassTag$$.MODULE$$.$hsTypeName()" | ||
| val hashSet = ctx.freshName("hashSet") | ||
| val arrayBuilder = classOf[mutable.ArrayBuilder[_]].getName | ||
| val arrayBuilderClass = s"$arrayBuilder$$of$ptName" |
There was a problem hiding this comment.
I think that we still need this to create an intermediate result array. The array is allocated at L3907 as other functions do.
SparkQA
commented
Aug 6, 2018
Test build #94290 has finished for PR 21937 at commit
|
SparkQA
commented
Aug 6, 2018
Test build #94304 has finished for PR 21937 at commit
|
ueshin
commented
Aug 7, 2018
LGTM. |
ueshin
commented
Aug 7, 2018
Thanks! merging to master. |
What changes were proposed in this pull request?
This PR refactors
ArrayUnionbased on this suggestion.booleanArrayBuilderorArrayBufferHow was this patch tested?
Existing tests