@@ -50,11 +50,11 @@ use crate::{
5050} ;
5151
5252use super :: dml:: InsertOp ;
53+ use crate :: information_schema:: ColumnsDetail ;
5354use arrow:: compute:: can_cast_types;
5455use arrow:: datatypes:: { DataType , Field , FieldRef , Fields , Schema , SchemaRef } ;
5556use datafusion_common:: display:: ToStringifiedPlan ;
5657use datafusion_common:: file_options:: file_type:: FileType ;
57- use datafusion_common:: information_schema:: ColumnsDetail ;
5858use datafusion_common:: metadata:: FieldMetadata ;
5959use datafusion_common:: {
6060 Column , Constraints , DFSchema , DFSchemaRef , FunctionalDependencies , NullEquality ,
@@ -269,18 +269,13 @@ impl LogicalPlanBuilder {
269269 pub fn describe ( schema : Arc < Schema > ) -> Result < Self > {
270270 Self :: show (
271271 ShowKind :: Describe { schema } ,
272- datafusion_common:: information_schema:: columns_schema (
273- ColumnsDetail :: Describe ,
274- ) ,
272+ crate :: information_schema:: columns_schema ( ColumnsDetail :: Describe ) ,
275273 )
276274 }
277275
278276 /// Create a `SHOW TABLES` plan.
279277 pub fn show_tables ( ) -> Result < Self > {
280- Self :: show (
281- ShowKind :: Tables ,
282- datafusion_common:: information_schema:: tables_schema ( ) ,
283- )
278+ Self :: show ( ShowKind :: Tables , crate :: information_schema:: tables_schema ( ) )
284279 }
285280
286281 /// Create a `DESCRIBE <table>` or `SHOW [FULL|EXTENDED] COLUMNS FROM <table>` plan.
@@ -290,15 +285,15 @@ impl LogicalPlanBuilder {
290285 ) -> Result < Self > {
291286 Self :: show (
292287 ShowKind :: Columns { table_ref, detail } ,
293- datafusion_common :: information_schema:: columns_schema ( detail) ,
288+ crate :: information_schema:: columns_schema ( detail) ,
294289 )
295290 }
296291
297292 /// Create a `SHOW CREATE TABLE <table>` plan.
298293 pub fn show_create_table ( table_ref : TableReference ) -> Result < Self > {
299294 Self :: show (
300295 ShowKind :: CreateTable { table_ref } ,
301- datafusion_common :: information_schema:: views_schema ( ) ,
296+ crate :: information_schema:: views_schema ( ) ,
302297 )
303298 }
304299
@@ -307,15 +302,15 @@ impl LogicalPlanBuilder {
307302 pub fn show_variables ( name : Option < String > , verbose : bool ) -> Result < Self > {
308303 Self :: show (
309304 ShowKind :: Variables { name, verbose } ,
310- datafusion_common :: information_schema:: df_settings_schema ( verbose) ,
305+ crate :: information_schema:: df_settings_schema ( verbose) ,
311306 )
312307 }
313308
314309 /// Create a `SHOW FUNCTIONS [LIKE <pattern>]` plan.
315310 pub fn show_functions ( filter : Option < String > ) -> Result < Self > {
316311 Self :: show (
317312 ShowKind :: Functions { filter } ,
318- datafusion_common :: information_schema:: show_functions_schema ( ) ,
313+ crate :: information_schema:: show_functions_schema ( ) ,
319314 )
320315 }
321316
0 commit comments