Comments (4)
Hi @dweaver33 ! In the example you gave you're using the get_profile macro instead of print_profile. Also, you're using the source macro which AFAIK doesn't work from the command line.
Try this instead:
dbt run-operation print_profile --args '{"relation_name": "my_table", "database": "my_database", "schema": "my_schema"}'
Let me know if that works!
from dbt-profiler.
Ah, ok, that works.
One last question: Any way to put a WHERE clause on the profiler? Like if we wanted to only profile data that meets a certain criteria?
from dbt-profiler.
@dweaver33 That's a good question and I haven't thought about that yet. Currently, there's no easy way to put a WHERE clause into the profiling query but adding it should be easy. Basically we'd need to add a where
argument to the get_profile
macro and all the other macros that use it. Would you be interested in contributing? :) I'd be happy to help and answer any questions you may have.
from dbt-profiler.
Yeah, I'll give it a shot. I have a decent idea on where to put this, so let me give it a go and submit a PR. In the meantime, I'll open a new issue for tracking.
from dbt-profiler.
Related Issues (20)
- Include/exclude metrics
- Is this stable? HOT 1
- CTE Query Optimization HOT 4
- Question: running dbt run-operation print_profile_docs prints log info HOT 2
- Question: Are you planning to extend dbt-profiler for dbt-sqlserver adapter? HOT 2
- Allow user to specify a where clause for the source table
- Question: add TOP x column values and distribution. HOT 3
- Feature request: Handling structs HOT 1
- I have modified some of the macros to work with MySql HOT 1
- Catch-22 with docblock in schema file HOT 4
- Suggestion to modify `sed` to `awk` in update-relation-profile.sh HOT 1
- docblock is not outputted when executing `print_profile_docs` with BigQuery
- Run profiler for all models HOT 2
- Add `print_table` macro that works in dbt Cloud
- Redshift `avg` returning `1` or `0` HOT 3
- Error when profiling a table in Redshift HOT 9
- "Value overflow in a SUM aggregate" with HASH fields HOT 4
- `dbt_profiler.get_profile` doesn't seem to work with views in Redshift HOT 5
- Old version of example output, without median column HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbt-profiler.