Giter Site home page Giter Site logo

Comments (3)

dataders avatar dataders commented on August 16, 2024

@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

if "Empty SQL statement" in msg:
logger.debug("got empty sql statement, moving on")

from dbt-snowflake.

github-actions avatar github-actions commented on August 16, 2024

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.

verhey avatar verhey commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.