Skip to content

Commit

Permalink
fix size
Browse files Browse the repository at this point in the history
  • Loading branch information
xxhZs committed Mar 7, 2024
1 parent 80be523 commit 64911ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/connector/src/sink/big_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ use risingwave_common::catalog::Schema;
use risingwave_common::types::DataType;
use serde_derive::Deserialize;
use serde_json::Value;
use serde_with::serde_as;
use url::Url;
use with_options::WithOptions;
use yup_oauth2::ServiceAccountKey;
Expand All @@ -39,12 +38,14 @@ use super::{SinkError, SINK_TYPE_APPEND_ONLY, SINK_TYPE_OPTION, SINK_TYPE_UPSERT
use crate::aws_utils::load_file_descriptor_from_s3;
use crate::common::AwsAuthProps;
use crate::sink::writer::SinkWriterExt;
use serde_with::{serde_as, DisplayFromStr};
use crate::sink::{
DummySinkCommitCoordinator, Result, Sink, SinkParam, SinkWriter, SinkWriterParam,
};

pub const BIGQUERY_SINK: &str = "bigquery";

#[serde_as]
#[derive(Deserialize, Debug, Clone, WithOptions)]
pub struct BigQueryCommon {
#[serde(rename = "bigquery.local.path")]
Expand All @@ -58,6 +59,7 @@ pub struct BigQueryCommon {
#[serde(rename = "bigquery.table")]
pub table: String,
#[serde(rename = "bigquery.max_batch_rows", default = "default_max_batch_rows")]
#[serde_as(as = "DisplayFromStr")]
pub max_batch_rows: usize,
}

Expand Down

0 comments on commit 64911ba

Please sign in to comment.