Giter VIP home page Giter VIP logo

Comments (3)

whd avatar whd commented on August 17, 2024

For that table specifically I'd expect bqetl query schema update to only be runnable by DSRE/Airflow or possibly workgroup:search-terms/sanitized-writer since access to that dataset is heavily restricted.

I would expect (or hope) that artifact deployment via Airflow would automatically update this schema.

from bigquery-etl.

quiiver avatar quiiver commented on August 17, 2024

Yeah, i would expect the CLI command to fail when it either doesn't have a schema to update or the executor does not have the correct permissions.

from bigquery-etl.

BenWu avatar BenWu commented on August 17, 2024

bqetl query schema update looks for a corresponding query.sql and doesn't do anything if it doesn't exist (code). I agree that it should fail in that case.

bqetl query schema deploy looks for query.* or script.sql and runs the sql generators if none are found. This will fail if there are still no queries to deploy.

Kind of hacky, but as a workaround, you can add a query.py stub to allow the schema to be picked up by the schema deploy. I did that here https://github.com/mozilla/bigquery-etl/blob/main/sql/moz-fx-data-shared-prod/telemetry_derived/public_data_report_hardware_v1/query.py
I agree that we should consider making this unnecessary though

from bigquery-etl.

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.