@@ -1114,15 +1114,15 @@ impl DefaultPhysicalPlanner {
11141114 // TABLE" -- it must be handled at a higher level (so
11151115 // that the appropriate table can be registered with
11161116 // the context)
1117- Err ( DataFusionError :: Internal (
1117+ Err ( DataFusionError :: NotImplemented (
11181118 "Unsupported logical plan: CreateExternalTable" . to_string ( ) ,
11191119 ) )
11201120 }
11211121 LogicalPlan :: Prepare ( _) => {
11221122 // There is no default plan for "PREPARE" -- it must be
11231123 // handled at a higher level (so that the appropriate
11241124 // statement can be prepared)
1125- Err ( DataFusionError :: Internal (
1125+ Err ( DataFusionError :: NotImplemented (
11261126 "Unsupported logical plan: Prepare" . to_string ( ) ,
11271127 ) )
11281128 }
@@ -1131,7 +1131,7 @@ impl DefaultPhysicalPlanner {
11311131 // It must be handled at a higher level (so
11321132 // that the schema can be registered with
11331133 // the context)
1134- Err ( DataFusionError :: Internal (
1134+ Err ( DataFusionError :: NotImplemented (
11351135 "Unsupported logical plan: CreateCatalogSchema" . to_string ( ) ,
11361136 ) )
11371137 }
@@ -1140,7 +1140,7 @@ impl DefaultPhysicalPlanner {
11401140 // It must be handled at a higher level (so
11411141 // that the schema can be registered with
11421142 // the context)
1143- Err ( DataFusionError :: Internal (
1143+ Err ( DataFusionError :: NotImplemented (
11441144 "Unsupported logical plan: CreateCatalog" . to_string ( ) ,
11451145 ) )
11461146 }
@@ -1149,7 +1149,7 @@ impl DefaultPhysicalPlanner {
11491149 // It must be handled at a higher level (so
11501150 // that the schema can be registered with
11511151 // the context)
1152- Err ( DataFusionError :: Internal (
1152+ Err ( DataFusionError :: NotImplemented (
11531153 "Unsupported logical plan: CreateMemoryTable" . to_string ( ) ,
11541154 ) )
11551155 }
@@ -1158,7 +1158,7 @@ impl DefaultPhysicalPlanner {
11581158 // It must be handled at a higher level (so
11591159 // that the schema can be registered with
11601160 // the context)
1161- Err ( DataFusionError :: Internal (
1161+ Err ( DataFusionError :: NotImplemented (
11621162 "Unsupported logical plan: DropTable" . to_string ( ) ,
11631163 ) )
11641164 }
@@ -1167,7 +1167,7 @@ impl DefaultPhysicalPlanner {
11671167 // It must be handled at a higher level (so
11681168 // that the schema can be registered with
11691169 // the context)
1170- Err ( DataFusionError :: Internal (
1170+ Err ( DataFusionError :: NotImplemented (
11711171 "Unsupported logical plan: DropView" . to_string ( ) ,
11721172 ) )
11731173 }
@@ -1176,13 +1176,13 @@ impl DefaultPhysicalPlanner {
11761176 // It must be handled at a higher level (so
11771177 // that the schema can be registered with
11781178 // the context)
1179- Err ( DataFusionError :: Internal (
1179+ Err ( DataFusionError :: NotImplemented (
11801180 "Unsupported logical plan: CreateView" . to_string ( ) ,
11811181 ) )
11821182 }
11831183 LogicalPlan :: Dml ( _) => {
11841184 // DataFusion is a read-only query engine, but also a library, so consumers may implement this
1185- Err ( DataFusionError :: Internal (
1185+ Err ( DataFusionError :: NotImplemented (
11861186 "Unsupported logical plan: Dml" . to_string ( ) ,
11871187 ) )
11881188 }
0 commit comments