Slide 24
Slide 24 text
変更への耐性
スプシ(ソース)のコントラクト BQ上のコントラクト
dataContractSpecification: 0.9.3
id: hogehoge_source
servers:
production:
type: spreadsheet
location: https://spreadsheetのdrive
header_row: 1
models:
source:
type: table
fields:
"データ取得日":
type: string
required: false
description: データ取得日
"日付":
type: string
required: false
description: 仕事開始日
…
dataContractSpecification: 0.9.3
id: hogehoge_staging
servers:
production:
type: bigquery
models:
staging:
type: table
fields:
"obtained_date":
type: datetime
required: false
description: データ取得日
config:
mapping:
data_contract_id: competitor_information/hallo_source
field_name: データ取得日
"started_date":
type: datetime
required: false
description: 仕事開始日
config:
mapping:
data_contract_id: competitor_information/hallo_source
field_name: 日付
…
シンプルな
一対一変換なのでこの形式
データオーナーにコントラクトの運用を握ってもらい、それに従い処理を
ある程度機械的に生成できるように
※ 抜粋です