Intro to Data Build Tool (dbt) // Create your first project!

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024

Комментарии • 133

  • @KahanDataSolutions
    @KahanDataSolutions  3 года назад +12

    Get my Modern Data Essentials training (for free) & start building more reliable data architectures
    www.ModernDataCommunity.com

  • @danielejiofor3493
    @danielejiofor3493 Год назад +6

    Please update the video, looks the installation process has changed

  • @v4varun86
    @v4varun86 3 года назад +3

    I am getting dbt command not found error in visual studio code. However pip dbt install was successful and its running fine from cmd
    dbt : The term 'dbt' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or
    if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + dbt debug
    + ~~~
    + CategoryInfo : ObjectNotFound: (dbt:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

  • @JusmaVids
    @JusmaVids 3 года назад +11

    I was able to get started with dbt a lot faster than going through dbt documentation and videos.

    • @KahanDataSolutions
      @KahanDataSolutions  3 года назад +5

      Great to hear! Thank you for watching.

    • @tatamanasa4398
      @tatamanasa4398 3 года назад +1

      @jusmaVids does dbt cloud have an in hand database with data to try few queries on?

  • @0xsuperman
    @0xsuperman Год назад +1

    I don't see the .dbt folder under my admin folder, will this still work?

  • @joseantoniolopezmesa6807
    @joseantoniolopezmesa6807 Год назад +4

    Well I need to say this is great to start on DBT. Not too complicated, not too simple, just something in between. I am watching the whole playlist. I am excited because this will get me up to speed for POC purposes quick enough. Thanks

  • @n_128
    @n_128 2 года назад +2

    The command "pip install dbt" will not work anymore. The documentation says:
    "Note that, as of v1.0.0, pip install dbt is no longer supported and will raise an explicit error. Since v0.13, the PyPi package named dbt was a simple "pass-through" of dbt-core and the four original database adapter plugins. For v1, we formalized that split."
    This command emulates the behaviour of the pip install dbt command:
    ```
    pip install \
    dbt-core \
    dbt-postgres \
    dbt-redshift \
    dbt-snowflake \
    dbt-bigquery
    ```

    • @KahanDataSolutions
      @KahanDataSolutions  2 года назад

      You are correct - This video is now a bit dated compared to the latest version but if you make the adjustment you mention you should be all set. Here is a reference link for others who are interested: docs.getdbt.com/dbt-cli/install/pip#pip-install-dbt

  • @tushargp
    @tushargp 2 года назад +1

    Hello, I have 2 models in same folder , but wants dbt to write out put from each model to separate database in same account, how can I do that? Please advise.

    • @KahanDataSolutions
      @KahanDataSolutions  2 года назад

      Hi Dinesh, this can be accomplished by changing the "database" config setting. Here is the documentation:
      docs.getdbt.com/docs/building-a-dbt-project/building-models/using-custom-databases

    • @tushargp
      @tushargp 2 года назад

      Thank you, This is what I have been looking for. Can you please advise on below scenario where I have 4 tables to load, each table has 4 scripts to run in specific sequence (insert script + logging scripts), please advise how can I set this 16 script project with dependencies.

  • @CosmicNomad
    @CosmicNomad Месяц назад

    This tutorial is good, but unfortunately the installation/ project creation steps are outdated. The dbt installation process has changed, the dbt init now asks adapter credentials before it can create a profiles file etc. :( Anyone using this video would have to do a lot of research trying to simply set up their first project.

  • @atulbharti9757
    @atulbharti9757 2 месяца назад

    if your DBT INIT NOT WORKING PLEASE TRY THIS ONE python -m pip install --upgrade dbt-core. pip dbt install not working please try this one pip install dbt-core

  • @StephenRayner
    @StephenRayner 2 месяца назад

    Please make videos on “Meltano” and how to use dbt within this? 🎉

  • @sakthivadivel1057
    @sakthivadivel1057 3 года назад +1

    Hi @kahan, While I try to install dbt (pip install dbt) an error occurs.Error:KeyError:ICU_VERSION.could you help me to fix?

    • @KahanDataSolutions
      @KahanDataSolutions  3 года назад

      Hi there - Unfortunately that sounds like an environment issue specific to your machine/setup and not something I can easily answer. Make sure you are using an acceptable version of Python for dbt and try searching around online to see if others have encountered similar issues.

  • @InPersian
    @InPersian Год назад

    Unfortunately, I tried to install dbt but it is not working"\Python311\Lib\site-packages\mashumaro\meta\helpers.py", line 161, in is_generic raise NotImplementedError, I tried to find the solution but still no result

  • @qone2363
    @qone2363 2 месяца назад

    Hey Kahan! There were some changes to get the dbt env setup going.. perhaps it's time for an update? Had to find work arounds.. when I do it, profiles.yml file doesn't exist or cannot be found.. anyways, thanks for making the tutorial

  • @varinderjitkaur3656
    @varinderjitkaur3656 2 года назад +8

    Hey Mike! Thank you so much for creating this DBT playlist. i am so grateful to you, i had a job assesment exam for Data modelling using DBT and your videos really helped me to learn the basics and later develop my own project. Again thank you so much! 😊😊

    • @KahanDataSolutions
      @KahanDataSolutions  2 года назад +1

      That is awesome! So glad to hear it was helpful you for you. That type of feedback is what makes creating these videos worth it!

  • @shankarbonda6977
    @shankarbonda6977 Год назад

    @KahanDataSolutions Hi, while running dbt debug, I am facing connection test error, could not connect to snowflake backend, I have populated all the fields popularly. Could you please help me ?

  • @SravaniK-ee8td
    @SravaniK-ee8td 2 месяца назад

    How to avoid hardcoding of username and password?

  • @udaykumar-tb5kn
    @udaykumar-tb5kn Год назад

    Dbt is cloud login right why did you install it locally?? What difference between on prem vs cloud dbt login pls help

  • @BobbyWatson-s4z
    @BobbyWatson-s4z Год назад

    10/10 --thanks for the video. New dbt users should view before visiting @dbt. Found this after nearly a day installing/reinstalling to dbt spec (is 'erratic' a good description for dbt docs? maybe...'incorrect'?).

  • @Faith_Ojumah
    @Faith_Ojumah Год назад

    HI, I am having difficulties finding my profiles.yml file on my MacOS. Please help?

  • @roberbonox
    @roberbonox Год назад

    dude how r you, i have the next question, what could i do if i have a stream on snowflake that i want to "consume" in dbt but not creating a physical table or view, instead something live a ephemeral materialization, only to purge the stream and avoid to become stale. I create an ephemeral model and select the stream source but that only create obviously an ephemeral materialization but kind not clean the data on the stream, thoughts??

  • @vishwanathmuthuraman5530
    @vishwanathmuthuraman5530 2 года назад

    I was able to pip install dbt, but when i run " dbt init [project name] " it says something like cant recognize path, external, or batch file ?? what do it do ?

  • @prateekganguly9285
    @prateekganguly9285 Год назад

    If i were 3 years younger I'd have pushed the code with all the secrets in the yaml file

  • @mayureshpachangane7523
    @mayureshpachangane7523 10 месяцев назад

    Do you know how we can write stored-procs in dbt? Can you provide something on that

  • @tatamanasa4398
    @tatamanasa4398 3 года назад +1

    does dbt cloud have an in hand data base with data to try out the commands?

    • @KahanDataSolutions
      @KahanDataSolutions  3 года назад

      Hi Tata - Unfortunately DBT does not come out of the box with a database, but instead is designed to plug into one that you already have.

  • @bashabash3697
    @bashabash3697 11 месяцев назад

    hey Mike. Can we install DBT in Azure data factory

  • @anjanashetty482
    @anjanashetty482 2 года назад

    How to update records in dbt. Update operation is failing upon dbt run.

  • @ravibabumca
    @ravibabumca 3 года назад +1

    Really good Brother

  • @MrEsdrasadiel
    @MrEsdrasadiel Год назад

    Hello! I am watching your video, for now the dbt request to choose an version in according the situation. In my case i choose the dbt-redshift to install. "pip install dbt-redshift"

    • @KahanDataSolutions
      @KahanDataSolutions  Год назад

      That's correct! Here's more docs on Redshift specifically: docs.getdbt.com/reference/warehouse-setups/redshift-setup

  • @tushargp
    @tushargp 2 года назад

    Hello, Please advise how can i run update statement on snowflake.

  • @mohitsondhi
    @mohitsondhi Год назад

    where do i find profiles.yml file when installed in mac?

    • @KahanDataSolutions
      @KahanDataSolutions  Год назад

      It will be on your home directory at "~/.dbt"
      However, it might be hidden by default in the finder so you need to press "CMD + Shift + ." to show hidden directories.

    • @mohitsondhi
      @mohitsondhi Год назад

      @@KahanDataSolutions Great, Thank you so much, I am about to buy your course, have 1-2 questions on that, can we somehow chat or have a call?

  • @blancamola
    @blancamola 2 года назад

    Hello there!
    I got stuck at the start.
    I installed dbt by pip with no errors (Actually dbt-redshift). But when I run dbt --version or any other dbt command I get the typical error of not recognized as internal.
    I tried to add .....\python310\site-packages in the path of environment variables, but no luck.
    Thank you for any help,
    Looking forward to watching the rest of videos too.
    😃

    • @samuelbrown797
      @samuelbrown797 2 года назад

      Hi Serna. Sorry for reaching out to you but I am encountering the same problem. Were you able to find a solution to this problem?

  • @tushargp
    @tushargp 2 года назад

    Also if you can please advise how can I run update statement.

  • @PawanKumar-un7sk
    @PawanKumar-un7sk 3 года назад

    After the command applied pip install dbt
    When I check for dbt --version it's showing that dbt is not recognized as an internal or external command, operable program or batch file what I do now?

  • @frankbell3033
    @frankbell3033 3 года назад

    when I run your dbt init step in the beginning on a mac I keep getting an error raise ValidationError(f"Unable to create schema for '{type_name}'")
    hologram.ValidationError: Unable to create schema for 'Optional'

    • @mechy6065
      @mechy6065 3 года назад

      Hello Frank, If you are running Python 3.9, One of their dependencies is not compatible. You will have to downgrade your python version maybe 3.8. If you had found any other solution please reply to this message.

  • @lokendrasinghtanwar5917
    @lokendrasinghtanwar5917 2 года назад

    can you please make a video on how to setup dbt in VS code

  • @shrero
    @shrero Год назад

    Will this intro work on a mac as well?

  • @cherah3012
    @cherah3012 3 года назад +1

    Hello @Kahan. Thank you for everything you share with us. It's a pleasure to follow you.
    For this tutorial, I followed everything well until 11:30. dbt shows me "Completed successfully" => 2 of 2 Ok created view model Public ... etc. But when I look in snowflake under public, nothing has been created ... Do you have an explanation? Thx

    • @KahanDataSolutions
      @KahanDataSolutions  3 года назад

      Hello and thank you for your kind words!
      Regarding your visibility in Snowflake - perhaps you need to switch roles when you sign into Snowflake. For example, if you set your profiles.yml on dbt to use accountadmin , then any role with "less" privileges won't have visibility. This is where access control comes into play, but was unfortunately outside the scope of this video. Let me know if that does it. Thanks again.

    • @cherah3012
      @cherah3012 3 года назад +1

      Hi​@@KahanDataSolutions Thank you for your quick response
      In fact, I had done everything right.
      while I am testing something else in snowflake by creating a table by hand in the same schema (DEMO_DB.PUBLIC, in my case), I saw the table and the view appear in the worksheet (MY_FIRST_DBT_MODEL and MY_SECOND_DBT_MODEL) ... It's a bit strange !! but everything is fine, I will be able to move forward ...

    • @stephensun6672
      @stephensun6672 3 года назад

      @@cherah3012 you have to grant privileges to SYSADMIN then you'll be able to see the table.

  • @khaledtawfik7268
    @khaledtawfik7268 Год назад

    Hey Mike
    I love your videos as they helped me a lot.
    wanted to ask if you have any plan to make a video about incremental techniques and the difference between them and best practices, i always struggle with this as an analytics engineer. Thanks

  • @jeremiahworkman1631
    @jeremiahworkman1631 2 года назад

    Is this tutorial applicable (after the initial install for WIndows) for MacOS?

    • @KahanDataSolutions
      @KahanDataSolutions  2 года назад

      Hey Jeremiah - Yes the general workflow of dbt will be the same across operating systems.

  • @sungod595
    @sungod595 Год назад

    Hey Mike, Excellent Content. Many Thanks. I know these videos are good to start with . Do you plan to include any videos on advanced concepts Once again Thanks so much for great content

  • @Ashok-oe3lo
    @Ashok-oe3lo 3 года назад +1

    Thank you very much for your time, very helpful

  • @SnowGateAI
    @SnowGateAI 7 месяцев назад

    Great Video For Any Beginner, thank You

  • @grantdoyle1259
    @grantdoyle1259 2 года назад

    Ive done everything correct up to this point but when I run dbt debug I get an error "dbt : The term 'dbt' is not recognized as the name of a cmdlet, function, script file, or operable
    program."

    • @samuelbrown797
      @samuelbrown797 2 года назад

      Hi Grant - Sorry for reaching out to you but I am encountering the same problem. Were you able to find a solution to this error? Thanks Sam

    • @grantdoyle1259
      @grantdoyle1259 2 года назад

      @@samuelbrown797 I ended up just working with DBT in a virtual environment. They have some documentation on it and I believe he has a video on it. I am taking a DBT udemy course that has been solid in setting up and configuring DBT

  • @mounikarepakula1910
    @mounikarepakula1910 2 года назад

    Hey Mike! Thank You so much.
    May i know how to create a new table in DBT tool?

    • @KahanDataSolutions
      @KahanDataSolutions  2 года назад

      Thanks for watching! To create a table you create a model (sql file) and set the materialization as "table". You can follow along the rest of the videos in this playlist to learn more about how to use dbt.

  • @praveen-dten-0871
    @praveen-dten-0871 9 месяцев назад

    Great tutorial, thanks Kahan for uploading this.

  • @yanelakantomboxolo185
    @yanelakantomboxolo185 2 года назад

    Thank you very much. This was the best video for a beginner like myself .... 1 or 2 things that had been changed by dbt since 2020, but I was able to follow you.

  • @parrisgjerde9212
    @parrisgjerde9212 Год назад

    Nice video. Thanks.

  • @sararodriguez5803
    @sararodriguez5803 3 года назад

    Can you possibly configure dbt profile to work with Spark into AWS S3 parquet files?

    • @KahanDataSolutions
      @KahanDataSolutions  3 года назад

      Here are the list of available adapters - docs.getdbt.com/docs/available-adapters

  • @1ma4ighter
    @1ma4ighter Год назад

    sweeeeeet! thanks for all the videos, I'mana go through all of these over the next two weeks

  • @navdeepkumar5946
    @navdeepkumar5946 3 года назад +1

    Very informative and helpful. Thanks

  • @VaibhavPatil-rx7pc
    @VaibhavPatil-rx7pc 9 месяцев назад

    Excellent information

  • @TalhaIftikhar-wj3bu
    @TalhaIftikhar-wj3bu Год назад

    Nice and clear, thank you.

  • @AbdullahShoukat-h5c
    @AbdullahShoukat-h5c 8 месяцев назад

    thanks!

  • @litttlemooncream5049
    @litttlemooncream5049 2 года назад

    hey mike. Thanks for your video. really helpful! I wonder if I can use python to do loops instead of writing 1000+ rows sql? is it possible to combine dbt and python

    • @KahanDataSolutions
      @KahanDataSolutions  2 года назад +1

      I recommend checking out Jinja, which allows you to incorporate more dynamic things like loops into your SQL code.
      docs.getdbt.com/docs/building-a-dbt-project/jinja-macros

  • @muchumarriamarnath1858
    @muchumarriamarnath1858 2 года назад

    It is really good one to start DBT.. Thank you

  • @abdullahsiddique7787
    @abdullahsiddique7787 2 года назад

    How’s dbt as a career with snowflake

    • @KahanDataSolutions
      @KahanDataSolutions  2 года назад +1

      There is a big demand right now for dbt developers, particularly with Snowflake.
      Having said that, I would consider dbt as just one of the many possible tools in the broader career of a data/analytics engineer.
      Either way - I'd strongly suggest learning it!

    • @abdullahsiddique7787
      @abdullahsiddique7787 2 года назад

      @@KahanDataSolutions thanks bro for replying , so if we learn dbt is there any need to learn ETL tools like informatica talend etc and is your playlist complete course on dbt

  • @mikepain5011
    @mikepain5011 3 года назад +1

    Super helpful! Thank you!

  • @lucymat3746
    @lucymat3746 Год назад

    so helpful, thank you

  • @parthapratimdas4051
    @parthapratimdas4051 Год назад

    this is the best tutorial on dbt!

  • @TubeDirektor
    @TubeDirektor 4 года назад

    Nicely done, was able to follow through and get my first commit into a snowflake instance.

  • @TheSimpGatsby
    @TheSimpGatsby Год назад

    thanks mate.

  • @ankuraeran1819
    @ankuraeran1819 2 года назад

    Good tutorial, thank you!

  • @sateeshbabu5792
    @sateeshbabu5792 4 месяца назад

    Hi , This is sateesh, i have completed snowflake snow pro certification. planning to learn DBT. What are the pre-requisites ? and complete Python is required before learn DBT ? Could you please let me know.

    • @KahanDataSolutions
      @KahanDataSolutions  4 месяца назад

      I recommend having a solid understanding of SQL as the #1 pre-req. You don't need to be a master Python dev to use it. Very beginner understanding of general programming is all you need to get started.

    • @sateeshbabu5792
      @sateeshbabu5792 4 месяца назад

      @@KahanDataSolutions Thank you so much for your reply. Are you providing online training on DBT ?

    • @KahanDataSolutions
      @KahanDataSolutions  4 месяца назад

      @@sateeshbabu5792 I do have a dbt course. You can check it out here - www.kahandatasolutions.com/the-playbook-for-dbt

  • @ademolaoladapo9024
    @ademolaoladapo9024 3 года назад +1

    Good Morning, when i tried checking the version of dbt, i get this error - 'dbt' is not recognized as an internal or external command, operable program or batch file. How do i proceed?

    • @KahanDataSolutions
      @KahanDataSolutions  3 года назад +1

      Did you successfully install dbt before running that command? Perhaps you need to open a new/fresh terminal.

    • @ademolaoladapo9024
      @ademolaoladapo9024 3 года назад +1

      @@KahanDataSolutions i did install dbt using pip3 before running that command

    • @hantt
      @hantt 2 года назад

      This means that dbt is not added to the path of your execution. Make sure when you run pip install that your virtual environment is active.

  • @pendragonmeat
    @pendragonmeat 2 года назад

    Great content. Thanks Mike

  • @miniaturkid
    @miniaturkid 2 года назад

    fantastic playlist. Thank you.

  • @xhshaw4930
    @xhshaw4930 2 года назад

    nice👍

  • @AnkitSinhaforself
    @AnkitSinhaforself 4 года назад

    thanks for this !!! really helpful

  • @livu69
    @livu69 2 года назад

    Great tutorial!

  • @jaredfiacco1107
    @jaredfiacco1107 2 года назад

    Thanks Kahan!

  • @jaym7178
    @jaym7178 2 года назад

    Hi
    I am looking into a career as a Data Engineer i am overwhelmed with software I should learn other than learning python,sql is the any tools and areas I should focus Thanks

  • @TJ-hs1qm
    @TJ-hs1qm 4 месяца назад

    The terminal on Windows is an abomination, that shouldn't exist 😭

  • @emanueol
    @emanueol Год назад

    nice playlist, but i found really annying RUclipsrs not buying decent microphones and forcing viewers to hear every single mouse click and every single keyboard key press.. sorry for being honest, but we can only improve with others suggestions

    • @KahanDataSolutions
      @KahanDataSolutions  Год назад

      Appreciate the feedback & glad to hear the playlist was helpful! I've also upgraded my microphone since this video and you can see it on my newer videos.

  • @vickysworld9
    @vickysworld9 3 года назад

    I am unable to install dbt on windows from CLI "Error: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly"

    • @KahanDataSolutions
      @KahanDataSolutions  3 года назад

      What version of Windows and Python are you using?

    • @vickysworld9
      @vickysworld9 3 года назад

      @@KahanDataSolutions windows 10 & python 3.9

    • @vickysworld9
      @vickysworld9 3 года назад

      @@KahanDataSolutions Please help

    • @KahanDataSolutions
      @KahanDataSolutions  3 года назад

      stackoverflow.com/questions/59441794/error-could-not-build-wheels-for-cryptography-which-use-pep-517-and-cannot-be-i

    • @graceluo9813
      @graceluo9813 3 года назад

      @@vickysworld9 found that python 3.9 does not support dbt's snowflake connector hence downgraded my python installation version to 3.8 which helped