-
Notifications
You must be signed in to change notification settings - Fork 590
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
Curate input arrays to skip already ingested sample data [VS-246] #7862
Conversation
Codecov Report
@@ Coverage Diff @@
## ah_var_store #7862 +/- ##
================================================
Coverage ? 86.290%
Complexity ? 35190
================================================
Files ? 2170
Lines ? 164888
Branches ? 17786
================================================
Hits ? 142282
Misses ? 16281
Partials ? 6325 |
Especially since |
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.
Looks good - two minor suggestions.
bq --project_id=~{project_id} query --format=csv --use_legacy_sql=false -n ~{num_samples} \ | ||
"SELECT sample_id, samples.sample_name FROM \`~{dataset_name}.~{table_name}\` AS samples JOIN \`${TEMP_TABLE}\` AS temp ON samples.sample_name=temp.sample_name" > sample_map | ||
"SELECT sample_id, samples.sample_name FROM \`~{dataset_name}.~{table_name}\` AS samples JOIN \`${TEMP_TABLE}\` AS temp ON samples.sample_name=temp.sample_name WHERE samples.sample_id NOT IN (SELECT sample_id FROM \`~{dataset_name}.sample_load_status\` WHERE status='FINISHED')" > sample_map | ||
|
||
cut -d, -f1 sample_map > gvs_ids |
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.
Nit:
Might be clearer as:
cut -d, -f1 sample_map > gvs_ids | |
cut -d ',' -f1 sample_map > gvs_ids |
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 👍
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.
Looks good to me. 2 minor questions.
Closes https://broadworkbench.atlassian.net/browse/VS-246