Skip to content

Instantly share code, notes, and snippets.

@doit-mattporter
Created February 5, 2021 23:27
Show Gist options
  • Save doit-mattporter/3ecc1dd23d47f122ee50864c12615f5e to your computer and use it in GitHub Desktop.
Save doit-mattporter/3ecc1dd23d47f122ee50864c12615f5e to your computer and use it in GitHub Desktop.
Create a BQ table of open & closed window time frames from a CSV on GCS
#!/usr/bin/env bash
PROJECT_ID=iottempstreaming
DATA_BUCKET=iot-window-open-close-times
bq load \
--autodetect \
--source_format=CSV \
$PROJECT_ID:sensordata.window_opened_closed \
gs://$DATA_BUCKET/OpeningAndClosingTimes.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment