-
Notifications
You must be signed in to change notification settings - Fork 9
fix: Ignore label join deps and just use groupBy, leftsource, bootstrap #891
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
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant TableDependencies
participant Join
participant GroupBy
participant Source
Caller->>TableDependencies: fromJoin(join)
TableDependencies->>Join: access joinParts, left, bootstrapParts
loop For each joinPart
TableDependencies->>GroupBy: fromGroupBy(joinPart.groupBy)
end
TableDependencies->>Source: fromSource(join.left)
loop For each bootstrapPart
TableDependencies->>Source: fromTable(bootstrapPart)
end
TableDependencies-->>Caller: return all dependencies
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (15)
🔇 Additional comments (4)
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
api/src/main/scala/ai/chronon/api/planner/TableDependencies.scala (1)
27-27: Simplify bootstrap parts conversion.The array conversion is unnecessarily complex.
- scala.Option(join.bootstrapParts.toScala.toArray[BootstrapPart]).getOrElse(Array.empty[BootstrapPart]) + Option(join.bootstrapParts).map(_.asScala.toSeq).getOrElse(Seq.empty)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
api/src/main/scala/ai/chronon/api/planner/TableDependencies.scala(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: scala_compile_fmt_fix
- GitHub Check: online_tests
- GitHub Check: cloud_aws_tests
- GitHub Check: api_tests
- GitHub Check: cloud_gcp_tests
- GitHub Check: service_commons_tests
- GitHub Check: service_tests
- GitHub Check: aggregator_tests
- GitHub Check: flink_tests
- GitHub Check: enforce_triggered_workflows
🔇 Additional comments (2)
api/src/main/scala/ai/chronon/api/planner/TableDependencies.scala (2)
7-8: New imports look appropriate.Required for the refactored
fromJoinimplementation.
23-29: Verify the labelParts → joinParts change.The refactor delegates nicely to existing methods, but switching from
join.labelPartstojoin.joinPartscould change behavior significantly.#!/bin/bash # Verify usage of labelParts vs joinParts in the codebase rg -A 3 -B 3 "labelParts|joinParts" --type scala
1e7e469 to
91c2bb0
Compare
Summary
Checklist
Summary by CodeRabbit