-
Notifications
You must be signed in to change notification settings - Fork 28.7k
[SQL] Construct the MutableRow from an Array #3217
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
Test build #23238 has started for PR 3217 at commit
|
Test build #23240 has started for PR 3217 at commit
|
Test build #23238 has finished for PR 3217 at commit
|
Test PASSed. |
Test build #23240 has finished for PR 3217 at commit
|
Test PASSed. |
/** | ||
* This method can be used to construct a [[MutableRow]] from a [[Row]] | ||
*/ | ||
def toMutableRow(row: Row): MutableRow = row match { |
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.
Can you make this private[sql]
? I don't think we want to expose mutable rows to users yet as the API is still in flux.
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.
And actually, why is this here as a static method instead of an instance method on Row itself? What is your intended use case?
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.
Exposing the mutable row is required in #3247, we want to reuse the row object as aggregation buffer
, but you're right, we should make it as instance method on Row itself.
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.
Oh, probably I can use the SpecificMutableRow
, I will simplify the PR by fixing the GenericMutableRow
only.
Thank you @marmbrus , I've updated the title, and revert the change of the |
Test build #23447 has started for PR 3217 at commit
|
Test build #23447 has finished for PR 3217 at commit
|
Test PASSed. |
Thanks! Merged to master and 1.2 |
Author: Cheng Hao <[email protected]> Closes #3217 from chenghao-intel/mutablerow and squashes the following commits: e8a10bd [Cheng Hao] revert the change of Row object 4681aea [Cheng Hao] Add toMutableRow method in object Row a751838 [Cheng Hao] Construct the MutableRow from an existed row (cherry picked from commit 69e858c) Signed-off-by: Michael Armbrust <[email protected]>
No description provided.