@@ -31,7 +31,6 @@ use datafusion_expr::{
3131 col, lit, utils:: split_conjunction, Expr , LogicalPlan , LogicalPlanBuilder , TableScan ,
3232} ;
3333use datafusion_functions:: string:: expr_fn:: { concat, concat_ws} ;
34- use datafusion_optimizer:: { analyzer:: expand_wildcard_rule:: ExpandWildcardRule , AnalyzerRule } ;
3534use datafusion_sql:: TableReference ;
3635use itertools:: { Either , Itertools } ;
3736use std:: { collections:: HashSet , sync:: Arc } ;
@@ -111,14 +110,14 @@ impl TableFunctionImpl for FileDependenciesUdtf {
111110 "mv_dependencies: table '{table_name} is not a materialized view. (Materialized TableProviders must be registered using register_materialized" ) ,
112111 ) ) ?;
113112
114- Ok ( Arc :: new ( ViewTable :: try_new (
113+ Ok ( Arc :: new ( ViewTable :: new (
115114 mv_dependencies_plan (
116115 mv,
117116 self . row_metadata_registry . as_ref ( ) ,
118117 & self . config_options ,
119118 ) ?,
120119 None ,
121- ) ? ) )
120+ ) ) )
122121 }
123122}
124123
@@ -216,7 +215,7 @@ impl TableFunctionImpl for StaleFilesUdtf {
216215 ] ) ?
217216 . build ( ) ?;
218217
219- Ok ( Arc :: new ( ViewTable :: try_new ( logical_plan, None ) ? ) )
218+ Ok ( Arc :: new ( ViewTable :: new ( logical_plan, None ) ) )
220219 }
221220}
222221
@@ -250,9 +249,6 @@ pub fn mv_dependencies_plan(
250249 . filter_map ( |( i, f) | partition_cols. contains ( f. name ( ) ) . then_some ( i) )
251250 . collect ( ) ;
252251
253- // First expand all wildcards
254- let plan = ExpandWildcardRule { } . analyze ( plan, config_options) ?;
255-
256252 let pruned_plan_with_source_files = if partition_cols. is_empty ( ) {
257253 get_source_files_all_partitions (
258254 materialized_view,
0 commit comments