Giter Club home page Giter Club logo

Comments (3)

jtcohen6 avatar jtcohen6 commented on July 3, 2024

I believe the culprit is get_node_representation.

Spark's profile.yml config requires the user to specify schema. A user can optionally also specify database, which is meaningless, because schema == database in Spark. I confirmed that I see this issue when I specify only schema in my profile, and the leading period disappears when I also specify database with the same value as schema. This is a bit surprising, since we set database = schema as a _post_init on the credentials object.

I'm not sure if there's a way to override get_node_representation for Spark, since it's a class method on ModelRunner, not BaseAdapter.

This leads me to think there could be more serious functional issues related to the database model configs that I haven't had a chance to test yet.

from dbt-spark.

jtcohen6 avatar jtcohen6 commented on July 3, 2024

After more testing, I confirmed this is not an issue with the profile configs, but with relations themselves. Given a profile that sets schema: my_schema_name, this error disappears if I set the following in dbt_project.yml:

models:
  my_project:
    database: my_schema_name

At the same time, if I set it to be something else entirely:

models:
  my_project:
    database: not_the_same

dbt will print out

1 of 15 START table model not_the_same.my_schema_name.table_model..... [RUN]

But it will actually just attempt to create a table located at the namespace my_schema_name.table_model.

I'm going to open a separate issue laying out how I think we should reconcile custom schemas and databases, likely for 0.17.0.

from dbt-spark.

jtcohen6 avatar jtcohen6 commented on July 3, 2024

Fixed by dbt#2450. We should enjoy nicer-looking output in 0.17.0

from dbt-spark.

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.