Skip to content
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

[GLUTEN-7750][VL] use off heap map in ColumnarBuildSideRelation deserialize #7885

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Zand100
Copy link
Contributor

@Zand100 Zand100 commented Nov 11, 2024

What changes were proposed in this pull request?

(Please fill in changes proposed in this fix)
This is a draft for part of #7750 . It does

  • use the BytesToBytesMap and its iterator for ColumnarBuildSideRelation#deserialize
  • use the BytesToBytesMap in BroadcastUtils.veloxToSparkUnsafe for the IdentityBroadcastMode case

(Fixes: #7750)

How was this patch tested?

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)

(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

@github-actions github-actions bot added the VELOX label Nov 11, 2024
Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

@Zand100 Zand100 changed the title use off heap map in ColumnarBuildSideRelation deserialize [GLUTEN-7750][COMPONENT] use off heap map in ColumnarBuildSideRelation deserialize Nov 11, 2024
Copy link

#7750


import scala.collection.JavaConverters.asScalaIteratorConverter

case class ColumnarBuildSideRelation(output: Seq[Attribute], batches: Array[Array[Byte]])
case class ColumnarBuildSideRelation(output: Seq[Attribute], batches: BytesToBytesMap)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any specific reason to use BytesToBytesMap here? Is it also suitable for Gluten's use case?

@zhztheplayer zhztheplayer changed the title [GLUTEN-7750][COMPONENT] use off heap map in ColumnarBuildSideRelation deserialize [GLUTEN-7750][VL] use off heap map in ColumnarBuildSideRelation deserialize Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[VL] Move ColumnarBuildSideRelation's memory occupation to Spark off-heap
2 participants