elementary icon indicating copy to clipboard operation
elementary copied to clipboard

Python model failed due to elementary package issue

Open pavandivve opened this issue 2 years ago • 0 comments

Describe the bug We have recently started using Elementary package in our dbt project. it all working fine until a week ago. but suddenly our DBT pipeline started failing with error in one of the Python model with error "Materialization "materialization_table_snowflake" only supports languages ['sql']; got "python". we raised the issue with DBT support they then identified that it is because of elementary pacakge and issue got resolved with updating package version. we wondered how elementary package affected python model with out proper error message. can you please look into this and suggest why the problem occurred and how to fix those kind of issues in future.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'dbt project' and add below python model with elementary version 0.9.4.

snowflake

import pandas as pd def model(dbt, session): return pd.DataFrame({"id": [1]})

  1. Run above python model
  2. See error

Expected behavior Python model should run successfully

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • dbt package Version: 0.9.4

Additional context Add any other context about the problem here.

pavandivve avatar Sep 27 '23 09:09 pavandivve