File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ impl EventFormat for Event {
179
179
origin_size,
180
180
is_first_event,
181
181
parsed_timestamp,
182
- time_partitioned : time_partition. is_some ( ) ,
182
+ is_time_partitioned : time_partition. is_some ( ) ,
183
183
custom_partition_values,
184
184
stream_type,
185
185
} )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ pub struct Event {
47
47
pub origin_size : u64 ,
48
48
pub is_first_event : bool ,
49
49
pub parsed_timestamp : NaiveDateTime ,
50
- pub time_partitioned : bool ,
50
+ pub is_time_partitioned : bool ,
51
51
pub custom_partition_values : HashMap < String , String > ,
52
52
pub stream_type : StreamType ,
53
53
}
@@ -56,7 +56,7 @@ pub struct Event {
56
56
impl Event {
57
57
pub fn process ( self ) -> Result < ( ) , EventError > {
58
58
let mut key = get_schema_key ( & self . rb . schema ( ) . fields ) ;
59
- if self . time_partitioned {
59
+ if self . is_time_partitioned {
60
60
// For time partitioned streams, concatenate timestamp to filename, ensuring we don't write to a finished arrows file
61
61
let curr_timestamp = Utc :: now ( ) . format ( "%Y%m%dT%H%M" ) . to_string ( ) ;
62
62
key. push_str ( & curr_timestamp) ;
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ pub async fn push_logs_unchecked(
296
296
origin_format : "json" ,
297
297
origin_size : 0 ,
298
298
parsed_timestamp : Utc :: now ( ) . naive_utc ( ) ,
299
- time_partitioned : false ,
299
+ is_time_partitioned : false ,
300
300
is_first_event : true , // NOTE: Maybe should be false
301
301
custom_partition_values : HashMap :: new ( ) , // should be an empty map for unchecked push
302
302
stream_type : StreamType :: UserDefined ,
You can’t perform that action at this time.
0 commit comments