Skip to content

Commit

Permalink
Merge pull request #21 from lgingerich/release/v0.1.4
Browse files Browse the repository at this point in the history
Release/v0.1.4
  • Loading branch information
lgingerich authored Feb 26, 2025
2 parents 70678cb + a0e0228 commit 855735d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/storage/bigquery/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use google_cloud_bigquery::client::{Client, ClientConfig};
use google_cloud_bigquery::http::dataset::{Dataset, DatasetReference};
use google_cloud_bigquery::http::error::Error as BigQueryError;
use google_cloud_bigquery::http::job::query::QueryRequest;
use google_cloud_bigquery::http::table::{Table, TableReference};
use google_cloud_bigquery::http::table::{Table, TableReference, TimePartitioning, TimePartitionType};
use google_cloud_bigquery::http::tabledata::{
insert_all::{InsertAllRequest, Row as TableRow},
list::Value,
Expand Down Expand Up @@ -146,6 +146,11 @@ pub async fn create_table(chain_name: &str, table_id: &str, chain: Chain) -> Res
table_id: table_id.to_string(),
},
schema: Some(schema),
time_partitioning: Some(TimePartitioning {
partition_type: TimePartitionType::Day,
field: Some("block_date".to_string()),
..Default::default()
}),
..Default::default()
};

Expand Down

0 comments on commit 855735d

Please sign in to comment.