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

Add Range Join Optimization #68

Open
GeekSheikh opened this issue Mar 3, 2021 · 0 comments
Open

Add Range Join Optimization #68

GeekSheikh opened this issue Mar 3, 2021 · 0 comments
Labels
optimization Technical Spark Optimization

Comments

@GeekSheikh
Copy link
Contributor

At present both sides of this join are relatively small -- so adding a range join hint here may not have much effect but it's worth exploring when/if there's time.

val jobRunIntermediateStates = newTerminatedJobRuns.alias("jr")
.join(clusterPotentialIntermediateStates.alias("cpot"),
$"jr.organization_id" === $"cpot.organization_id" &&
$"jr.cluster_id" === $"cpot.cluster_id" &&
$"cpot.unixTimeMS_state_start" > $"jr.job_runtime.startEpochMS" && // only states beginning after job start and ending before
$"cpot.unixTimeMS_state_end" < $"jr.job_runtime.endEpochMS"
)

@GeekSheikh GeekSheikh added the optimization Technical Spark Optimization label Mar 3, 2021
@gueniai gueniai added this to the backlog milestone Apr 24, 2023
@gueniai gueniai removed this from the backlog milestone Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Technical Spark Optimization
Projects
None yet
Development

No branches or pull requests

2 participants