Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Not fully compatible with dbt-core 0.19.0rc1 #9

Closed
dbeatty10 opened this issue Jan 3, 2021 · 0 comments · Fixed by #10
Closed

Not fully compatible with dbt-core 0.19.0rc1 #9

dbeatty10 opened this issue Jan 3, 2021 · 0 comments · Fixed by #10

Comments

@dbeatty10
Copy link

dbeatty10 commented Jan 3, 2021

Describe the bug

Two test specifications within dbt-adapter-tests aren't compatible with dbt-core 0.19.0rc1:

  • data_test
  • data_test_ephemeral_models

Steps To Reproduce

  1. Install dbt 0.19.0rc1
  2. Create a test configuration for Postgres
    • see below for an example *.dbtspec file
  3. Run the test config
    • with a command like pytest -v test/integration/postgres-13.dbtspec

test/integration/postgres-13.dbtspec example

target:
  type: postgres
  host: localhost
  user: postgres
  pass: ********************
  port: 5432
  dbname: postgres
  schema: dbt_test_{{ var('_dbt_random_suffix') }}

sequences:
  test_dbt_data_test: data_test
  test_dbt_ephemeral_data_tests: data_test_ephemeral_models

Expected behavior

I expected all the standard tests to pass for dbt-postgres v0.19.0rc1 (since it is a Fishtown-supported database adapter).

Screenshots and log output

Log output (drastically truncated):

_________________________________________________________ usecase: test_dbt_data_test __________________________________________________________
usecase execution failed
   spec failed: ("Invalid result, missing required key 'node'",)
   no further details known at this point.
------------------------------------------------------------- Captured stdout call -------------------------------------------------------------

(snip)

test/integration/postgres-13.dbtspec::test_dbt_data_test FAILED
test/integration/postgres-13.dbtspec::test_dbt_ephemeral_data_tests FAILED

System information

Which database are you using dbt with?

  • postgres

Although I only tested this against Postgres, I would expect this same problem to affect all the databases supported by Fishtown Analytics as well as all community-supported plugins.

The output of dbt --version:

installed version: 0.19.0-rc1
   latest version: 0.18.1

Your version of dbt is ahead of the latest release!

Plugins:
  - postgres: 0.19.0rc1

Additional context

I've got a simple workaround that I'll submit as a pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant