Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Oct 16, 2017

What changes were proposed in this pull request?

Removed one unused method.

How was this patch tested?

Existing tests.

@viirya
Copy link
Member Author

viirya commented Oct 16, 2017

cc @kiszk Please check if this change is proper.

@SparkQA
Copy link

SparkQA commented Oct 16, 2017

Test build #82804 has finished for PR 19508 at commit 5200ef0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@viirya
Copy link
Member Author

viirya commented Oct 16, 2017

cc @cloud-fan too

@kiszk
Copy link
Member

kiszk commented Oct 17, 2017

I will check this on Wed.


protected def underlyingBuffer = buffer

def getByteBuffer: ByteBuffer =
Copy link
Member

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])
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member Author

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.

@SparkQA
Copy link

SparkQA commented Oct 19, 2017

Test build #82897 has finished for PR 19508 at commit 25003cf.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@viirya
Copy link
Member Author

viirya commented Oct 19, 2017

ping @cloud-fan for final check. Thanks.

@kiszk
Copy link
Member

kiszk commented Oct 20, 2017

LGTM

@viirya
Copy link
Member Author

viirya commented Oct 22, 2017

ping @cloud-fan Please take a quick look. Thanks.

@viirya
Copy link
Member Author

viirya commented Oct 24, 2017

re-ping @cloud-fan This is a simple follow-up, please check it. Thanks.

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@asfgit asfgit closed this in 1051ebe Oct 25, 2017
@viirya viirya deleted the SPARK-20783-followup branch December 27, 2023 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants