Giter Site home page Giter Site logo

gcp/bigquery support about rtcstats-server HOT 5 CLOSED

fippo avatar fippo commented on June 23, 2024 2
gcp/bigquery support

from rtcstats-server.

Comments (5)

fippo avatar fippo commented on June 23, 2024

note: https://stackoverflow.com/questions/50470044/syntax-error-expected-in-bigquery -- no varchar, no bigint, no real. easy to search-replace in features-v2.sql

from rtcstats-server.

fippo avatar fippo commented on June 23, 2024

https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-json -- this seems like the best way to import data, quite similar to how kinesis is writing to s3 and that gets loaded into redshift

from rtcstats-server.

fippo avatar fippo commented on June 23, 2024

so the UI for that is a bit weird... one can load into existing tables by creating a new table.
It looks like there is an issue with booean fields. redshift is happy to take 0/1 values but bigquery insists on boolean values. That will require making sure all features flagged as boolean return actual boolean values...

from rtcstats-server.

fippo avatar fippo commented on June 23, 2024

ah no... extract.js converts booleans:

    if (feature === false) feature = 0;
    if (feature === true) feature = 1;

I wonder if that is legacy or actually required for redshift. If it is then this should be moved to database.js

from rtcstats-server.

fippo avatar fippo commented on June 23, 2024

I think the best way to load it is to buffer 100 entries (or 60 seconds) or so as a line-json file and then use load() https://cloud.google.com/bigquery/docs/loading-data-local?hl=en#loading_data_from_a_local_data_source

from rtcstats-server.

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.