Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test for insert_by_period is failing... don't know why #67

Open
dataders opened this issue Nov 9, 2021 · 1 comment
Open

test for insert_by_period is failing... don't know why #67

dataders opened this issue Nov 9, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@dataders
Copy link
Contributor

dataders commented Nov 9, 2021

@davidclarance maybe you can help me with this? happy to give more context later -- just jotting this down for now

test's compiled SQL

-- setup

with a as (

    select * from "dbt-msft-serverless-db"."test"."test_insert_by_period"

),

b as (

    select * from "dbt-msft-serverless-db"."test"."expected_insert_by_period"

),

a_minus_b as (

    select "id", "created_at" from a
    

    except


    select "id", "created_at" from b

),

b_minus_a as (

    select "id", "created_at" from b
    

    except


    select "id", "created_at" from a

),

unioned as (

    select 'a_minus_b' as which_diff, * from a_minus_b
    union all
    select 'b_minus_a' as which_diff, * from b_minus_a

)

select * from unioned

results

which_diff id created_at
b_minus_a 3 2018-02-02
b_minus_a 4 2018-03-02
b_minus_a 5 2018-04-02
b_minus_a 6 2018-05-02
@dataders dataders added the help wanted Extra attention is needed label Nov 9, 2021
@davidclarance
Copy link
Contributor

@swanderz sure, i'll take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants