DTS Embedded CONRAD Broadcasts API
-
Initialize environment variables
export CLOUD_STORAGE_BUCKET="mbilski-badger" export DB_PATH="./" export CDN_BASE_URL="http://35.244.156.33/badger_gz/" export LOGOS_BASE_DIR="./logos" -
Go to the app’s directory:
DTS Embedded CONRAD Broadcasts API
Initialize environment variables
export CLOUD_STORAGE_BUCKET="mbilski-badger"
export DB_PATH="./"
export CDN_BASE_URL="http://35.244.156.33/badger_gz/"
export LOGOS_BASE_DIR="./logos"
Go to the app’s directory:
https://docs.getdbt.com/docs/installation
brew update
brew tap fishtown-analytics/dbt
brew install dbt| <?xml version="1.0" encoding="utf-8"?> | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | |
| <head> | |
| <!-- 2020-03-10 Tue 19:33 --> | |
| <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <title>stitchingdata</title> | |
| <meta name="generator" content="Org mode" /> |
SELECT n.message.data.remote_content_id, n.message.data.remote_broadcast_id, n.message.data.source, r.message as rawData, n.message as normalizedData
FROM `conrad-production-api.conradEvents.StaticDataRaw` r
LEFT JOIN `conrad-production-api.conradEvents.StaticDataNormalized` n
ON (n.message.data.update_id = JSON_EXTRACT_SCALAR(r.message, "$.data.update_id"))