Skip to content

Inserting into partitioned tables in BigQuery #3208

Discussion options

You must be logged in to vote

Answered my own question. The steps seem to be:

  1. CreateBigQueryTable task, specifying a time_partitioning. I note that range partitioning doesn't seem to be supported currently. It would be cool if that were supported though.

  2. A downstream BigQueryTask that fulfills the following requirements:

    • destination_table has $[DATEID] appended afterwards, where DATEID is in YYYYMMDD format (e.g. 20200101, not 2020-01-01).
    • query contains a DATE '[DATEID]' AS ds column. Here 'DATEID' is in YYYY-MM-DD format (e.g. 2020-01-01).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bogdanstate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant