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

RPC Server: support ephemeral models #1368

Closed
drewbanin opened this issue Mar 25, 2019 · 0 comments
Closed

RPC Server: support ephemeral models #1368

drewbanin opened this issue Mar 25, 2019 · 0 comments
Labels
rpc Issues related to dbt's RPC server

Comments

@drewbanin
Copy link
Contributor

Issue

Issue description

The execute and compile endpoints of the RPC server should support ephemeral models. Presently, referencing an ephemeral models fails with:

'ParsedNode' has no attribute 'extra_ctes_injected'

Reproduction

models/base/my_ephemeral_model.sql

{{ config(materialized='ephemeral') }}

select 1 as id

Query

select * from {{ ref('my_ephemeral_model') }}

Compiling/executing this query should result in:

with __dbt_cte_my_ephemeral_model as (
  select 1 as id
)

select * from __dbt_cte_my_ephemeral_model

(or similar)

@drewbanin drewbanin added the rpc Issues related to dbt's RPC server label Mar 25, 2019
@drewbanin drewbanin added this to the Wilt Chamberlain milestone Mar 25, 2019
@drewbanin drewbanin mentioned this issue Mar 25, 2019
5 tasks
beckjake added a commit that referenced this issue Mar 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rpc Issues related to dbt's RPC server
Projects
None yet
Development

No branches or pull requests

1 participant