Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trieloff/stackoverflow-bigqueries
Example queries on the Stackoverflow data set
https://github.com/trieloff/stackoverflow-bigqueries
Last synced: 17 days ago
JSON representation
Example queries on the Stackoverflow data set
- Host: GitHub
- URL: https://github.com/trieloff/stackoverflow-bigqueries
- Owner: trieloff
- License: apache-2.0
- Created: 2016-12-21T11:47:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-07T10:08:29.000Z (almost 8 years ago)
- Last Synced: 2024-11-18T08:12:15.464Z (3 months ago)
- Language: Shell
- Size: 24.4 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Prerequisites
Install Google Cloud SDK: https://cloud.google.com/sdk/docs/
# Running the query
````
$ bq query --format csv -n 10000 < delay.sql| tee delay.csv
````# Prepare for advanced queries
You need to add billing information to your account to save data. We are creating a temporary table that joins information about the question with information about the first response.
````
$ bq query --destination_table "test.soquestions" --replace < join.sql
````# Building Sankey diagrams
````
bq query -n 10000 --format csv < devjourney.sql | grep -v tag | grep -v "between" | sed -e "s/\(.*\),before,\(.*\).*/+\1 \[\2\] cordova/" | sed -e "s/\(.*\),after,\(.*\).*/cordova \[\2\] -\1/" | pbcopy
````Then copy the result into Sankeymatic.