@@ -20,12 +20,11 @@ use futures_util::StreamExt;
2020use tokio:: runtime:: Runtime ;
2121
2222mod utils;
23- use utils:: build_catalog;
24-
2523use iceberg:: expr:: Reference ;
2624use iceberg:: spec:: Datum ;
2725use iceberg:: table:: Table ;
2826use iceberg:: Catalog ;
27+ use utils:: build_catalog;
2928
3029async fn setup_async ( ) -> Table {
3130 let catalog = build_catalog ( ) . await ;
@@ -82,20 +81,21 @@ async fn all_files_some_rows(table: &Table) {
8281}
8382
8483async fn one_file_some_rows ( table : & Table ) {
85- let scan = table
86- . scan ( )
87- . with_filter (
88- Reference :: new ( "tpep_pickup_datetime" )
89- . greater_than_or_equal_to (
90- Datum :: timestamptz_from_str ( "2024-02-01T00:00:00.000 UTC" ) . unwrap ( ) ,
91- )
92- . and ( Reference :: new ( "tpep_pickup_datetime" ) . less_than (
93- Datum :: timestamptz_from_str ( "2024-02-02T00:00:00.000 UTC" ) . unwrap ( ) ,
94- ) )
95- . and ( Reference :: new ( "passenger_count" ) . equal_to ( Datum :: double ( 1.0 ) ) ) ,
96- )
97- . build ( )
98- . unwrap ( ) ;
84+ let scan =
85+ table
86+ . scan ( )
87+ . with_filter (
88+ Reference :: new ( "tpep_pickup_datetime" )
89+ . greater_than_or_equal_to (
90+ Datum :: timestamptz_from_str ( "2024-02-01T00:00:00.000 UTC" ) . unwrap ( ) ,
91+ )
92+ . and ( Reference :: new ( "tpep_pickup_datetime" ) . less_than (
93+ Datum :: timestamptz_from_str ( "2024-02-02T00:00:00.000 UTC" ) . unwrap ( ) ,
94+ ) )
95+ . and ( Reference :: new ( "passenger_count" ) . equal_to ( Datum :: double ( 1.0 ) ) ) ,
96+ )
97+ . build ( )
98+ . unwrap ( ) ;
9999 let mut stream = scan. plan_files ( ) . await . unwrap ( ) ;
100100
101101 while let Some ( item) = stream. next ( ) . await {
0 commit comments