Skip to content

Commit e10dad1

Browse files
committed
fix size
fmt
1 parent 80be523 commit e10dad1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/connector/src/sink/big_query.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use risingwave_common::catalog::Schema;
2828
use risingwave_common::types::DataType;
2929
use serde_derive::Deserialize;
3030
use serde_json::Value;
31-
use serde_with::serde_as;
31+
use serde_with::{serde_as, DisplayFromStr};
3232
use url::Url;
3333
use with_options::WithOptions;
3434
use yup_oauth2::ServiceAccountKey;
@@ -45,6 +45,7 @@ use crate::sink::{
4545

4646
pub const BIGQUERY_SINK: &str = "bigquery";
4747

48+
#[serde_as]
4849
#[derive(Deserialize, Debug, Clone, WithOptions)]
4950
pub struct BigQueryCommon {
5051
#[serde(rename = "bigquery.local.path")]
@@ -58,6 +59,7 @@ pub struct BigQueryCommon {
5859
#[serde(rename = "bigquery.table")]
5960
pub table: String,
6061
#[serde(rename = "bigquery.max_batch_rows", default = "default_max_batch_rows")]
62+
#[serde_as(as = "DisplayFromStr")]
6163
pub max_batch_rows: usize,
6264
}
6365

0 commit comments

Comments
 (0)