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

add section to explain select and selector #6800

Open
wants to merge 4 commits into
base: current
Choose a base branch
from

Conversation

mirnawong1
Copy link
Contributor

@mirnawong1 mirnawong1 commented Jan 21, 2025

this pr adds a section adn table highlight the diff between select and selector, and adds a link to @jeremyyeo 's very useful github gist.

Resolves ##6148


🚀 Deployment available! Here are the direct links to the updated files:

this pr adds a section adn table highlight the diff between `select` and `selector`, and adds a link to @jeremyyeo 's very useful github gist. 

Resolves ##6148
@mirnawong1 mirnawong1 requested a review from a team as a code owner January 21, 2025 11:47
Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Jan 21, 2025 4:04pm

@github-actions github-actions bot added content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: small This change will take 1 to 2 days to address labels Jan 21, 2025
@mirnawong1 mirnawong1 changed the title add section to explain select adn selector d add section to explain select and selector Jan 21, 2025
| Usage | One-time or task-specific filtering.| Reusable for multiple executions. |
| Complexity | Requires manual entry of selection criteria. | Can encapsulate complex logic for reuse. |
| Flexibility | Very flexible but less reusable. Allows using [graph operators](/reference/node-selection/graph-operators) (such as `+`, `@`.) and [set operators](/reference/node-selection/set-operators).| Slightly less flexible; focuses on reusable and structured logic, supports YAML-based `union`, `intersection`, and `exclude`.|
| Example | `dbt run --select my_model+` (runs `my_model` and all downstream dependencies with the `+` operator). | `dbt run --selector nightly_diet_snowplow` (runs models defined by the `nightly_diet_snowplow` selector in `selectors.yml`). |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the dbt run --selector nightly_diet_snowplow command -- it runs models and tags too right?

(runs models defined by the nightly_diet_snowplow selector in selectors.yml)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content Docs team Authored by the Docs team @dbt Labs size: small This change will take 1 to 2 days to address
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant