File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ impl EventFormat for Event {
44
44
fn to_data (
45
45
self ,
46
46
schema : & HashMap < String , Arc < Field > > ,
47
- static_schema_flag : bool ,
48
47
time_partition : Option < & String > ,
49
48
schema_version : SchemaVersion ,
50
49
) -> Result < ( Self :: Data , Vec < Arc < Field > > , bool ) , anyhow:: Error > {
@@ -94,8 +93,7 @@ impl EventFormat for Event {
94
93
}
95
94
} ;
96
95
97
- if !static_schema_flag
98
- && value_arr
96
+ if value_arr
99
97
. iter ( )
100
98
. any ( |value| fields_mismatch ( & schema, value, schema_version) )
101
99
{
Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ pub trait EventFormat: Sized {
99
99
fn to_data (
100
100
self ,
101
101
schema : & HashMap < String , Arc < Field > > ,
102
- static_schema_flag : bool ,
103
102
time_partition : Option < & String > ,
104
103
schema_version : SchemaVersion ,
105
104
) -> Result < ( Self :: Data , EventSchema , bool ) , AnyError > ;
@@ -115,7 +114,6 @@ pub trait EventFormat: Sized {
115
114
) -> Result < ( RecordBatch , bool ) , AnyError > {
116
115
let ( data, mut schema, is_first) = self . to_data (
117
116
storage_schema,
118
- static_schema_flag,
119
117
time_partition,
120
118
schema_version,
121
119
) ?;
You can’t perform that action at this time.
0 commit comments