From c13d504a63f4426dc444204a4590eb70d12a9c98 Mon Sep 17 00:00:00 2001 From: Seungnam Sean Wang <36684409+imcboofel@users.noreply.github.com> Date: Thu, 17 Sep 2020 15:54:10 +0900 Subject: [PATCH] Create ext_bigtable_def.json Definition sample to create and query a pemenent table from bq cli. --- 04_load/ext_bigtable_def.json | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 04_load/ext_bigtable_def.json diff --git a/04_load/ext_bigtable_def.json b/04_load/ext_bigtable_def.json new file mode 100644 index 0000000..ea3faa3 --- /dev/null +++ b/04_load/ext_bigtable_def.json @@ -0,0 +1,39 @@ +{ + "sourceFormat": "BIGTABLE", + "sourceUris": [ + "https://googleapis.com/bigtable/projects//instances/bqbook-instance/tables/logs-table" + ], + "bigtableOptions": { + "columnFamilies" : [ + { + "familyId": "sales", + "type": "STRING", + "encoding": "TEXT", + "columns" : [ + { + "qualifierString": "itemid", + "type": "STRING", + "encoding": "TEXT", + "onlyReadLatest": true + }, + { + "qualifierString": "price", + "type": "FLOAT", + "encoding": "TEXT", + "onlyReadLatest": true + }, + { + "qualifierString": "qty", + "type": "INTEGER", + "encoding": "TEXT", + "onlyReadLatest": true + } + ], + "onlyReadLatest": true + } + + ], + "ignoreUnspecifiedColumnFamilies": true, + "readRowkeyAsString": true + } +}