-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-20783][SQL][Follow-up] Create ColumnVector to abstract existing compressed column #19508
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
|
cc @kiszk Please check if this change is proper. |
|
Test build #82804 has finished for PR 19508 at commit
|
|
cc @cloud-fan too |
|
I will check this on Wed. |
|
|
||
| protected def underlyingBuffer = buffer | ||
|
|
||
| def getByteBuffer: ByteBuffer = |
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.
Good catch, it is not used.
| columnType.dataType match { | ||
| case _: IntegerType => | ||
| val dictionaryIds = columnVector.reserveDictionaryIds(capacity) | ||
| val intDictionary = dictionary.map(_.asInstanceOf[Int]) |
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.
@viirya Could you please see this comment to avoid unboxing? IIUC, this code still causes unboxing.
What do you think?
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 didn't notice that comment. Let me check it then. If we can't avoid, I will revert this and only remove the unused method. Thanks.
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.
Thanks @kiszk. I checked the comment and code and reverted this change.
|
Test build #82897 has finished for PR 19508 at commit
|
|
ping @cloud-fan for final check. Thanks. |
|
LGTM |
|
ping @cloud-fan Please take a quick look. Thanks. |
|
re-ping @cloud-fan This is a simple follow-up, please check it. Thanks. |
|
thanks, merging to master! |
What changes were proposed in this pull request?
Removed one unused method.
How was this patch tested?
Existing tests.