Skip to content

Commit

Permalink
fix: mysteriously no stage code
Browse files Browse the repository at this point in the history
  • Loading branch information
jetjinser committed Jun 27, 2024
1 parent 4bd4183 commit bbdc227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/connector/src/sink/big_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ pub struct BigQueryCommon {
#[serde_as(as = "DisplayFromStr")]
pub retry_times: usize,
#[serde(default)] // default false
#[serde_as(as = "DisplayFromStr")]
pub auto_create: bool,
}

Expand Down Expand Up @@ -377,7 +378,7 @@ impl Sink for BigQuerySink {
.get(project_id, dataset_id, table_id, None)
.await
{
Err(BQError::ResponseError { error: _ }) => {
Err(BQError::RequestError(_)) => {
// early return: no need to query schema to check column and type
return self
.create_table(
Expand Down

0 comments on commit bbdc227

Please sign in to comment.