Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
proximity.dist_pin_to_pin
to the dbt DAG using intermediate transforms #138Add
proximity.dist_pin_to_pin
to the dbt DAG using intermediate transforms #138Changes from all commits
6a3ad33
a40d903
c908525
82d7746
e99e3a0
6630232
0d662f0
8aaf932
b6a7277
a0f7423
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
issue (blocking): If
dist_pin_to_pin_10km.sql
only contains the values missing fromdist_pin_to_pin_1km.sql
, then shouldn't this be the union ofdist_pin_to_pin_1km.sql
anddist_pin_to_pin_10km.sql
?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.
Wow, excellent catch @dfsnow! Embarrassing mistake on my part 🙈 This is fixed in a0f7423, and I updated the table docs to reflect it 👍🏻
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 macro is nearly identical to the pre-existing
aws-athena/ctas/proximity-dist_pin_to_pin.sql
query, with three main changes:source_model
,num_neigbors
, andradius_km
pin10
to thedistinct_pins
subquery per our missing data discussion on Teams (diff here)sqlfmt
Everything else should be identical!