Giter Site home page Giter Site logo

Comments (5)

nicor88 avatar nicor88 commented on May 24, 2024

@TassOlympus do you use a workgroup with enforced "configurations"? If that's the case external_location is fully ignored.
Also there was to change on how external_location is used in 1.7.0.

from dbt-athena.

TassOlympus avatar TassOlympus commented on May 24, 2024

@nicor88 there is a location specified in the work group being used but specifying "external_location" works for iceberg tables regardless of the workgroup location, it's just hive tables where it is ignored. I would imagine that should a location be specified at the model level that it would override the workgroup location? Is there a reason why it is different across table types?

from dbt-athena.

nicor88 avatar nicor88 commented on May 24, 2024

Iceberg table are managed tables, therefore the workgroup location is not used.
Hive tables at the contrary are not managed table, therefore what happen is that your "workgroup" enforced location is used by default.
You have 2 options:

  • disable workgroup config enforcement in your workgroup setting
  • if you cannot follow the first option, consider to create a new workgroup (without location set) only for dbt - I like this approach more, as you can control as well how much cost running queries by dbt.

from dbt-athena.

TassOlympus avatar TassOlympus commented on May 24, 2024

Thanks @nicor88, this is useful and helped resolve our issue (we went for the separate work group approach), could documentation perhaps be updated to articulate this information under https://github.com/dbt-athena/dbt-athena#table-location? The note was misleading since it did not apply to iceberg tables and seems to speak directly to "s3_data_naming" alone

from dbt-athena.

nicor88 avatar nicor88 commented on May 24, 2024

@TassOlympus good catch, docs must be updated indeed. Feel free to submit a PR to address this.

from dbt-athena.

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.