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

Unable to run dbt against Panoply Redshift #1479

Closed
gautam-ndk opened this issue May 24, 2019 · 8 comments · Fixed by #1686
Closed

Unable to run dbt against Panoply Redshift #1479

gautam-ndk opened this issue May 24, 2019 · 8 comments · Fixed by #1686
Labels
bug Something isn't working
Milestone

Comments

@gautam-ndk
Copy link

Issue

Unable to run dbt against Panoply redshift

Issue description

Am testing out the sample model provided by dbt init (my_first_dbt_model.sql)

{{ config(materialized='view') }}
select 1 as id

Am able to execute dbt run in a dev environment (Postgres) and it works fine.
But, when I run it against the Panoply redshift, it throws the error

Results

I expect it to create a view. But, it throws the below syntax error

Encountered an error:
Database Error
  syntax error at or near "with"
  LINE 14:             relkind as kind

Attached is the dbt log snippet dbt.log

To make a note, when I copied the query from dbt.log and pasted it into Panoply console, it works fine.

System information

The output of dbt --version:

installed version: 0.13.0-a1
   latest version: 0.13.1

Your version of dbt is out of date! You can find instructions for upgrading here:
https://docs.getdbt.com/docs/installation

Note: I had the latest dbt earlier. But, when I posted the same question in slack's support channel, I was recommended to try out fix in https://github.com/kevinsanz93/dbt (and that is why the version appears not up to date)

The operating system am running on is Ubuntu 18.04

The python version you're using (probably the output of python --version)
Python 3.6.7

Steps to reproduce

dbt run against panoply redshift should throw an exception

@gautam-ndk
Copy link
Author

Removing the comments here fixes the issue.

I'm following up with Panoply team to get the issue fixed on their part. I can leave an update here once it is fixed.

@drewbanin drewbanin reopened this Aug 8, 2019
@wesseljt
Copy link

wesseljt commented Aug 9, 2019

I’m still having issues with this as well. Didn’t get anywhere getting it fixed with panoply.

@gautam-ndk
Copy link
Author

There are two issues working with Panoply.

  1. Syntax error while executing dbt run
  2. Syntax error while executing dbt docs generate

The changes in #1674 fix the first issue mentioned but not the second one. I spent some time figuring out the second issue but I couldn't :(

@patricktrainer
Copy link

Any ideas when 14.1 will be released? This bug is blocking me from using DBT at the moment..

@wesseljt
Copy link

wesseljt commented Aug 26, 2019 via email

@drewbanin
Copy link
Contributor

A release candidate for dbt v0.14.1 is currently available on pypi, homebrew and in dbt Cloud. We plan on testing the RC for about a week before doing a final release of 0.14.1.

@wesseljt
Copy link

wesseljt commented Aug 27, 2019 via email

@taucamp
Copy link

taucamp commented Dec 11, 2019

I upgraded to 15.0 and had same issue. Worked with Drew who recommended the following and it solved the problem

Configure DBT to not create comments at the beginning of the queries by inseritng the following in your project.yml file

query-comment: null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants