GithubHelp home page GithubHelp logo

precog / quasar-destination-gbq Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 9.0 267 KB

Quasar connector providing support for Google BigQuery as a push destination

Scala 74.02% Shell 25.08% Batchfile 0.90%

quasar-destination-gbq's Introduction

quasar-destination-gbq Discord

Usage

libraryDependencies += "com.precog" %% "quasar-destination-gbq" % <version>

Configuration

{
  "name": <destination-name>,
  "type": {
    "name": "gbq",
    "version": 1
  },
  "config": {
    "authCfg": <service-account-json-auth-file-contents>,
    "datasetId": <dataset-name>,
    "maxFileSize": Number?
  }
}
  • destination-name is what you would like to name the destination
  • service-account-json-auth-file-contents is the contents of your service account authentication json file in string format
  • dataset-name is the dataset name you would like your table to be pushed into
  • maxFileSize is optional parameter, default to 2^30, determines size of streams uploaded to BigQuery as files, e.g. by default 30Gb stream will be uploaded as 30 files.

Testing

In order to run the tests, you must first decrypt the secret. You'll need to have the environment variable ENCRYPTION_PASSWORD set.

./sbt "decryptSecret core/src/test/resources/precog-ci-275718-e913743ebfeb.json.enc"

quasar-destination-gbq's People

Contributors

alissapajer avatar beckyconning avatar cryogenian avatar djspiewak avatar domaspoliakas avatar jsantos17 avatar nicflores avatar precog-bot avatar rintcius avatar scala-steward avatar wemrysi avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

quasar-destination-gbq's Issues

Extend `TotalExceeded` to allow different metrics from `Offset`

precog/features#91

For OffsetPaginated we need to add additional capability to TotalExceeded. At the moment it is assumed that TotalExceeded operates with the same metric as Offset. This needs to be changed such that it would no longer be the case.

The changes are as thus

  • Add additional totalRecordsExceeded and totalPagesExceeded options to config for stopCondition
  • totalExceeded stop condition should select one of the above that matches offset
  • Add additional methods to Offset to allow extracting either metric (pages or records)
  • Compare the total exceeded against the right metric from Offset

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.