All Projects → k-kawa → bqv

k-kawa / bqv

Licence: Apache-2.0 license
The simplest tool to manage views of BigQuery.

Programming Languages

go
31211 projects - #10 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to bqv

Magnolify
A collection of Magnolia add-on modules
Stars: ✭ 81 (+268.18%)
Mutual labels:  bigquery, google-cloud
Scio
A Scala API for Apache Beam and Google Cloud Dataflow.
Stars: ✭ 2,247 (+10113.64%)
Mutual labels:  bigquery, google-cloud
Ethereum Etl
Python scripts for ETL (extract, transform and load) jobs for Ethereum blocks, transactions, ERC20 / ERC721 tokens, transfers, receipts, logs, contracts, internal transactions. Data is available in Google BigQuery https://goo.gl/oY5BCQ
Stars: ✭ 956 (+4245.45%)
Mutual labels:  bigquery, google-cloud
ob google-bigquery
This service is meant to simplify running Google Cloud operations, especially BigQuery tasks. This means you do not have to worry about installation, configuration or ongoing maintenance related to an SDK environment. This can be helpful to those who would prefer to not to be responsible for those activities.
Stars: ✭ 43 (+95.45%)
Mutual labels:  bigquery, google-cloud
bigquery-kafka-connect
☁️ nodejs kafka connect connector for Google BigQuery
Stars: ✭ 17 (-22.73%)
Mutual labels:  bigquery, google-cloud
kuromoji-for-bigquery
Tokenize Japanese text on BigQuery with Kuromoji in Apache Beam/Google Dataflow at scale
Stars: ✭ 11 (-50%)
Mutual labels:  bigquery, google-cloud
Spark Bigquery Connector
BigQuery data source for Apache Spark: Read data from BigQuery into DataFrames, write DataFrames into BigQuery tables.
Stars: ✭ 126 (+472.73%)
Mutual labels:  bigquery, google-cloud
bigquery-data-lineage
Reference implementation for real-time Data Lineage tracking for BigQuery using Audit Logs, ZetaSQL and Dataflow.
Stars: ✭ 112 (+409.09%)
Mutual labels:  bigquery, bigdata
iris3
An upgraded and improved version of the Iris automatic GCP-labeling project
Stars: ✭ 38 (+72.73%)
Mutual labels:  bigquery, google-cloud
datacatalog-tag-manager
Python package to manage Google Cloud Data Catalog tags, loading metadata from external sources -- currently supports the CSV file format
Stars: ✭ 17 (-22.73%)
Mutual labels:  bigdata, google-cloud
argon
Campaign Manager 360 and Display & Video 360 Reports to BigQuery connector
Stars: ✭ 31 (+40.91%)
Mutual labels:  bigquery, google-cloud
bigquery-to-datastore
Export a whole BigQuery table to Google Datastore with Apache Beam/Google Dataflow
Stars: ✭ 56 (+154.55%)
Mutual labels:  bigquery, google-cloud
go-bqloader
bqloader is a simple ETL framework to load data from Cloud Storage into BigQuery.
Stars: ✭ 16 (-27.27%)
Mutual labels:  bigquery, google-cloud
dbt-ml-preprocessing
A SQL port of python's scikit-learn preprocessing module, provided as cross-database dbt macros.
Stars: ✭ 128 (+481.82%)
Mutual labels:  bigquery
vault-demo
Walkthroughs and scripts for my @hashicorp Vault talks
Stars: ✭ 67 (+204.55%)
Mutual labels:  google-cloud
notionproxy
Notion as a web site, inspired by react-notion-x.
Stars: ✭ 24 (+9.09%)
Mutual labels:  google-cloud
gcloud-opentracing
OpenTracing Tracer implementation for GCloud StackDriver in Go.
Stars: ✭ 44 (+100%)
Mutual labels:  google-cloud
flysystem-google-cloud-storage
Flysystem v1 adapter for Google Cloud Storage
Stars: ✭ 21 (-4.55%)
Mutual labels:  google-cloud
BigDataTools
tools for bigData
Stars: ✭ 36 (+63.64%)
Mutual labels:  bigdata
Exposure
Exposure是一个帮助做曝光统计需求的库,可以很方便的对曝光事件进行埋点,在现有代码上少量侵入即可实现曝光埋点。支持RV的线性布局、网格布局、瀑布流布局、横向滑动RV,ScrollView等各种滚动布局。支持配置item的有效曝光面积。
Stars: ✭ 51 (+131.82%)
Mutual labels:  bigdata

bqv

The simplest tool to manage views of BigQuery.

How to install

go install github.com/k-kawa/bqv

Or you can use bqv as a Docker image which is available at kkawa/bqv

How to use

Make a directory based on the names of the dataset and the view that you want to create.

$ mkdir -p your_dataset/your_view

Make a query.sql file in it, which is going to be used to create the view.

$ cat <<EOF > your_dataset/your_view/query.sql
SELECT 1 AS one
EOF

(Optional) You can also make a meta.json file in it to describe the meta data of the view. The supported option is description, schema and labels the value of which is to be the description of it for now. (We want to suport more. see the issues

$ cat <<EOF > your_dataset/your_view/meta.json
{
    "description": "this is my awesome view!",
    "schema": [
        {"name": "my_column_name_1", "description": "your column description 1!!"},
        {"name": "my_column_name_2", "description": "your column description 2!!"},
        {"name": "my_column_name_3", "description": "your column description 3!!"}
    ],
    labels: {
        "key": "value",
        "key": "value"
    }
}
EOF

List the view names which are going to be managed with bqv list command.

$ bqv list
your_dataset.your_view

Make the view into the GCP project named your_project with bqv apply command.

$ bqv apply --projecID=your_project
INFO[0001] Creating view(your_dataset.your_view)
bra bra bra ....

Destroy all the created views in the GCP project with bqv destroy command.

$ bqv destroy --projectID=your_project
INFO[0001] Deleting view your_dataset.your_view

With parameter file

You can use the query.sql file as a template and replace the placeholders in it when you run bqv apply.

# Create another directory
$ mkdir -p your_dataset/your_new_view

# Create the new query.sql following the Golang's template syntax.
$ cat <<EOF > your_dataset/your_new_view/query.sql
SELECT "{{.data}}" AS data
EOF

# Prepare a JSON file the keys and values in which are going to fill the query.sql
$ cat <<EOF > parameters.json
{"data": "data"}
EOF

# Run bqv apply with the parameters.json
$ bqv apply --paramFile=parameters.json
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].