You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
droptable if exists "sources.src_pendo.src_accounts" cascade
And, indeed, when I run the latter SQL command in Redshift Query Editor on my warehouse there's no error, whereas when I run the former SQL command I get the same error.
Steps to reproduce
I'm running all CLI commands in PowerShell.
My models/staging/pendo/src_pendo.yml file (following this example) looks like this (one column for brevity):
If I'm understanding correctly, the dbt run-operation stage_external_sources macro will create the external schema and table defined in src_pendo.yml in Redshift Spectrum, then populate the table with all data in the CSV files in <s3 path>. Let me know if this isn't the use case.
I originally submitted this issue to
dbt_external_tables
. Perhaps it belongs indbt-core
instead.Describe the bug
When I run
dbt run-operation stage_external_sources
, I get the error message:because dbt tries running this command:
when it should be:
And, indeed, when I run the latter SQL command in Redshift Query Editor on my warehouse there's no error, whereas when I run the former SQL command I get the same error.
Steps to reproduce
I'm running all CLI commands in PowerShell.
My
models/staging/pendo/src_pendo.yml
file (following this example) looks like this (one column for brevity):<s3 path>
contains CSV files.Expected results
If I'm understanding correctly, the
dbt run-operation stage_external_sources
macro will create the external schema and table defined insrc_pendo.yml
in Redshift Spectrum, then populate the table with all data in the CSV files in<s3 path>
. Let me know if this isn't the use case.Actual results
See bug description.
Screenshots and log output
Full (PowerShell) output after running the macro:
System information
The contents of your
packages.yml
file:Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using: Windows 10
The output of
python --version
:Python 3.9.6
Additional context
If this is truly a bug then I'll try submitting a PR.
The text was updated successfully, but these errors were encountered: