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

Adapter macro namespace issue #1352

Closed
jtcohen6 opened this issue Mar 15, 2019 · 1 comment
Closed

Adapter macro namespace issue #1352

jtcohen6 opened this issue Mar 15, 2019 · 1 comment
Assignees

Comments

@jtcohen6
Copy link
Contributor

jtcohen6 commented Mar 15, 2019

Issue

Issue description

{% set cols = get_columns_in_relation(source('my_source','my_table')) %} = works as expected
{% set cols = adapter.get_columns_in_relation(source('my_source','my_table')) %} = error

Results

Running with dbt=0.13.0-rc1
Encountered an error:
Compilation Error in macro statement (macros/core.sql)
  'str object' has no attribute 'information_schema'

  > in macro redshift__get_columns_in_relation (macros/adapters.sql)
  > called by macro adapter_macro (macros/adapters/common.sql)
  > called by macro get_columns_in_relation (macros/adapters/common.sql)
  > called by macro statement (macros/core.sql)

System information

The output of dbt --version:

installed version: 0.13.0-rc1
   latest version: 0.12.2

Your version of dbt is ahead of the latest release!
@drewbanin
Copy link
Contributor

this appears to be fixed - closing

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

No branches or pull requests

2 participants