Comments (5)
@Stephen986 I think if we create a seed file for free domain provider, then anyone who wants to use our project will have to do a dbt seed before using our macro. I think in any of the projects that we have gone thru, we are not using a database object to run the macro. I think maybe we should keep it in separate macro file itself which returns the list.
from dbt_census_utils.
@amittiwari1979 I discussed this with you and then Jeff @ Census yesterday. Here's the recap:
- Requiring people to use 'dbt seed' is fine. We'll just add that to the documentation as something you have to do after dbt deps.
- Jeff's preference is that the seed files get built in the user's regular seed file directory. We'll have to test what happens when a package doesn't specify where the seed files go! If they're going in the regular seed file directory, I think the files themselves should be prefaced with census_ so it's easy to distinguish them.
from dbt_census_utils.
@amittiwari1979 this macro gets the following error in Snowflake:
Database Error in model test_is_personal_email (models/test_is_personal_email.sql)
16:29:19 001003 (42000): SQL compilation error:
16:29:19 syntax error line 10 at position 99 unexpected 'unnest'.
16:29:19 syntax error line 10 at position 105 unexpected '('.
16:29:19 compiled Code at target/run/census_utils_integration_tests/models/test_is_personal_email.sql
from dbt_census_utils.
Also, is there a reason you're doing an array_agg and then a get_single_value for this macro rather than doing
dbt_utils.get_column_values(table=ref('free_email_providers'), column='email_domains')? That seems to get the same results with less code.
from dbt_census_utils.
r
@Stephen986 Yeah, the macro is working same with lesser code. I have updated it in Parse GA4 Client Id PR.
from dbt_census_utils.
Related Issues (13)
- Name standardization macro for FB/Google/etc. audiences HOT 1
- Macro for extracting e-mail domains HOT 2
- Macro for country name to country code HOT 1
- Macro for parsing GA 4 client IDs
- Create integration_tests folder
- Host dbt docs on Github pages
- Macro for identifying internal e-mails and internal IP addresses
- Create readme
- Change the name of seed files to ensure no conflicts
- Add issue and PR templates
- [Suggestion] Use a subquery to get country codes instead of generating a massive case statement HOT 2
- [Feature] Allow more variations of country names
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_census_utils.