Тёмный
No video :(

Handle JSON with dbt // jinja & macros 

Kahan Data Solutions
Подписаться 41 тыс.
Просмотров 25 тыс.
50% 1

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@KahanDataSolutions
@KahanDataSolutions 2 года назад
►► The Starter Guide for Modern Data (Free PDF) → www.kahandatasolutions.com/startermds
@randolphdeline309
@randolphdeline309 2 года назад
I think you just saved me weeks worth of work. I was just put in charge of flattening dozens of tables with multiple levels totaling 100s of columns and that macro is perfect.
@KahanDataSolutions
@KahanDataSolutions 2 года назад
Love to hear that!
@peytonbadura6808
@peytonbadura6808 Год назад
I had to change a couple of things to get this to work with SQL Server but this was a lifesaver! Thank you!
@KahanDataSolutions
@KahanDataSolutions Год назад
Nice! you bet
@ihafidh
@ihafidh 2 года назад
Great video as always!
@KahanDataSolutions
@KahanDataSolutions 2 года назад
Thank you!
@domfp133
@domfp133 2 дня назад
TOP
@henniedenooijer4348
@henniedenooijer4348 7 месяцев назад
Great vid!
@kanthipavuluri3874
@kanthipavuluri3874 2 года назад
Nice video! Can you also share how we can determine the data types of the json fields, in this video everything is considered to be a varchar
@KahanDataSolutions
@KahanDataSolutions 2 года назад
Thanks Kanthi! You can use the TYPEOF function in Snowflake to determine the data type - docs.snowflake.com/en/sql-reference/functions/typeof.html
@summer_xo
@summer_xo 2 года назад
I started off by asking myself, "this is cool but how could I convince my team to use this vs flattening via ADF". By the end seeing how reusable it was totally sold me, so much quicker than spinning up a new ADF pipeline, creating source etc (assuming the extract isn't taking place in ADF). Im curious if you think there are any more benefits using DBT/Snowflake to flatten vs ADF?
@brodericksmith8617
@brodericksmith8617 Год назад
hey there! this video is awesome! do you have any tips on how to turn a variable into a string? I'm trying to take this concept and apply it to Postgres, but i need the column names to be strings to make it work. not sure how to get quotes around the variable name!
@kirillmelnikov1700
@kirillmelnikov1700 6 месяцев назад
Hi 👋 How can I write if statement on dbt macros which will be go out loop, for example “if table exists - continue, else: break” ? Thx to advanced 🙏
@vlogwithkaran9078
@vlogwithkaran9078 Год назад
how do we perform lateral flatten in redshift?
@jasonyeung2498
@jasonyeung2498 2 года назад
Might I ask if there was any package that could recursively do what you did in dbt to unwrap nested JSON and / or array? Thanks!
@KahanDataSolutions
@KahanDataSolutions 2 года назад
Hey Jason - There very well could be but I'm not familiar off the top of my head. Seems like a common scenario so I wouldn't be surprised if it exists somewhere.
@jasonyeung2498
@jasonyeung2498 2 года назад
@@KahanDataSolutions Thanks for the kind response. Might I ask, for example, let's say birth_name is another JSON. And, I simply want to reuse the marco again. intermediate_model as ( {{ flatten_json( model_name = 'source_model', json_column = 'birth_name' )}} ), how can I do it here by passing the source_model into the macro again?
@wallyflops
@wallyflops Год назад
That lateral keyword is really weird, the documentation doesn't mention it's use anywhere. Only when listing multiple it seems.
@lengoc5889
@lengoc5889 Год назад
OMG my problem in Bigquery. tks
@yslx740
@yslx740 2 года назад
Could you talk about getting proper data types, rather than just using varchar for everything? Would be super useful!
@KahanDataSolutions
@KahanDataSolutions 2 года назад
That is a bit more complex but it is doable. Here is an example function in Snowflake that you can use with JSON data to get you there - docs.snowflake.com/en/sql-reference/functions/typeof.html
@yslx740
@yslx740 2 года назад
@@KahanDataSolutions thanks, didn’t know about typeof
@linaelyakhloufi4677
@linaelyakhloufi4677 2 года назад
Hello, Is it the same if our data is in amazon redshift please?
@abdullahsiddique7787
@abdullahsiddique7787 2 года назад
How long does it take to learn dbt for person knowing sql
@KahanDataSolutions
@KahanDataSolutions 2 года назад
That really depends on the individual. Like anything else, the advanced components will take time/experience to fully learn. But if you know SQL you should be able to start contributing to dbt projects pretty quickly once you learn the basic concepts.
@abdullahsiddique7787
@abdullahsiddique7787 2 года назад
@@KahanDataSolutions thanks bro yes I am good in sql
Далее
How to use ONE dbt project for all environments
7:23
dbt and Python-Better Together
34:19
Просмотров 11 тыс.
I'll do it for you!
00:37
Просмотров 2,7 млн
Flatten Function & JSON Data Processing In Snowflake
1:09:10
Why You NEED To Learn FastAPI | Hands On Project
21:15
Просмотров 159 тыс.
Processing & Working With JSON Data In Snowflake | #01
42:49
I've been using Redis wrong this whole time...
20:53
Просмотров 353 тыс.
Why do databases store data in B+ trees?
29:43
Просмотров 35 тыс.
I'll do it for you!
00:37
Просмотров 2,7 млн