Skip to content
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

Allow for specification of a "relative" time window for sample mode #11231

Open
1 task done
Tracked by #11226
QMalcolm opened this issue Jan 23, 2025 · 0 comments
Open
1 task done
Tracked by #11226

Allow for specification of a "relative" time window for sample mode #11231

QMalcolm opened this issue Jan 23, 2025 · 0 comments
Labels
enhancement New feature or request sample_mode
Milestone

Comments

@QMalcolm
Copy link
Contributor

QMalcolm commented Jan 23, 2025

Housekeeping

  • I am a maintainer of dbt-core

Short description

When using sample mode, we need to allow for the specification of a "relative" time window, i.e. "the last three days". This might look something like dbt run --sample "3 days". The ending time of the sample would then be "the ending of today" and the beginning would be "the start of the day 2 days ago".

Acceptance criteria

  • A relative time window can be specified as a CLI arg for sample mode invocations

Suggested Tests

N/A

Impact to Other Teams

N/A

Will backports be required?

No, it's a new feature

Context

N/A

@QMalcolm QMalcolm added sample_mode enhancement New feature or request labels Jan 23, 2025
@QMalcolm QMalcolm added this to the v1.10 milestone Jan 23, 2025
@QMalcolm QMalcolm changed the title allow for specification of sample time window in relative manner Allow for specification of a "relative" time window for sample mode Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sample_mode
Projects
None yet
Development

No branches or pull requests

1 participant