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

Setting incremental does not take effect #97

Open
JinLin6564 opened this issue Mar 20, 2023 · 0 comments
Open

Setting incremental does not take effect #97

JinLin6564 opened this issue Mar 20, 2023 · 0 comments

Comments

@JinLin6564
Copy link

version:
dbt core =1.3.3
dbt hive =1.3.1
python =anaconda3/python3.9

I set config and 'is_ Incremental 'is in SQL but does not take effect. After the second execution, it will be prompted that the same table already exists in hive. I checked the SQL and found that converting to 'create table as' is not an insert syntax

test_1.sql:
{{
config(
materialized='incremental'
)
}}

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

{% if is_incremental() %}

where event_time = (select max(event_time) from {{ this }} )

{% endif %}

error:Hive server: Error while compiling statement: FAILED: SemanticException org.apache.hadoop.hive.ql.parse.SemanticException: Table already exists: testdb.test_1

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

1 participant