Skip to content

Commit

Permalink
updated bqtools.resources
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-barlow committed May 27, 2024
1 parent 5a4459a commit 5658409
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 15 deletions.
12 changes: 6 additions & 6 deletions docs/reference/bqtools/functions/metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _**Arguments**_ | `partitioned_table_id STRING, OUT partitions ARRAY<DATE>`
_**Returns**_ | `OUT partitions ARRAY<DATE>`
_**Dependencies**_ | `bqtools-qb.[region].get_date_partitions`

!!! info "Function Usage"
!!! info "EXECUTION"
=== "EU"
```sql
DECLARE partitioned_table_id STRING;
Expand Down Expand Up @@ -45,7 +45,7 @@ _**Arguments**_ | `partitioned_table_id STRING, OUT first_partition DATE`
_**Returns**_ | `OUT first_partition DATE`
_**Dependencies**_ | `bqtools.[region].get_date_partitions`

!!! info "Function Usage"
!!! info "EXECUTION"
=== "EU"
```sql
DECLARE partitioned_table_id STRING;
Expand Down Expand Up @@ -78,7 +78,7 @@ _**Arguments**_ | `partitioned_table_id STRING, OUT last_partition DATE`
_**Returns**_ | `OUT last_partition DATE`
_**Dependencies**_ | `bqtools.[region].get_date_partitions`

!!! info "Function Usage"
!!! info "EXECUTION"
=== "EU"
```sql
DECLARE partitioned_table_id STRING;
Expand Down Expand Up @@ -111,7 +111,7 @@ _**Arguments**_ | `sharded_table_dataset_id STRING, sharded_table_prefix STRING,
_**Returns**_ | `OUT shard_dates ARRAY<DATE>`
_**Dependencies**_ | `bqtools-qb.[region].get_date_shards`

!!! info "Function Usage"
!!! info "EXECUTION"
=== "EU"
```sql
DECLARE sharded_table_dataset_id, sharded_table_prefix STRING;
Expand Down Expand Up @@ -146,7 +146,7 @@ _**Arguments**_ | `sharded_table_dataset_id STRING, sharded_table_prefix STRING,
_**Returns**_ | `OUT first_shard DATE`
_**Dependencies**_ | `bqtools.[region].get_date_shards`

!!! info "Function Usage"
!!! info "EXECUTION"
=== "EU"
```sql
DECLARE sharded_table_dataset_id, sharded_table_prefix STRING;
Expand Down Expand Up @@ -181,7 +181,7 @@ _**Arguments**_ | `sharded_table_dataset_id STRING, sharded_table_prefix STRING,
_**Returns**_ | `OUT last_shard DATE`
_**Dependencies**_ | `bqtools.[region].get_date_shards`

!!! info "Function Usage"
!!! info "EXECUTION"
=== "EU"
```sql
DECLARE sharded_table_dataset_id, sharded_table_prefix STRING;
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/bqtools/functions/partitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ _**Arguments**_ | `table_id STRING, date_column_name STRING, start_date DATE, en
_**Returns**_ | `None`
_**Dependencies**_ | `bqtools-qb.[region].delete_date_partitions`

!!! info "Function Usage"
!!! info "EXECUTION"
=== "EU"
```sql
DECLARE destination_table_id, date_column_name STRING;
Expand Down Expand Up @@ -51,7 +51,7 @@ _**Arguments**_ | `destination_table_id STRING, source_table_function_id STRING,
_**Returns**_ | `None`
_**Dependencies**_ | `bqtools-qb.[region].insert_date_partitions_from_date_bounded_table_function`

!!! info "Function Usage"
!!! info "EXECUTION"
=== "EU"
```sql
DECLARE destination_table_id, source_table_function_id STRING;
Expand Down Expand Up @@ -92,7 +92,7 @@ _**Arguments**_ | `destination_table_id STRING, date_column_name STRING, source_
_**Returns**_ | `None`
_**Dependencies**_ | `bqtools.[region].delete_date_partitions`, `bqtools.[region].insert_date_partitions_from_date_bounded_table_function`

!!! info "Function Usage"
!!! info "EXECUTION"
=== "EU"
```sql
DECLARE destination_table_id, date_column_name, source_table_function_id STRING;
Expand Down
Loading

0 comments on commit 5658409

Please sign in to comment.