Giter Club home page Giter Club logo

Comments (8)

hadley avatar hadley commented on June 2, 2024

I assume you also want to be able to create a new scheduled query, not just update an existing?

from bigrquery.

jacobmpeters avatar jacobmpeters commented on June 2, 2024

Yes, that would be very helpful. In our process, we often set them up manually in BigQuery and then update them automatically in R/Python scripts thereafter. But, if it were easy to create and update them from bigrquery, this would be much cleaner.

from bigrquery.

hadley avatar hadley commented on June 2, 2024

Note to self: look at discovery doc wrappers in googlesheets4.

from bigrquery.

hadley avatar hadley commented on June 2, 2024

Do you have any sense of how you get a data source setup so I could test it myself?

from bigrquery.

jacobmpeters avatar jacobmpeters commented on June 2, 2024

@hadley Yes, I think I can help with that...

I'm not sure what detail you need. Happy to chat if you need more info..

  • Go to this link and click console to create a project.
  • Navigate to BigQuery and click create dataset.
  • Once you have a dataset, you can enter this query to load some data into your project from a public dataset:
CREATE OR REPLACE TABLE `your_project_name.your_dataset_name.baby_names` AS 
SELECT * 
FROM `bigquery-public-data.usa_names.usa_1910_2013` 
LIMIT 1000;

This example has the following schema:

fullname type
state STRING
gender STRING
year INTEGER
name STRING
number INTEGER

Here is some info about the dataset itself: https://console.cloud.google.com/marketplace/product/social-security-administration/us-names?project=long-base-314819

Hope this helps! Let me know if you need anything else.

from bigrquery.

hadley avatar hadley commented on June 2, 2024

How does that connect with a schedule query?

from bigrquery.

hadley avatar hadley commented on June 2, 2024

I need a bit more help to get this to a place where I can test it, so I'm going to put off until the next release of bigrquery which I'll aim to do early next year.

from bigrquery.

jacobmpeters avatar jacobmpeters commented on June 2, 2024

I need a bit more help to get this to a place where I can test it, so I'm going to put off until the next release of bigrquery which I'll aim to do early next year.

Ok! Sorry I missed your previous question. Thanks for the update. I'm happy to help with your testing when you are ready to resume.

from bigrquery.

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.