GithubHelp home page GithubHelp logo

Comments (7)

jklukas avatar jklukas commented on July 21, 2024

The cache lookup failed error is definitely familiar to me, as we occasionally see it during some of our nightly maintenance tasks where we're recreating views.

Maybe these queries shouldn't be reflecting the entire schema at all, and we should limit them to looking only at individual tables if the current broad approach can cause errors and isn't actually allowing us to reuse the reflection cache for multiple tables.

from sqlalchemy-redshift.

atrigent avatar atrigent commented on July 21, 2024

I think it is allowing reuse of the results of the reflection query, as discussed in #101. However, yes, it is sometimes causing errors. We think that restricting the queries to the correct schema will resolve our issue, but there may be cases where even that isn't enough.

from sqlalchemy-redshift.

willnewby avatar willnewby commented on July 21, 2024

We've also had this issue. Any idea on merge timing for the above PR?

from sqlalchemy-redshift.

jklukas avatar jklukas commented on July 21, 2024

Looks like there were some lingering issues in #105 that never got resolved. Do you have any thoughts on how those could be addressed?

from sqlalchemy-redshift.

grantatspothero avatar grantatspothero commented on July 21, 2024

Still seeing error 1 in 2018/almost 2019. The problem goes away when a background job that drops tables is completed.

@jklukas any update on PR #105 it looks like it was never merged?

from sqlalchemy-redshift.

jklukas avatar jklukas commented on July 21, 2024

I haven't been working with Redshift much in the past year, so it's difficult for me to jump back in and spin up the context to understand whether #105 is safe to merge or not. It's probably worth starting from scratch at this point.

It looks like we'll be merging #147 imminently, which is a simpler change to reflection which may or may not help with this issue. I'd be very open to someone evaluating whether #147 has a bearing here and if needed opening a fresh PR that absorbs the proposal and discussion in #105.

from sqlalchemy-redshift.

cscetbon avatar cscetbon commented on July 21, 2024

Still seeing this in 0.7.9 .... Any idea of a workaround in the meantime ? Those issues have been opened for years now

from sqlalchemy-redshift.

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.