-
Notifications
You must be signed in to change notification settings - Fork 56
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
Chaining fix #567
Chaining fix #567
Conversation
e2644df
to
58de450
Compare
api/py/ai/chronon/group_by.py
Outdated
@@ -431,6 +431,7 @@ def _normalize_source(source): | |||
elif isinstance(source, ttypes.EntitySource): | |||
return ttypes.Source(entities=source) | |||
elif isinstance(source, ttypes.JoinSource): | |||
source.join.metadata = output_namespace or source.metaData.outputNamespace |
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.
should this be
source.join.metadata = output_namespace or source.metaData.outputNamespace | |
if not source.join.metadata.isSetOutputNamespace(): | |
source.join.metadata.setOutputNamespace(output_namespace) |
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.
cc @better365 for another eye. Working locally but does not seem to be effective when trying to test with user conf.
api/py/test/sample/production/joins/sample_team/sample_join_external_parts.v1
Outdated
Show resolved
Hide resolved
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.
Few comments
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.
LGTM! I cannot stamp though
println(s"Historical backfill is set to false. Backfill single partition only: $endPartition") | ||
Some(endPartition) | ||
} | ||
lazy val defaultLeftStart = Option(leftSource.query.startPartition) |
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.
this is a great way to avoid version checking.
@@ -431,6 +431,8 @@ def _normalize_source(source): | |||
elif isinstance(source, ttypes.EntitySource): | |||
return ttypes.Source(entities=source) | |||
elif isinstance(source, ttypes.JoinSource): | |||
if not source.join.metadata.isSetOutputNamespace(): | |||
source.join.metadata.setOutputNamespace(output_namespace) |
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.
because the output namespace is empty in the join source python object. It has to be read from the teams.json similar to this method: https://github.com/airbnb/chronon/blob/master/api/py/ai/chronon/repo/compile.py#L122
Summary
historicalBackfill
to allow no "catch-up" backfill but only backfill single day DS for homes use caseWhy / Goal
Test Plan
Checklist
Reviewers