Code Monkey home page Code Monkey logo

Comments (7)

DyfanJones avatar DyfanJones commented on May 19, 2024 1

noctua utilises the services of aws athena, s3 and glue. This corresponds to paws.analytics and paws.storage. To find out what is the most likely culprit of this error will break down the dbGetQuery call.

dbGetQuery breakdown:

dbGetQuery calls the following noctua methods:

  • dbSendQuery
  • dbStatistics
  • dbFetch
  • dbClearResult

dbSendQuery calls:

  • paws.analytics::athena -> start_query_execution. This is to start an AWS Athena query.

dbStatistics calls:

  • paws.analytics::athena -> get_query_execution. Get memory usage from Athena.

dbFetch calls:

  • paws.analytics::athena -> get_query_execution. Get Athena execution Status
  • paws.analytics::athena -> get_query_results. Get Athena column class so that it can be passed back to file parsers
  • paws.storage::s3 -> get_object. Get Athena result

dbClearResult calls:

  • paws.analytics::athena -> get_query_execution. Get Athena execution Status
  • paws.storage::s3 -> delete_object. Remove Athena S3 result file from S3. Note only called when cache equals 0

from noctua.

davidkretch avatar davidkretch commented on May 19, 2024 1

Thanks for diagnosing the bug, which we inappropriately introduced as a default timeout in the last release of paws.common. Sorry about that. The latest version (0.3.8) with a fix (no timeout) is now on CRAN.

from noctua.

DyfanJones avatar DyfanJones commented on May 19, 2024

Hi @davidski thanks for letting me know. Does this error happen with the DBI interface? Or is it just the dplyr interface?

I will have a little look at paws.database to see what the change could be and how to fix it :)

from noctua.

davidski avatar davidski commented on May 19, 2024

Thanks for the quick response! Yes, this problem occurs when making a DBI-style query as well. ☚ī¸

from noctua.

DyfanJones avatar DyfanJones commented on May 19, 2024

@davidski how long did this query run before it timed out?

from noctua.

DyfanJones avatar DyfanJones commented on May 19, 2024

As the statistics of the query has been returned (Info: (Data scanned: 14.09 MB)) the best culprit would be dbFetch. I believe it is paws.storage::s3 -> get_object causing this issue. And a possible change to paws.common. I will update issue paws-r/paws#371 accordingly.

from noctua.

DyfanJones avatar DyfanJones commented on May 19, 2024

@davidkretch thanks again. I will close this ticket.

from noctua.

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.