File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ use risingwave_common::catalog::Schema;
28
28
use risingwave_common:: types:: DataType ;
29
29
use serde_derive:: Deserialize ;
30
30
use serde_json:: Value ;
31
- use serde_with:: serde_as;
31
+ use serde_with:: { serde_as, DisplayFromStr } ;
32
32
use url:: Url ;
33
33
use with_options:: WithOptions ;
34
34
use yup_oauth2:: ServiceAccountKey ;
@@ -45,6 +45,7 @@ use crate::sink::{
45
45
46
46
pub const BIGQUERY_SINK : & str = "bigquery" ;
47
47
48
+ #[ serde_as]
48
49
#[ derive( Deserialize , Debug , Clone , WithOptions ) ]
49
50
pub struct BigQueryCommon {
50
51
#[ serde( rename = "bigquery.local.path" ) ]
@@ -58,6 +59,7 @@ pub struct BigQueryCommon {
58
59
#[ serde( rename = "bigquery.table" ) ]
59
60
pub table : String ,
60
61
#[ serde( rename = "bigquery.max_batch_rows" , default = "default_max_batch_rows" ) ]
62
+ #[ serde_as( as = "DisplayFromStr" ) ]
61
63
pub max_batch_rows : usize ,
62
64
}
63
65
You can’t perform that action at this time.
0 commit comments