Skip to content

Commit

Permalink
Update src/connector/src/sink/big_query.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tao Wu <[email protected]>
  • Loading branch information
jetjinser and neverchanje committed Jun 27, 2024
1 parent 72b4250 commit 4bd4183
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/connector/src/sink/big_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ pub struct BigQueryCommon {
#[serde(rename = "bigquery.retry_times", default = "default_retry_times")]
#[serde_as(as = "DisplayFromStr")]
pub retry_times: usize,
#[serde(rename = "bigquery.auto_create_table", default)] // default false
pub auto_create_table: bool,
#[serde(default)] // default false
pub auto_create: bool,
}

fn default_max_batch_rows() -> usize {
Expand Down Expand Up @@ -371,7 +371,7 @@ impl Sink for BigQuerySink {
..
} = &self.config.common;

if self.config.common.auto_create_table {
if self.config.common.auto_create {
match client
.table()
.get(project_id, dataset_id, table_id, None)
Expand Down

0 comments on commit 4bd4183

Please sign in to comment.