SQL Best Practice Format

PHOTO EMBED

Wed May 24 2023 09:55:41 GMT+0000 (Coordinated Universal Time)

Saved by @klleee28 #sql

WITH geocoded AS (
    SELECT 
        *,
        {{ address_to_coordinates( 'ADDRESS_LINE_ONE' ) }} AS METADATA

    FROM {{ ref('test_address__mock_data') }}

    WHERE
        ( 
            address_line_one NOT IN {{ var('mask_data_pattern') }} 
            AND
            address_line_two NOT IN {{ var('mask_data_pattern') }} 
        )
        OR
        (
            address_line_one IS NULL 
            AND
            address_line_two IS NULL
        )
)
content_copyCOPY