Home / Companies / Metaplane / Blog / January 2025

January 2025 Summaries

7 posts from Metaplane

Filter
Month: Year:
Post Summaries Back to Blog
This article discusses three ways to host and share dbt docs, which are a treasure trove of insights for various stakeholders in an organization. The methods outlined are GitHub Pages, Netlify, and AWS S3 with optional authentication using IAM roles or Lambda functions. Each method provides a way to automate the process of generating and publishing dbt documentation, making it easier for teams to access and share their data architecture knowledge.
Jan 28, 2025 3,381 words in the original blog post.
dbt macros are reusable blocks of SQL or Jinja logic that help simplify and standardize data transformations across multiple models. They enable you to create flexible, dynamic SQL by leveraging Jinja features like loops, conditions, and variables. Macros can be used to standardize column names, convert data types, handle NULL values, ensure cross-database compatibility, test and validate data, and maintain project consistency. By using macros, your team can ensure that everyone follows the same process, reducing errors and discrepancies in the data pipeline, while speeding up development with reusable logic. Macros are essential for large-scale projects as they promote consistency, reduce redundancy, and accelerate development by making it easier to manage complex SQL transformations.
Jan 27, 2025 3,963 words in the original blog post.
The DATEDIFF function in Snowflake is a powerful tool for calculating time differences between two dates or timestamps, making it easy to analyze time-based patterns in data. It can be used to identify churn risk, optimize customer support operations, measure marketing channel effectiveness, and analyze subscription performance. The function takes three arguments: the unit of measurement (such as DAY, MONTH, YEAR, HOUR), the start date or timestamp, and the end date or timestamp. When using DATEDIFF, it's essential to handle NULL values carefully, be mindful of time zones, choose the right date part, and remember that the function is inclusive. Snowflake offers several functions for working with dates and times, including DATEADD, TIMEDIFF, and DATE_TRUNC, each serving specific use cases. By understanding how to effectively utilize DATEDIFF in Snowflake, users can gain valuable insights into their data and make informed decisions.
Jan 23, 2025 1,217 words in the original blog post.
dbt-expectations is a popular and widely-used dbt test package that helps catch data quality issues before they reach production. It provides a comprehensive suite of tests that can be implemented directly in dbt models, allowing users to validate complex business rules, monitor data freshness, and detect anomalies. The package offers various test types, including basic value validations, row count tests, relationship tests, time-based tests, string pattern tests, statistical tests, JSON validation tests, and aggregate tests. To implement dbt-expectations effectively, it's recommended to start with business-critical data points, use severity levels strategically, document assumptions, and adapt configurations to environment-specific needs. By doing so, users can save time, improve data quality, and maintain a robust testing framework for their dbt workflows.
Jan 22, 2025 1,749 words in the original blog post.
Metaplane Dashboards offers customizable data views that help data engineers monitor specific parts of their data stack and share relevant views with teammates. The tool provides a single source of truth for each project and team, making it easier to discuss data quality. It allows users to create curated views of data quality metrics, grouped by area of expertise or stakeholder, and share them with external stakeholders. With features like mission control for data quality and built-in collaboration tools, Metaplane Dashboards helps teams stay focused on key metrics, monitor incident trends, and understand how issues cascade through their data pipelines.
Jan 14, 2025 808 words in the original blog post.
Managing dbt alert fatigue is crucial to staying informed without becoming overwhelmed. By leveraging metadata, such as owners and tags, teams can create a comprehensive system that clearly defines who owns what and why it matters. This approach helps reduce redundancy in testing and alerts, making them more meaningful and actionable for the team. Routing alerts to the right people and providing richer context can also help mitigate alert fatigue, allowing engineers to quickly understand the impact of issues and resolve problems faster. Additionally, scaling the alerting strategy with the growing team is essential to avoid "alerting everyone about everything" trap, using metadata to route alerts to different channels based on team ownership. By implementing these strategies, teams can tame their dbt alerts and make them meaningful for both themselves and their stakeholders.
Jan 10, 2025 1,210 words in the original blog post.
dbt tests are assertions to validate data models, ensuring data quality and integrity. There are two main types of dbt tests: generic and custom. Generic tests are pre-built tests defined in schema.yml for common data quality checks, while custom tests are developed to validate specific business logic or project-specific validation rules. Custom tests require more complex SQL queries and can be reused across models. Singular tests are standalone SQL queries that enforce rules not tied to a particular column and are used to ensure data integrity or enforce business rules. Unit tests validate the correctness of complex transformations or logic within models, isolating specific logic for validation. dbt tests fit into CI/CD pipelines, ensuring data reliability at every step, and can be automated with tools like Metaplane's dbt alerting tool. Running dbt tests regularly enables proactive address of issues, avoidance of downtime, and ensures accurate and reliable data-driven decision-making.
Jan 06, 2025 3,675 words in the original blog post.