abronte / bigquery Goto Github PK
View Code? Open in Web Editor NEWA BigQuery wrapper
A BigQuery wrapper
There is a bug with the current version (0.7.1) of the google api gem where you get a "unknown keyword: interval". This is due to a change in the retriable gem.
This is fixed in master of the google api gem but it hasn't been released as a gem yet.
A workaround to this is to uninstall retriable and reinstall with version ~> 1.4.1.
I followed the readme, but I get the following error:
irb(main):009:0> bq = BigQuery::Client.new(opts) NameError: uninitialized constant BigQuery from (irb):9 from /home/lsoave/.rbenv/versions/2.1.2/bin/irb:11:in `' irb(main):010:0>
My env:
lsoave@basenode:~/Github/gitwatcher$ egrep -i "bigquery|google" Gemfile.lock bigquery (0.2.9) google-api-client (>= 0.4.6) google-api-client (0.7.1) bigquery
I am trying to use the insert data example, except I am trying to load into a timestamp field. This doesn't seem to be working for me. I have tried both entering as UNIX timestamps, and also in the format YYYY-MM-DD HH:MM:SS.
the very first example code in the readme fails for me with:
/home/aep/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/signet- 0.6.0/lib/signet/oauth_2/client.rb:947:in `fetch_access_token': Authorization failed. Server message: (Signet::AuthorizationError)
{
"error" : "invalid_request",
"error_description" : "Required parameter is missing: grant_type"
}
from /home/aep/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/signet-0.6.0/lib/signet/oauth_2/client.rb:964:in `fetch_access_token!'
from /home/aep/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bigquery-0.7.0/lib/big_query/client.rb:42:in `refresh_auth'
from /home/aep/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/bigquery-0.7.0/lib/big_query/client.rb:33:in `initialize'
from main.rb:13:in `new'
from main.rb:13:in `<main>'
.
BigQuery/client.rb at master ยท abronte/BigQuery
I just thought to let you know about it.
Do you already plan to fix this?
Class: Google::APIClient::JWTAsserter โ Documentation for google/google-api-ruby-client (master)
To connect to the datasets from githubarchive.org, what do I set
opts['dataset'] to?
I've tried opts['dataset'] = 'githubarchive:day' and opts['dataset'] = 'githubarchive:day.events_20150729'
but they both return saying invalid dataset. Do I have to add these datasets to my project somehow?
In different occasions, I get the following response {"v"=>{}}
in the response row, instead of getting nil
s.
Hey guys,
I'm having problem to record bigquery's response on the VCR. The problem using the BigQuery gem is in the response body the attribute string
is empty and MultiJson can not parse it
MultiJson::ParseError:
JSON::ParserError
response:
...
"body":{
"encoding":"UTF-8",
"string":""
},
...
Testing others gem options to bigquery(gcloud), I could record the VCR but I can't read it, I had it:
Zlib::GzipFile::Error:
not in gzip format
The curious fact is:
1 - I recorded the VCR using the gcloud gem
2 - I switch to use the bigquery gem, and the bigquery gem can read the VCR recorded by gcloud
It is not a great flow to work : ) because of that I'm here to try some help.
Environment:
Ruby 2.1.5p273
Bigquery: 0.9.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.