-
Notifications
You must be signed in to change notification settings - Fork 9
Vz/label join add rounding to window size #857
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
WalkthroughThis change adds a configuration flag to control whether sub-day aggregation windows round down or up in label joins. The rounding logic and comments in Changes
Sequence Diagram(s)sequenceDiagram
participant Test as LabelJoinV2Test
participant Spark as SparkSession
participant TableUtils
participant LabelJoin as LabelJoinV2
Test->>Spark: Set config "round_down_sub_day_windows"=true
Test->>TableUtils: Instantiate with Spark config
TableUtils-->>LabelJoin: Provide roundDownHourOffset flag
LabelJoin->>LabelJoin: Apply sub-day window rounding (down or up)
LabelJoin-->>Test: Return join results
Test->>Test: Compare results to expected output
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
⏰ Context from checks skipped due to timeout of 90000ms (9)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
d5f75a6 to
f0c92eb
Compare
f0c92eb to
0cb8514
Compare
Summary
Users can set a flag which will treat sub-day windows as 0 day offsets for label join. I.e. a 2 hour label window will join against the same day of join output instead of the default of using a 1 day offset.
Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Tests