Redha Cherif (@redha_rc) profile picture

Senior analytics engineer | Data trainer | Speaker | Data blogger

A free data newsletter ๐Ÿ‘‰
Joined October 2024
Photo by Redha Cherif (@redha_rc)Photo by Redha Cherif (@redha_rc)Photo by Redha Cherif (@redha_rc)Photo by Redha Cherif (@redha_rc)Photo by Redha Cherif (@redha_rc)Photo by Redha Cherif (@redha_rc)Photo by Redha Cherif (@redha_rc)
Growing fast as analytics engineer has almost nothing to do with degrees your earned. It's about always learning, being ambitious and going after it with all your energy. If you're able to work hard enough on a long period of time, you'll be able to become the best and outperform anyone with the best degrees out there. #career #dataengineering #analyticsengineering
9
๐—ช๐—ต๐—ฎ๐˜ ๐—œ ๐—ผ๐—ฏ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ฒ๐—ฑ ๐˜„๐—ต๐—ฒ๐—ป ๐—œ ๐˜€๐˜๐—ฎ๐—ฟ๐˜๐—ฒ๐—ฑ ๐˜๐—ผ ๐˜„๐—ผ๐—ฟ๐—ธ ๐—ฎ๐˜€ ๐—ฎ ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—ฎ๐—ป๐—ฎ๐—น๐˜†๐˜€๐˜ ? When I first started to work as a data analyst, I came from a research background on computational chemistry. I thought I'd be the only one coming from a non-computer science or big data background. Actually, I was totally wrong. Most of my colleagues were coming from various backgrounds and they have entered the data & AI industry after doing a bootcamp in data analysis. Takeaway: the background you come from doesn't matter to get a data position. The main is to answer this question: "๐—ต๐—ผ๐˜„ ๐—บ๐˜† ๐—ฐ๐˜‚๐—ฟ๐—ฟ๐—ฒ๐—ป๐˜ ๐˜€๐—ธ๐—ถ๐—น๐—น๐˜€ ๐—ฐ๐—ผ๐˜‚๐—น๐—ฑ ๐˜๐—ฟ๐—ฎ๐—ป๐˜€๐—น๐—ฎ๐˜๐—ฒ ๐—ถ๐—ป๐˜๐—ผ ๐˜๐—ต๐—ฒ ๐—ฑ๐—ฎ๐˜๐—ฎ & ๐—”๐—œ ๐—ถ๐—ป๐—ฑ๐˜‚๐˜€๐˜๐—ฟ๐˜† ?" Nothing fancy. All meaningful. #career #data #ai
9
๐—™๐—ผ๐—ฟ ๐—ฎ๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ ๐—ฒ๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐˜€ ๐˜„๐—ต๐—ผ ๐˜„๐—ฎ๐—ป๐˜ ๐˜๐—ผ ๐˜‚๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ ๐˜„๐—ต๐—ถ๐—ฐ๐—ต ๐—ธ๐—ฒ๐˜† ๐—ฏ๐—ฒ๐—ป๐—ฒ๐—ณ๐—ถ๐˜๐˜€ ๐˜๐—ต๐—ฒ ๐—ฎ๐—ฐ๐—พ๐˜‚๐—ถ๐˜€๐—ถ๐˜๐—ถ๐—ผ๐—ป ๐—ผ๐—ณ ๐—ฆ๐——๐—™ ๐—น๐—ฎ๐—ฏ๐˜€ ๐—ฏ๐—ฟ๐—ถ๐—ป๐—ด๐˜€ ๐—ณ๐—ผ๐—ฟ ๐˜๐—ต๐—ฒ๐—บ: - The ability to compile SQL queries locally, bypassing the data warehouse compiler. The query execution speed could increase by up to 7x, leading to significant time and cost savings. - The ability to obtain columnโ€“level lineage, which will be powerful for data governance and access management. - The state method will be automatically included when models are run, meaning only modified models will be executed with the ๐˜ฅ๐˜ฃ๐˜ต ๐˜ณ๐˜ถ๐˜ฏ command! No more need to use the more complicated command: ๐˜ฅ๐˜ฃ๐˜ต ๐˜ณ๐˜ถ๐˜ฏ โ€”๐˜ด๐˜ฆ๐˜ญ๐˜ฆ๐˜ค๐˜ต ๐˜ด๐˜ต๐˜ข๐˜ต๐˜ฆ:๐˜ฎ๐˜ฐ๐˜ฅ๐˜ช๐˜ง๐˜ช๐˜ฆ๐˜ฅ+ โ€”๐˜ด๐˜ต๐˜ข๐˜ต๐˜ฆ:๐˜ฑ๐˜ข๐˜ต๐˜ฉ/๐˜ต๐˜ฐ/๐˜ฎ๐˜ข๐˜ฏ๐˜ช๐˜ง๐˜ฆ๐˜ด๐˜ต.๐˜ซ๐˜ด๐˜ฐ๐˜ฏ - A built-in linter will be automatically implemented, faster than sqlfluff. The commands dbt lint and dbt lint --fix should be used to lint and fix your code. #dbt #SDF #analyticsengineering #dataengineering
6
๐——๐—ฎ๐˜๐—ฎ ๐—ฝ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ๐˜€ ๐—ฏ๐—ฒ๐—ณ๐—ผ๐—ฟ๐—ฒ ๐—ฎ๐—ป๐—ฑ ๐—ฎ๐—ณ๐˜๐—ฒ๐—ฟ ๐˜๐—ต๐—ฒ ๐—ถ๐—ป๐˜๐—ฟ๐—ผ๐—ฑ๐˜‚๐—ฐ๐˜๐—ถ๐—ผ๐—ป ๐—ผ๐—ณ ๐—ฑ๐—ฏ๐˜ ๐—ผ๐—ป ๐˜๐—ต๐—ฒ ๐—บ๐—ฎ๐—ฟ๐—ธ๐—ฒ๐˜ ๐—ถ๐—ป ๐Ÿฎ๐Ÿฌ๐Ÿญ๐Ÿฒ Before 2016: โ€ข monolithic data pipelines โ€ข very long SQL scripts -> very expensive as pipelines were build from scratch every time -> data quality issues induced by data discrepancies for the same KPI in different dashboards (lack of confidence of business stakeholders) -> high complexity to understand bugs when production breaks After 2016: โ€ข modularity concept with staging, intermediate and mart models โ€ข software engineering practises for data pipelines -> easier to maintain -> reusability of models -> version control for team collaboration #dbt #analyticsengineering #dataengineering
1
๐— ๐—ฎ๐—ป๐˜† ๐—ฎ๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ ๐—ฒ๐—ป๐—ด๐—ถ๐—ป๐—ฒ๐—ฒ๐—ฟ๐˜€ ๐—ธ๐—ฒ๐—ฒ๐—ฝ ๐—ฏ๐˜‚๐—ถ๐—น๐—ฑ๐—ถ๐—ป๐—ด ๐˜๐—ผ๐—ผ ๐—ฐ๐—ผ๐—บ๐—ฝ๐—น๐—ฒ๐˜… ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—ฝ๐—ถ๐—ฝ๐—ฒ๐—น๐—ถ๐—ป๐—ฒ๐˜€ ! ๐Ÿšจ Why ? Because they forget about the key concept of dbt: ๐—บ๐—ผ๐—ฑ๐˜‚๐—น๐—ฎ๐—ฟ๐—ถ๐˜๐˜†. Modularity is the concept of building your final tables as ๐—ถ๐—ป๐—ฑ๐—ฒ๐—ฝ๐—ฒ๐—ป๐—ฑ๐—ฒ๐—ป๐˜ ๐—บ๐—ผ๐—ฑ๐˜‚๐—น๐—ฒ๐˜€. This induces lots of benefits as: โ€ข ๐—ฅ๐—ฒ๐˜‚๐˜€๐—ฎ๐—ฏ๐—ถ๐—น๐—ถ๐˜๐˜† -> No need to start over from the source every time โ€ข ๐—–๐—ผ๐—น๐—น๐—ฎ๐—ฏ๐—ผ๐—ฟ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฎ๐—ป๐—ฑ ๐˜๐—ฒ๐—ฎ๐—บ ๐—ฒ๐—ณ๐—ณ๐—ถ๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐˜† -> enable teams to work on different parts of the pipeline simultaneously โ€ข ๐—˜๐—ฎ๐˜€๐—ถ๐—ฒ๐—ฟ ๐—ฑ๐—ฒ๐—ฏ๐˜‚๐—ด๐—ด๐—ถ๐—ป๐—ด ๐—ฎ๐—ป๐—ฑ ๐—บ๐—ฎ๐—ถ๐—ป๐˜๐—ฒ๐—ป๐—ฎ๐—ป๐—ฐ๐—ฒ -> simpler to understand and fix issues in data pipelines Always be curious and stick to basics. Basics will make you the best. Hope it finds you well. #dbt #analyticsengineering #dataengineering
4
Keeping in mind the key concept of dbt which is modularity will be a game-changer when building your data pipelines ! Before dbt was released, monolithic data pipelines were used in the industry meaning very long SQL scripts (10 000+ lines) were used to build table, data marts, datasets. If someone else in the organisation was looking to model similar tables, they were starting over. Indeed, modifying long SQL scripts was more difficult than starting over from source data. This was problematic at various levels: - it is expensive - data discrepancies for the same KPI at two different places - high complexity when production breaks #dbt #careers #dataanalytics #analyticsengineering #dataengineering
1
7
This is your final layer, the tables which will constitute the data mart of your team and most probably the source for your activation layer which will be the direct backend of your dashboards.
1
4
Best practises: - For staging models, use the prefix stg_ - For intermediate models, use the prefix int_ - Materialise staging and intermediate models as ephemeral models. - For mart models, use the prefix dim_ for dimensions, fact_ for fact tables and obt_ for One Big Tables
10
๐Ÿฎ ๐—จ๐—ฑ๐—ฒ๐—บ๐˜† ๐—ฐ๐—ผ๐˜‚๐—ฟ๐˜€๐—ฒ๐˜€ ๐—ฒ๐˜ƒ๐—ฒ๐—ฟ๐˜†๐—ผ๐—ป๐—ฒ ๐˜„๐—ต๐—ผ'๐˜€ ๐˜„๐—ถ๐—น๐—น๐—ถ๐—ป๐—ด ๐˜๐—ผ ๐˜๐—ฟ๐—ฎ๐—ป๐˜€๐—ถ๐˜๐—ถ๐—ผ๐—ป ๐—ถ๐—ป๐˜๐—ผ ๐—ฑ๐—ฎ๐˜๐—ฎ ๐˜€๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐—ฒ ๐˜€๐—ต๐—ผ๐˜‚๐—น๐—ฑ ๐—ธ๐—ป๐—ผ๐˜„ ๐—ฎ๐—ฏ๐—ผ๐˜‚๐˜: - The Complete Python Bootcamp From Zero to Hero in Python: buff.ly/4h86zMw - Python for Data Science and Machine Learning Bootcamp buff.ly/3WsSHnL You can get them for cheap while having a very good content ! I started with those 6 years ago. I hope you enjoy them.
8
๐——๐—•๐—ง ๐—ฐ๐—ผ๐—บ๐—บ๐—ฎ๐—ป๐—ฑ๐˜€ ๐˜„๐—ต๐—ถ๐—ฐ๐—ต ๐—ฑ๐—ผ ๐—ป๐—ผ๐˜ ๐—ด๐—ฒ๐—ป๐—ฒ๐—ฟ๐—ฎ๐˜๐—ฒ ๐˜๐—ต๐—ฒ ๐—บ๐—ฎ๐—ป๐—ถ๐—ณ๐—ฒ๐˜€๐˜.๐—ท๐˜€๐—ผ๐—ป ๐—ณ๐—ถ๐—น๐—ฒ, ๐—ณ๐˜‚๐—ป๐—ฑ๐—ฎ๐—บ๐—ฒ๐—ป๐˜๐—ฎ๐—น ๐—ฝ๐—ถ๐—ฒ๐—ฐ๐—ฒ ๐—ณ๐—ผ๐—ฟ ๐˜€๐—น๐—ถ๐—บ ๐—–๐—œ - ๐—ฑ๐—ฏ๐˜ ๐—ฑ๐—ฒ๐—ฝ๐˜€ -> allows to install dbt packages - ๐—ฑ๐—ฏ๐˜ ๐—ฐ๐—น๐—ฒ๐—ฎ๐—ป -> removes your target and dbt_packages folders and any other unnecessary files or directories generated during the execution of dbt commands - ๐—ฑ๐—ฏ๐˜ ๐—ฑ๐—ฒ๐—ฏ๐˜‚๐—ด -> check if your dbt project is correctly setup (check your profiles.yml, dbt_project.yml, if git is installed and your connection to your data warehouse) ๐—ง๐—ฎ๐—ธ๐—ฒ๐˜„๐—ฎ๐˜†: the manifest.json is generated by any command which parses your dbt project (build, run, test, seed, snapshot, compile, ...)
1
๐—š๐—ฟ๐—ผ๐˜„๐—ถ๐—ป๐—ด ๐—ณ๐—ฎ๐˜€๐˜ ๐—ถ๐—ป ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—ฎ๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ ๐—ต๐—ฎ๐˜€ ๐—ฎ๐—น๐—บ๐—ผ๐˜€๐˜ ๐—ป๐—ผ๐˜๐—ต๐—ถ๐—ป๐—ด ๐˜๐—ผ ๐—ฑ๐—ผ ๐˜„๐—ถ๐˜๐—ต ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—ฑ๐—ฒ๐—ด๐—ฟ๐—ฒ๐—ฒ๐˜€ It's about finding the way your skills can translate into the industry and being curious enough to always keep learning as it is a very-fast evolving area. Then add: - very hard working - soft-skills development - confidence Correct game-plan + obsession = results
1
๐—ช๐—ต๐—ฎ๐˜ ๐—œ ๐—ผ๐—ฏ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ฒ๐—ฑ ๐˜„๐—ต๐—ฒ๐—ป ๐—œ ๐˜€๐˜๐—ฎ๐—ฟ๐˜๐—ฒ๐—ฑ ๐˜๐—ผ ๐˜‚๐˜€๐—ฒ ๐˜€๐—น๐—ถ๐—บ ๐—–๐—œ When I started to use slim CI, I struggled to understand dbt artifacts. I thought I'd be the only one having difficulties to understand this notion. Actually, lots of my colleagues didn't bother understanding artifacts. Always be curious and willing to understand most difficult notions. ๐—ง๐—ฎ๐—ธ๐—ฒ๐—ฎ๐˜„๐—ฎ๐˜†: dbt artifacts are json files produced when dbt commands are run. These files are stored in the /target folder. It is mainly used for monitoring purposes as it is filled with metadata with the dbt version you're using, status of your job, the environment you executed your job, ... Hope it finds you well.
4
๐—ฆ๐˜๐—ฟ๐˜‚๐—ด๐—ด๐—น๐—ถ๐—ป๐—ด ๐˜๐—ผ ๐˜‚๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ ๐˜„๐—ต๐—ฎ๐˜ ๐—ถ๐˜€ ๐—บ๐—ผ๐—ฑ๐˜‚๐—น๐—ฎ๐—ฟ๐—ถ๐˜๐˜† ๐—ถ๐—ป ๐—ฑ๐—ฏ๐˜ ? Yesterday, my newsletter subscribers got my article explaining this concept in a simple manner. Missed the issue ? Grab it below โฌ‡๏ธ buff.ly/3WBGLzX
1
๐—จ๐—ป๐—ฑ๐—ฒ๐—ฟ๐˜€๐˜๐—ฎ๐—ป๐—ฑ๐—ถ๐—ป๐—ด ๐˜๐—ต๐—ฒ ๐—ฝ๐—ผ๐˜„๐—ฒ๐—ฟ ๐—ผ๐—ณ ๐—บ๐—ผ๐—ฑ๐˜‚๐—น๐—ฎ๐—ฟ๐—ถ๐˜๐˜† ๐˜„๐—ถ๐˜๐—ต ๐—ฑ๐—ฏ๐˜ ! Exciting news! My next newsletter article dives into modularity โ€” the core concept dbt introduced to build data pipelines ๐ŸŽ‰ Here is what you have to know: โ€ข Modularity consists into building a final product using independent modules โ€ข Modularity translates into dbt through the use of staging, intermediate and mart models Tomorrow, at 7:30 AM ET, I'll explain my newsletter subscribers this concept and why it is so important to understand it properly. The link here: buff.ly/3WBGLzX
8
๐—ช๐—ต๐—ฎ๐˜ ๐—œ ๐—ผ๐—ฏ๐˜€๐—ฒ๐—ฟ๐˜ƒ๐—ฒ๐—ฑ ๐˜„๐—ต๐—ฒ๐—ป ๐—œ ๐—ฑ๐—ฒ๐—ฐ๐—ถ๐—ฑ๐—ฒ๐—ฑ ๐˜๐—ผ ๐—พ๐˜‚๐—ถ๐˜ ๐—บ๐˜† ๐—ฃ๐—ต๐—— When I started wondering if I should quit my PhD, I asked other PhD students for advice. I thought I'd be the only full having these weird thoughts. Actually, it was the total opposite. 95% of researchers I talked to was wondering if they should quit every single morning. ๐—ง๐—ฎ๐—ธ๐—ฒ๐—ฎ๐˜„๐—ฎ๐˜†: when struggling to make decisions, talking to others could simply make you feel "normal". This will help in your decision-making. Nothing fancy. All meaningful.
8