Skip to content

APP-1722: use edr_cast_metadata_timestamp for run results timing filter - #2372

Draft
EladBarkay wants to merge 1 commit into
masterfrom
app-1722-bigquery-anomaly-tests-lose-partition-pruning-since-0240
Draft

EladBarkay wants to merge 1 commit into
masterfrom
app-1722-bigquery-anomaly-tests-lose-partition-pruning-since-0240

Conversation

@EladBarkay

Copy link
Copy Markdown
Contributor

Summary

Companion to elementary-data/dbt-data-reliability#1070 (fixes elementary-data/dbt-data-reliability#1039).

That PR changes the shared bigquery__edr_cast_as_timestamp back to a plain cast, so BigQuery can prune partitions on monitored tables again. The nanosecond-tolerant cast moves to a new edr_cast_metadata_timestamp macro.

This PR switches the days_back filter on dbt_run_results.execute_completed_at in current_tests_run_results_query to the new macro. That's the query from the original APP-1086 bug, and it needs to keep casting rows that were already written with 9 fractional digits.

Before merging

  • Merge and release dbt-data-reliability#1070.
  • Bump the elementary-data/elementary version in elementary/monitor/dbt_project/packages.yml. It's currently pinned to 0.26.0, which doesn't have edr_cast_metadata_timestamp yet.

🤖 Generated with Claude Code

execute_completed_at is a string column that can hold nanosecond-precision
values; cast it through the dedicated metadata macro now that the shared
BigQuery edr_cast_as_timestamp is a plain cast again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

👋 @EladBarkay
Thank you for raising your pull request.
Please make sure to add tests and document all user-facing changes.
You can do this by editing the docs files in this pull request.

@linear

linear Bot commented Sep 30, 2026

Copy link
Copy Markdown

APP-1722

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BigQuery: anomaly tests significantly slower since 0.24.0, regex timestamp cast from #1003 adds heavy per-row CPU overhead

1 participant