You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/12/18 13:30:21 UTC

[GitHub] [airflow] mik-laj edited a comment on issue #8645: BigQuery: integer range partitioning support for BQ tables

mik-laj edited a comment on issue #8645:
URL: https://github.com/apache/airflow/issues/8645#issuecomment-748085004


   I was able to create tables with integer range partitioning.
   ```python
       create_table = BigQueryCreateEmptyTableOperator(
           task_id="create_table",
           dataset_id="test_dataset",
           table_id="test_airflow_table",
           table_resource={
               "rangePartitioning": {
                   "field": "my_int_field",
                   "range": {
                       "start": 1,
                       "end": 10000,
                       "interval": 100
                   }
               },
               "id": "new-range-partition-table",
               "schema": {
                   "fields": [
                       {
                           "name": "my_int_field",
                           "type": "INTEGER",
                           "mode": "NULLABLE"
                       }
                   ]
               }
           }
       )
   ````
   ![Screenshot 2020-12-18 at 14 28 03](https://user-images.githubusercontent.com/12058428/102619916-7c59c300-413d-11eb-8f21-7fae8ea20b2f.png)
   ![Screenshot 2020-12-18 at 14 28 18](https://user-images.githubusercontent.com/12058428/102619923-7d8af000-413d-11eb-9434-afcb097b17b4.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org