Skip to content

Instantly share code, notes, and snippets.

@yukiyan
Created December 18, 2019 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yukiyan/a7ea10a0127f0098bbdac642f969bbcb to your computer and use it in GitHub Desktop.
Save yukiyan/a7ea10a0127f0098bbdac642f969bbcb to your computer and use it in GitHub Desktop.
BigQueryのcolumn descriptionをメンテするやつ
CREATE OR REPLACE TABLE `hoge.mart.xxx`(
id STRING OPTIONS(description="これはidです")
)
OPTIONS(
description="これはサンプル用のテーブルです"
)
;
INSERT `hoge.mart.xxx`
WITH
xxx AS (
SELECT
id
FROM
`hoge.source.xxx`
)
SELECT
*
FROM
xxx
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment