@@ -69,7 +69,7 @@ fn unsupported_layout_has_no_plan() -> VortexResult<()> {
6969fn flat_plan_has_no_children ( ) -> VortexResult < ( ) > {
7070 let plan = make_plan ( flat ( 3 , primitive ( PType :: I32 , Nullability :: NonNullable ) , 0 ) ) ?;
7171
72- assert ! ( plan. as_any ( ) . is:: <FlatPlan >( ) ) ;
72+ assert ! ( plan. is:: <FlatPlan >( ) ) ;
7373 assert_eq ! ( plan. child_count( ) , 0 ) ;
7474 assert ! ( plan. child( 0 ) . is_err( ) ) ;
7575 Ok ( ( ) )
@@ -86,7 +86,7 @@ fn chunked_plan_exposes_chunks() -> VortexResult<()> {
8686 . into_layout ( ) ;
8787 let plan = make_plan ( layout) ?;
8888
89- assert ! ( plan. as_any ( ) . is:: <ChunkedPlan >( ) ) ;
89+ assert ! ( plan. is:: <ChunkedPlan >( ) ) ;
9090 assert_eq ! ( plan. child_count( ) , 2 ) ;
9191 assert_eq ! (
9292 plan. child( 0 ) ?
@@ -120,7 +120,7 @@ fn chunked_plan_defers_unrequested_chunks_through_optimization() -> VortexResult
120120 let first = plan
121121 . child ( 0 ) ?
122122 . ok_or_else ( || vortex_err ! ( "missing first chunk" ) ) ?;
123- assert ! ( first. as_any ( ) . is:: <FlatPlan >( ) ) ;
123+ assert ! ( first. is:: <FlatPlan >( ) ) ;
124124 let cached = plan
125125 . child ( 0 ) ?
126126 . ok_or_else ( || vortex_err ! ( "missing cached first chunk" ) ) ?;
@@ -149,7 +149,7 @@ fn dict_plan_orders_codes_before_values() -> VortexResult<()> {
149149 . into_layout ( ) ;
150150 let plan = make_plan ( layout) ?;
151151
152- assert ! ( plan. as_any ( ) . is:: <DictPlan >( ) ) ;
152+ assert ! ( plan. is:: <DictPlan >( ) ) ;
153153 assert_eq ! ( plan. child_count( ) , 2 ) ;
154154 assert_eq ! (
155155 plan. child( 0 ) ?
@@ -179,7 +179,7 @@ fn list_plan_has_stable_optional_validity_slot() -> VortexResult<()> {
179179 . into_layout ( ) ;
180180 let plan = make_plan ( non_nullable) ?;
181181
182- assert ! ( plan. as_any ( ) . is:: <ListPlan >( ) ) ;
182+ assert ! ( plan. is:: <ListPlan >( ) ) ;
183183 assert_eq ! ( plan. child_count( ) , 3 ) ;
184184 assert_eq ! (
185185 plan. child( 0 ) ?
@@ -228,7 +228,7 @@ fn struct_plan_orders_fields_before_optional_validity() -> VortexResult<()> {
228228 . into_layout ( ) ;
229229 let plan = make_plan ( non_nullable) ?;
230230
231- assert ! ( plan. as_any ( ) . is:: <StructPlan >( ) ) ;
231+ assert ! ( plan. is:: <StructPlan >( ) ) ;
232232 assert_eq ! ( plan. child_count( ) , 3 ) ;
233233 assert_eq ! (
234234 plan. child( 0 ) ?
@@ -282,7 +282,6 @@ fn struct_plan_defers_unrequested_fields_through_optimization() -> VortexResult<
282282 assert ! (
283283 plan. child( 0 ) ?
284284 . ok_or_else( || vortex_err!( "missing field a" ) ) ?
285- . as_any( )
286285 . is:: <FlatPlan >( )
287286 ) ;
288287 let error = plan
@@ -445,12 +444,11 @@ fn row_idx_plan_preserves_row_index_expressions() -> VortexResult<()> {
445444 let plan = RowIdxPlan :: new_ref ( 10 , make_plan ( layout) ?) ;
446445 let plan = ExpressionPlan :: try_new ( row_idx ( ) , plan) ?. optimize ( ) ?;
447446 let expression = plan
448- . as_any ( )
449447 . downcast_ref :: < ExpressionPlan > ( )
450448 . ok_or_else ( || vortex_err ! ( "optimized plan is not an expression plan" ) ) ?;
451449
452450 assert_eq ! ( expression. expression( ) , & row_idx( ) ) ;
453- assert ! ( expression. child_plan( ) . as_any ( ) . is:: <RowIdxPlan >( ) ) ;
451+ assert ! ( expression. child_plan( ) . is:: <RowIdxPlan >( ) ) ;
454452 assert_eq ! ( expression. row_count( ) , 3 ) ;
455453 Ok ( ( ) )
456454}
0 commit comments