File tree Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Expand file tree Collapse file tree 1 file changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -480,40 +480,6 @@ mod tests {
480480 ) ;
481481 }
482482
483- #[ test]
484- fn test_convert_array_to_object_with_time_partition ( ) {
485- let json = json ! ( [
486- {
487- "a" : "b" ,
488- "source_time" : "2025-08-01T00:00:00.000Z"
489- } ,
490- {
491- "a" : "b" ,
492- "source_time" : "2025-08-01T00:01:00.000Z"
493- }
494- ] ) ;
495-
496- let time_partition = Some ( "source_time" . to_string ( ) ) ;
497- let result = convert_array_to_object (
498- json,
499- time_partition. as_ref ( ) ,
500- None ,
501- None ,
502- SchemaVersion :: V0 ,
503- & crate :: event:: format:: LogSource :: default ( ) ,
504- ) ;
505-
506- assert ! ( result. is_ok( ) ) ;
507- let objects = result. unwrap ( ) ;
508-
509- // Should return 2 separate objects, not wrapped in an array
510- assert_eq ! ( objects. len( ) , 2 ) ;
511- assert_eq ! ( objects[ 0 ] [ "a" ] , "b" ) ;
512- assert_eq ! ( objects[ 0 ] [ "source_time" ] , "2025-08-01T00:00:00.000Z" ) ;
513- assert_eq ! ( objects[ 1 ] [ "a" ] , "b" ) ;
514- assert_eq ! ( objects[ 1 ] [ "source_time" ] , "2025-08-01T00:01:00.000Z" ) ;
515- }
516-
517483 #[ test]
518484 fn test_convert_array_to_object_without_time_partition ( ) {
519485 let json = json ! ( [
You can’t perform that action at this time.
0 commit comments