Documentation index: llms.txt. This page is also available as markdown: append .md to this URL or send Accept: text/markdown.
How To Build Your Data Pipelines
Use these how to guides to help you build your Coalesce integration.
Overview
Comprehensive collection of practical how-to guides for building, optimizing, and managing data pipelines in Coalesce. Master advanced techniques including CTE migration, custom testing, UDF integration, lineage preservation, data filtering, and pipeline troubleshooting. Essential resource hub covering everything from basic node operations to complex data transformation scenarios for enterprise-grade pipeline development.
Filter output with SELECT
Learn proper data filtering techniques in Coalesce using SELECT statements and WHERE conditions. Understand how data flows work in Coalesce pipelines, why filtering should be applied in consuming nodes rather than publishing nodes, and implement best practices for row limiting logic. Master efficient data filtering strategies for optimized query performance and accurate data transformation results.
GROUP BY
Master GROUP BY operations in Coalesce for effective data aggregation and fact table creation. Learn how to implement SQL GROUP BY clauses in the Join tab, configure aggregation transforms in the mapping view, and create complex fact tables with proper dimension joins. Comprehensive guide with step-by-step examples for building aggregated data models and summary tables.
Multiple statements in override SQL
Overcome Coalesce view node limitations by executing multiple SQL statements using stage-based override techniques. Learn to implement sequential SQL execution within override create SQL sections, manage statement count restrictions, and deploy complex view logic with proper staging patterns. Essential guide for advanced view node customization and multi-statement SQL deployment.
Load DISTINCT values
Load distinct values into Coalesce nodes using multiple proven techniques including View node DISTINCT toggles, GROUP BY ALL clauses, and custom node type creation. Master data deduplication strategies for Snowflake and Databricks platforms, implement SELECT DISTINCT behavior across different node types, and eliminate duplicate records efficiently in your data transformation pipelines.
Keep lineage in SQL statements
Preserve column lineage visibility in Coalesce when using complex SQL statements by implementing qualified column naming conventions. Learn best practices for maintaining data lineage traceability across multi-column SQL operations, use node name qualification for lineage preservation, and leverage autocomplete features for efficient qualified column references in transformations.
Self-join a node
Implement self-joins in Coalesce data pipelines using ref_no_link functions to connect nodes to themselves for hierarchical data structures and comparative analysis. Learn proper aliasing techniques, configure join relationships for recursive data patterns, and build self-referencing transformations for parent-child relationships, gap analysis, and data comparison scenarios within single datasets.
Test stage macro
Create custom data validation tests in Coalesce using the powerful test_stage() macro for advanced data quality control beyond built-in testing capabilities. Learn to implement reusable custom test logic, configure failure handling behavior, author SQL template-based tests, and build sophisticated data validation nodes for comprehensive pipeline testing and quality assurance.
Migrate a CTE
Migrate Common Table Expressions (CTEs) to Coalesce's pipeline-based architecture for improved data transformation scalability and maintainability. Learn step-by-step CTE conversion techniques, identify data sources and dependencies, implement sequential migration patterns, and transform complex CTE logic into modular Coalesce nodes with enhanced lineage tracking and column-level visibility.
SCD Type 2 change detection
Coalesce SCD Type 2 Dimension Nodes rely on warehouse SQL equality for change tracking. Learn why letter case can open new versions on BigQuery, Databricks, and Snowflake, what you cannot fix in the UI, and how to normalize strings upstream.
CONCAT
Combine multiple strings and columns into single strings using Coalesce CONCAT function. Learn syntax, parameter handling, NULL behavior, and helper token integration for creating formatted text fields and complex string expressions in data transformations.
Conditionals
Learn how to implement if-else logic in Coalesce using CASE statements, IF/IFF functions, and conditional SQL. This comprehensive guide covers conditional transformations for Snowflake, Databricks, and BigQuery, including Snowflake DECODE, Post-SQL updates, helper token usage, and best practices for choosing between different conditional approaches. Complete with practical examples and platform-specific syntax.
NOT IN
Learn how to use the NOT IN operator in the Join tab to filter rows by excluding values from subqueries or lists. Covers syntax for Snowflake, Databricks, and BigQuery, NULL value handling, and safer alternatives like NOT EXISTS.
RANK
Learn the RANK function in Coalesce for assigning integer ranks within data partitions. Understand windowing syntax, tie behavior, dense ranking alternatives, and helper token integration for advanced data transformation and analytics workflows.
REPLACE
Clean and standardize data using Coalesce REPLACE function to remove prefixes, standardize delimiters, and format text fields. Learn search and replacement patterns with helper tokens for consistent data transformation across pipelines.
SUBSTR
Extract substrings from text data using Coalesce SUBSTR function with positive and negative indexing. Learn position-based string extraction, optional length parameters, and helper token integration for precise text manipulation in data transformations.
TO_DATE
Convert string expressions to dates in Coalesce using TO_DATE function across Snowflake, Databricks, and BigQuery. Learn format strings, error handling with Snowflake TRY_TO_DATE, ANSI mode considerations, and helper token integration for reliable date transformations.
TRY_TO_DOUBLE
Safely cast string values to double precision using the Snowflake TRY_TO_DOUBLE function, with Databricks and BigQuery equivalents. Learn how to clean messy data, validate numeric inputs, and extract coordinates from JSON without runtime errors.
TRIM functions
Clean string data using Coalesce TRIM, LTRIM, and RTRIM functions to remove whitespace and specified characters. Learn syntax variations, character removal patterns, and helper token integration for comprehensive data cleaning workflows.
Run-time dates and times
Use warehouse-native date and time functions in Coalesce parameters and column transforms so values resolve when the Job runs. Covers Snowflake, BigQuery, and Databricks patterns for audit timestamps, T-1 windows, month-end from a source column or from today, data types, and testing limits.
Math in transformations
Perform mathematical calculations in Coalesce SQL transformations using addition, subtraction, multiplication, and division operations. Learn data type rules, precision control with ROUND and CAST functions, and helper token integration for numeric data processing.