Skip to content

Type Casting in Staging Models #38

@rghughes94

Description

@rghughes94

Would it make sense to move all column type casting from the Intermediate layer down to the Staging layer, so that the column types are always set before they become function inputs? For example in the Intermediate model carrier_claim, the first cte on line 1 uses a left( ) function that will give an error if the column clm_thru_dt isn't already a string, but the field isn't explicitly cast as a string until after that on line 34 of the main query.

I'm using BigQuery and loaded some dummy LDS from CSV files, which may be why my column types weren't already correct on initial load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions