Giter Site home page Giter Site logo

Comments (2)

kansuke-at-trimble avatar kansuke-at-trimble commented on June 2, 2024 1

Hi @Linchin, thanks for the help! It turns out that client.extract_table already created parquet files and the line extract_job.result() tried to do the exact same thing which caused the retention policy error. I deleted the extract_job.result() as it seems to be unnecessary and now the job runs correctly. Thanks again, and since it's solved on my end I am closing this issue

from python-bigquery.

Linchin avatar Linchin commented on June 2, 2024

Thank you @kansuke-at-trimble for raising the issue! From what I can see, it seems to be working as intended. I suppose 'bucket-a/train_dataset/000000000124.parquet' already exists, and a retention policy indicates that

objects in the bucket can only be deleted or replaced once their age is greater than the retention period[1].

So basically the file cannot be overwritten during the retention period. I guess a way to bypass it is to use a unique file name, maybe one with UUID or the timestamp when it's generated.

Also, the client doesn't do the extract job itself - it sends the command to the backend, and the backend does the work. That's why there's no code in the client library doing the extraction. Hope these answer your question, and please let us know if you have any further questions :)

from python-bigquery.

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.