GithubHelp home page GithubHelp logo

Comments (7)

rajivchodisetti avatar rajivchodisetti commented on July 21, 2024

In addition to the above 2 options , there should be an additional option to provide list of tables as an argument , as of now am baby sitting and re-creating tables one by one and then applying required permissions

from amazon-redshift-utils.

jklukas avatar jklukas commented on July 21, 2024

Being able to recreate grants was also an important feature for me. My team ended up contributing to the Redshift sqlalchemy dialect to implement some more general-purpose reflection functionality, and we use that in our shiftmanager suite of admin tools to perform migrations.

There unfortunately doesn't appear to be any straightforward option (besides pg_dump) for recreating the grants. We had to write some logic to parse permissions strings, as captured in https://github.com/SimpleFinance/shiftmanager/blob/master/shiftmanager/privileges.py

I'd love to see some similar logic applied in the column encoding utility (and you're free to use any of shiftmanager's logic directly if it ends up being useful here).

from amazon-redshift-utils.

razzakulchowdhury avatar razzakulchowdhury commented on July 21, 2024

When DDL is generated by this Python script for compressed table it changes table distribution style from KEY to EVEN. Seems it’s a big snag! Whereas dist_style = EVEN hasn’t been changed by the script, it remains as it is.

from amazon-redshift-utils.

IanMeyers avatar IanMeyers commented on July 21, 2024

Can you give an example of a table definition where you see this happen? I've not been able to reproduce the issue that you cite on a table with a specified distribution key.

from amazon-redshift-utils.

IanMeyers avatar IanMeyers commented on July 21, 2024

Regarding table grants, I've opened #240

from amazon-redshift-utils.

IanMeyers avatar IanMeyers commented on July 21, 2024

Regarding multi-table analysis, I've opened #241

from amazon-redshift-utils.

IanMeyers avatar IanMeyers commented on July 21, 2024

Fixed in 49d708e

from amazon-redshift-utils.

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.