Coder Social home page Coder Social logo

Error on dbt debug about dbt-oracle HOT 7 CLOSED

dpavancini avatar dpavancini commented on August 21, 2024
Error on dbt debug

from dbt-oracle.

Comments (7)

fabrice-etanchaud avatar fabrice-etanchaud commented on August 21, 2024

Hi @dpavancini , I just started using your great adapter, have not dived in the code, but it seems like a missing 'FROM DUAL' clause, as other dbs usually only need a 'SELECT something' when issuing computed only fields. I can remember mandatory 'SELECT 1' queries hidden in several parts of dbt, it could be the problem. Thank you again for the adapter !

from dbt-oracle.

fabrice-etanchaud avatar fabrice-etanchaud commented on August 21, 2024

debug command issues a "select 1 as id", that should be "select 1 as id from dual" in our case.
In order to make this work, this debug sql command should be dispatched in each adapter (maybe only in SQLAdapter and OracleAdapter should do the job). This has to be discussed with the dbt's team.

select 1 as id

from dbt-oracle.

vitoravancini avatar vitoravancini commented on August 21, 2024

That looks bad, I was trying to find a way to overwrite this reconnect, but I havent found a solution yet. But I guess this is just for reconnect, the regular dbt debug can be fixed using you your suggestions @fabrice-etanchaud. I will try to take a look tonight. Pr's are also very wellcome!

from dbt-oracle.

fabrice-etanchaud avatar fabrice-etanchaud commented on August 21, 2024

Hi @vitoravancini, of course ! I have a few lines of code to suggest, but I would like to have a better understanding of the dbt's adapter philosophy before I do a PR, I don't want to waste your time in refactoring a half packaged submission.

from dbt-oracle.

dpavancini avatar dpavancini commented on August 21, 2024

Hi @fabrice-etanchaud, was this issue addressed on your latest PR?

from dbt-oracle.

fabrice-etanchaud avatar fabrice-etanchaud commented on August 21, 2024

Hi @dpavancini, on our side, this would just be a matter of writing one adapter macro. The work is mostly on dbt's side, and I am not enough skilled at the moment to propose a PR on such a great piece of software !

Best

from dbt-oracle.

vitoravancini avatar vitoravancini commented on August 21, 2024

dbt debug works now, closing this

from dbt-oracle.

Related Issues (11)

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.