@@ -128,6 +128,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
128128 verbose,
129129 statement,
130130 analyze,
131+ ..
131132 } => self . explain_statement_to_plan ( * verbose, * analyze, statement) ,
132133 Statement :: Query ( query) => self . query_to_plan ( query) ,
133134 Statement :: ShowVariable { variable } => self . show_variable_to_plan ( variable) ,
@@ -301,9 +302,9 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
301302 /// Maps the SQL type to the corresponding Arrow `DataType`
302303 fn make_data_type ( & self , sql_type : & SQLDataType ) -> Result < DataType > {
303304 match sql_type {
304- SQLDataType :: BigInt => Ok ( DataType :: Int64 ) ,
305- SQLDataType :: Int => Ok ( DataType :: Int32 ) ,
306- SQLDataType :: SmallInt => Ok ( DataType :: Int16 ) ,
305+ SQLDataType :: BigInt ( _ ) => Ok ( DataType :: Int64 ) ,
306+ SQLDataType :: Int ( _ ) => Ok ( DataType :: Int32 ) ,
307+ SQLDataType :: SmallInt ( _ ) => Ok ( DataType :: Int16 ) ,
307308 SQLDataType :: Char ( _) | SQLDataType :: Varchar ( _) | SQLDataType :: Text => {
308309 Ok ( DataType :: Utf8 )
309310 }
@@ -1866,9 +1867,9 @@ fn extract_possible_join_keys(
18661867pub fn convert_data_type ( sql : & SQLDataType ) -> Result < DataType > {
18671868 match sql {
18681869 SQLDataType :: Boolean => Ok ( DataType :: Boolean ) ,
1869- SQLDataType :: SmallInt => Ok ( DataType :: Int16 ) ,
1870- SQLDataType :: Int => Ok ( DataType :: Int32 ) ,
1871- SQLDataType :: BigInt => Ok ( DataType :: Int64 ) ,
1870+ SQLDataType :: SmallInt ( _ ) => Ok ( DataType :: Int16 ) ,
1871+ SQLDataType :: Int ( _ ) => Ok ( DataType :: Int32 ) ,
1872+ SQLDataType :: BigInt ( _ ) => Ok ( DataType :: Int64 ) ,
18721873 SQLDataType :: Float ( _) | SQLDataType :: Real => Ok ( DataType :: Float64 ) ,
18731874 SQLDataType :: Double => Ok ( DataType :: Float64 ) ,
18741875 SQLDataType :: Char ( _) | SQLDataType :: Varchar ( _) => Ok ( DataType :: Utf8 ) ,
0 commit comments