Comments (3)
@verhey thanks for logging this! My 5 min take is that I think we can handle this scenario by catching the presence of the error, the manipulating the message before logging it with the debugger where at least you could tell the user how many rows are duplicate? in my example below I'm not manipulating the string just giving a new string. hopefully this gives you a start?
dataders's super simple example
if "100090 (42P18): Duplicate row detected during DML action" in msg:
logger.debug(" 100090 (42P18): Duplicate row detected during DML action!")
Not sure if you've contributed to dbt-core or dbt-snowflake before, but this guide is a great place to get started
similar error handling done previously
dbt-snowflake/dbt/adapters/snowflake/connections.py
Lines 226 to 227 in 184eaeb
from dbt-snowflake.
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days.
from dbt-snowflake.
I have a draft PR open at #271 to resolve this, but it's waiting on review and I imagine it'll need some more iterations.
@dataders let me know how you'd like that to happen, but for now, un-staling this issue.
from dbt-snowflake.
Related Issues (20)
- [Bug] `test_python_model.py::TestSecrets::test_secrets` is failing in some scenarios HOT 1
- [Release Improvements] Refresh workflows for the `pyproject.toml` migration
- Import relevant pytest(s) for cross-database `cast` macro
- Cross-database `date` macro
- [Bug] Dynamic tables with Snowflake change bundle `2024_03` results in dynamic table to issue HOT 10
- [Bug] Existing dynamic tables attempted to rebuild instead of issuing a fast `alter` and moving on HOT 8
- [Feature] Support Snowflake China host OAuth connection snowflakecomputing.cn HOT 3
- [Bug] Dynamic table full refresh table creation fails HOT 1
- [Bug] DBT Creating Backup Dynamic Tables in Snowflake HOT 1
- [Feature] copy_grants option for seeds (for use in Snowflake Data Share) HOT 4
- [Bug] Use qualified names in `snowflake__get_rename_x_sql` macros
- [Bug]Test ddtrace dependency range
- [Bug] Remove `private_key_path` from `SnowflakeCredentials._connection_keys`
- [Feature] Lazy load `agate`
- [Bug]: can only concatenate list (not 'Table') to list when creating model HOT 1
- Support Batch Metadata Freshness
- Installing 1.7.3 on Airflow 2.9 HOT 1
- [Bug] DBT Dynamic Table Builds Failing when a model.yml file is added; succeeds otherwise. HOT 2
- [Feature] Support additional security related config arguments for materializations HOT 1
- [Feature] support configuring change_tracking for table materializations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbt-snowflake.