@@ -32,8 +32,8 @@ use datafusion::execution::registry::SerializerRegistry;
3232use datafusion:: execution:: runtime_env:: RuntimeEnv ;
3333use datafusion:: execution:: session_state:: SessionStateBuilder ;
3434use datafusion:: logical_expr:: {
35- Extension , InvariantLevel , LogicalPlan , PartitionEvaluator , Repartition ,
36- UserDefinedLogicalNode , Values , Volatility ,
35+ Extension , InvariantLevel , LogicalPlan , LogicalPlanBuilder , PartitionEvaluator ,
36+ Repartition , UserDefinedLogicalNode , Values , Volatility ,
3737} ;
3838use datafusion:: optimizer:: simplify_expressions:: expr_simplifier:: THRESHOLD_INLINE_INLIST ;
3939use datafusion:: prelude:: * ;
@@ -1258,10 +1258,7 @@ async fn roundtrip_values() -> Result<()> {
12581258async fn roundtrip_values_no_columns ( ) -> Result < ( ) > {
12591259 let ctx = create_context ( ) . await ?;
12601260 // "VALUES ()" is not yet supported by the SQL parser, so we construct the plan manually
1261- let plan = LogicalPlan :: Values ( Values {
1262- values : vec ! [ vec![ ] , vec![ ] ] , // two rows, no columns
1263- schema : DFSchemaRef :: new ( DFSchema :: empty ( ) ) ,
1264- } ) ;
1261+ let plan = LogicalPlanBuilder :: values ( vec ! [ vec![ ] , vec![ ] ] ) ?. build ( ) ?;
12651262 roundtrip_logical_plan_with_ctx ( plan, ctx) . await ?;
12661263 Ok ( ( ) )
12671264}
0 commit comments