Skip to content

Cloud-Technology-Solutions/DataflowQuery3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is a free implementation of the TPC-DS Query #3 benchmark (see: https://beam.apache.org/documentation/sdks/java/testing/tpcds/).

For more information on the benchmarks and a comparison with Spark-Dataproc and Google BigQuery, check this blog: https://medium.com/cts-technologies/bigquery-spark-or-dataflow-a-story-of-speed-and-other-comparisons-fb1b8fea3619

How to launch the benchmark

  1. In your Google project, create a BigQuery dataset
  2. Load the 3 tables with the already generated data (this command supposes that the dataset just created is called tpcds_1TB):

bq load --source_format PARQUET tpcds_1TB.store_sales gs://beam-tpcds/datasets/parquet/nonpartitioned/1000GB/store_sales/part*.snappy.parquet

bq load --source_format PARQUET tpcds_1TB.date_dim gs://beam-tpcds/datasets/parquet/nonpartitioned/1000GB/date_dim/part*.snappy.parquet

bq load --source_format PARQUET tpcds_1TB.item gs://beam-tpcds/datasets/parquet/nonpartitioned/1000GB/item/part*.snappy.parquet

  1. Edit the Parameters.java file and fill the TODOs. Make sure that the regions between the BigQuery dataset, the GCS bucket and where the Dataflow code runs are aligned.
  2. Launch the Main class

About this Git repository

This code is provided by CTS as an example. It is not meant to be run in any "production environment", and CTS does not aim to maintain it. For these reasons, we won't accept any Pull Request.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages