@@ -1097,15 +1097,15 @@ impl DefaultPhysicalPlanner {
10971097 // TABLE" -- it must be handled at a higher level (so
10981098 // that the appropriate table can be registered with
10991099 // the context)
1100- Err ( DataFusionError :: Internal (
1100+ Err ( DataFusionError :: Plan (
11011101 "Unsupported logical plan: CreateExternalTable" . to_string ( ) ,
11021102 ) )
11031103 }
11041104 LogicalPlan :: Prepare ( _) => {
11051105 // There is no default plan for "PREPARE" -- it must be
11061106 // handled at a higher level (so that the appropriate
11071107 // statement can be prepared)
1108- Err ( DataFusionError :: Internal (
1108+ Err ( DataFusionError :: Plan (
11091109 "Unsupported logical plan: Prepare" . to_string ( ) ,
11101110 ) )
11111111 }
@@ -1114,7 +1114,7 @@ impl DefaultPhysicalPlanner {
11141114 // It must be handled at a higher level (so
11151115 // that the schema can be registered with
11161116 // the context)
1117- Err ( DataFusionError :: Internal (
1117+ Err ( DataFusionError :: Plan (
11181118 "Unsupported logical plan: CreateCatalogSchema" . to_string ( ) ,
11191119 ) )
11201120 }
@@ -1123,7 +1123,7 @@ impl DefaultPhysicalPlanner {
11231123 // It must be handled at a higher level (so
11241124 // that the schema can be registered with
11251125 // the context)
1126- Err ( DataFusionError :: Internal (
1126+ Err ( DataFusionError :: Plan (
11271127 "Unsupported logical plan: CreateCatalog" . to_string ( ) ,
11281128 ) )
11291129 }
@@ -1132,7 +1132,7 @@ impl DefaultPhysicalPlanner {
11321132 // It must be handled at a higher level (so
11331133 // that the schema can be registered with
11341134 // the context)
1135- Err ( DataFusionError :: Internal (
1135+ Err ( DataFusionError :: Plan (
11361136 "Unsupported logical plan: CreateMemoryTable" . to_string ( ) ,
11371137 ) )
11381138 }
@@ -1141,7 +1141,7 @@ impl DefaultPhysicalPlanner {
11411141 // It must be handled at a higher level (so
11421142 // that the schema can be registered with
11431143 // the context)
1144- Err ( DataFusionError :: Internal (
1144+ Err ( DataFusionError :: Plan (
11451145 "Unsupported logical plan: DropTable" . to_string ( ) ,
11461146 ) )
11471147 }
@@ -1150,7 +1150,7 @@ impl DefaultPhysicalPlanner {
11501150 // It must be handled at a higher level (so
11511151 // that the schema can be registered with
11521152 // the context)
1153- Err ( DataFusionError :: Internal (
1153+ Err ( DataFusionError :: Plan (
11541154 "Unsupported logical plan: DropView" . to_string ( ) ,
11551155 ) )
11561156 }
@@ -1159,16 +1159,16 @@ impl DefaultPhysicalPlanner {
11591159 // It must be handled at a higher level (so
11601160 // that the schema can be registered with
11611161 // the context)
1162- Err ( DataFusionError :: Internal (
1162+ Err ( DataFusionError :: Plan (
11631163 "Unsupported logical plan: CreateView" . to_string ( ) ,
11641164 ) )
11651165 }
11661166 LogicalPlan :: SetVariable ( _) => {
1167- Err ( DataFusionError :: Internal (
1167+ Err ( DataFusionError :: Plan (
11681168 "Unsupported logical plan: SetVariable must be root of the plan" . to_string ( ) ,
11691169 ) )
11701170 }
1171- LogicalPlan :: Explain ( _) => Err ( DataFusionError :: Internal (
1171+ LogicalPlan :: Explain ( _) => Err ( DataFusionError :: Plan (
11721172 "Unsupported logical plan: Explain must be root of the plan" . to_string ( ) ,
11731173 ) ) ,
11741174 LogicalPlan :: Analyze ( a) => {
0 commit comments