GithubHelp home page GithubHelp logo

Support `CREATE OR REPLACE` about dbt-trino HOT 2 CLOSED

Fokko avatar Fokko commented on July 18, 2024
Support `CREATE OR REPLACE`

from dbt-trino.

Comments (2)

hovaesco avatar hovaesco commented on July 18, 2024 1

I'm not aware of anyone working on this, let's introduce it as a separate strategy configured as on_table_exists = 'replace'.

I don't think we have a way to determine if this is supported on server side, please correct me if I'm wrong @mdesmet

from dbt-trino.

mosabua avatar mosabua commented on July 18, 2024

Theoretically you could get the version of the server (via various means including version() function) and decide with that info. The problem is that it will be different for each connector so it will only be true after you figure out the connector used in a specific catalog (which you can also do via a query).

You could just leave it to the user to worry about and deal with it in the same way you deal with any other statement that might or might not be supported by the Trino version of the server and the connector. For example think of MERGE or TRUNCATE .. are you doing anything about these in terms of validation?

from dbt-trino.

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.