File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed
datafusion/core/tests/sql Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -612,14 +612,12 @@ async fn pi_function() -> Result<()> {
612612}
613613
614614macro_rules! assert_logical_plan {
615- ( $ctx: expr, $udf_call: expr, $expected: expr) => {
616- {
617- let sql = format!( "SELECT {}" , $udf_call) ;
618- let logical_plan = $ctx. create_logical_plan( & sql) ?;
619- let formatted = format!( "{:?}" , logical_plan) ;
620- assert_eq!( $expected, formatted. split( "\n " ) . collect:: <Vec <& str >>( ) ) ;
621- }
622- } ;
615+ ( $ctx: expr, $udf_call: expr, $expected: expr) => { {
616+ let sql = format!( "SELECT {}" , $udf_call) ;
617+ let logical_plan = $ctx. create_logical_plan( & sql) ?;
618+ let formatted = format!( "{:?}" , logical_plan) ;
619+ assert_eq!( $expected, formatted. split( "\n " ) . collect:: <Vec <& str >>( ) ) ;
620+ } } ;
623621}
624622
625623#[ tokio:: test]
@@ -629,10 +627,7 @@ async fn test_log_round_logical_plan() -> Result<()> {
629627 assert_logical_plan ! (
630628 ctx,
631629 "log(2.0, 2)" ,
632- vec![
633- "Projection: log(Float64(2), Int64(2))" ,
634- " EmptyRelation" ,
635- ]
630+ vec![ "Projection: log(Float64(2), Int64(2))" , " EmptyRelation" , ]
636631 ) ;
637632
638633 assert_logical_plan ! (
You can’t perform that action at this time.
0 commit comments