@@ -113,12 +113,14 @@ mod basic {
113113
114114 let result = df. unwrap ( ) . collect ( ) . await . unwrap ( ) ;
115115
116- let expected = [ "+---------------+--------------+---------------------+-------------+-----------------------------+-------------+" ,
117- "| table_catalog | table_schema | table_name | column_name | data_type | is_nullable |" ,
118- "+---------------+--------------+---------------------+-------------+-----------------------------+-------------+" ,
119- "| datafusion | public | csv_with_timestamps | name | Utf8 | YES |" ,
120- "| datafusion | public | csv_with_timestamps | ts | Timestamp(Nanosecond, None) | YES |" ,
121- "+---------------+--------------+---------------------+-------------+-----------------------------+-------------+" ] ;
116+ let expected = [
117+ "+---------------+--------------+---------------------+-------------+---------------+-------------+" ,
118+ "| table_catalog | table_schema | table_name | column_name | data_type | is_nullable |" ,
119+ "+---------------+--------------+---------------------+-------------+---------------+-------------+" ,
120+ "| datafusion | public | csv_with_timestamps | name | Utf8 | YES |" ,
121+ "| datafusion | public | csv_with_timestamps | ts | Timestamp(ns) | YES |" ,
122+ "+---------------+--------------+---------------------+-------------+---------------+-------------+" ,
123+ ] ;
122124 datafusion:: assert_batches_eq!( expected, & result) ;
123125 }
124126
@@ -359,7 +361,7 @@ mod basic {
359361 let res = df. collect ( ) . await . unwrap ( ) ;
360362 let expected = vec ! [
361363 "+-------------------+" ,
362- "| var (test.id) |" ,
364+ "| var_samp (test.id) |" ,
363365 "+-------------------+" ,
364366 "| 6.000000000000001 |" ,
365367 "+-------------------+" ,
@@ -390,11 +392,11 @@ mod basic {
390392 . unwrap ( ) ;
391393 let res = df. collect ( ) . await . unwrap ( ) ;
392394 let expected = vec ! [
393- "+--------------------+" ,
394- "| stddev (test.id) |" ,
395- "+--------------------+" ,
396- "| 2.4494897427831783 |" ,
397- "+--------------------+" ,
395+ "+---------------------- +" ,
396+ "| stddev_samp (test.id) |" ,
397+ "+---------------------- +" ,
398+ "| 2.4494897427831783 |" ,
399+ "+---------------------- +" ,
398400 ] ;
399401 assert_result_eq ( expected, & res) ;
400402 }
@@ -408,11 +410,11 @@ mod basic {
408410 . unwrap ( ) ;
409411 let res = df. collect ( ) . await . unwrap ( ) ;
410412 let expected = vec ! [
411- "+-------------------------------------- +" ,
412- "| covar_samp (test.id,test.tinyint_col) |" ,
413- "+-------------------------------------- +" ,
414- "| 0.28571428571428586 |" ,
415- "+-------------------------------------- +" ,
413+ "+---------------------------------+" ,
414+ "| covar (test.id,test.tinyint_col) |" ,
415+ "+---------------------------------+" ,
416+ "| 0.28571428571428586 |" ,
417+ "+---------------------------------+" ,
416418 ] ;
417419 assert_result_eq ( expected, & res) ;
418420 }
0 commit comments