Giter Club home page Giter Club logo

Comments (4)

Jrmyy avatar Jrmyy commented on May 28, 2024

Right now it is not possible to use the rename command since the rename actually works but an error is raised because results can't be found according to athena API.

A case has been opened by my company on AWS. They are investigation.

from dbt-athena.

hiltercoty avatar hiltercoty commented on May 28, 2024

This can be done by using views but Athena views are not supported by either Spark or Redshift, which causes trouble in my use-case.

Another approach could be using the ALTER TABLE SET LOCATION 'new location' command. The same table can be created in a different folder like a partition and once the data is ready, the table location can be updated.

With this approach metadata (partition information) would mostly be the same but to cover everything MSCK REPAIR TABLE can be executed after the alter command.

from dbt-athena.

nicor88 avatar nicor88 commented on May 28, 2024

@hiltercoty we merged the feature to address ha for hive tables.
Iceberg support for ha is still on on-hold as we are missing an alter table rename working properly.

from dbt-athena.

nicor88 avatar nicor88 commented on May 28, 2024

As found by @Jrmyy this issue is not longer blocked as the athena team fixed the ALTER TABLE target RENAME TO statement.

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.