File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -566,7 +566,7 @@ impl PySessionContext {
566566
567567 ( array. schema ( ) . as_ref ( ) . to_owned ( ) , vec ! [ array] )
568568 } else {
569- return Err ( crate :: errors :: PyDataFusionError :: Common (
569+ return Err ( PyDataFusionError :: Common (
570570 "Expected either a Arrow Array or Arrow Stream in from_arrow()." . to_string ( ) ,
571571 ) ) ;
572572 } ;
@@ -730,7 +730,7 @@ impl PySessionContext {
730730 ) -> PyDataFusionResult < ( ) > {
731731 let delimiter = delimiter. as_bytes ( ) ;
732732 if delimiter. len ( ) != 1 {
733- return Err ( crate :: errors :: PyDataFusionError :: PythonError ( py_value_err (
733+ return Err ( PyDataFusionError :: PythonError ( py_value_err (
734734 "Delimiter must be a single character" ,
735735 ) ) ) ;
736736 }
@@ -984,7 +984,7 @@ impl PySessionContext {
984984 ) -> PyDataFusionResult < PyDataFrame > {
985985 let delimiter = delimiter. as_bytes ( ) ;
986986 if delimiter. len ( ) != 1 {
987- return Err ( crate :: errors :: PyDataFusionError :: PythonError ( py_value_err (
987+ return Err ( PyDataFusionError :: PythonError ( py_value_err (
988988 "Delimiter must be a single character" ,
989989 ) ) ) ;
990990 } ;
Original file line number Diff line number Diff line change 1515// specific language governing permissions and limitations
1616// under the License.
1717
18+ use std:: collections:: HashMap ;
19+
1820use datafusion:: common:: { exec_err, plan_datafusion_err, DataFusionError } ;
1921use datafusion:: logical_expr:: sqlparser:: dialect:: dialect_from_str;
2022use datafusion:: sql:: sqlparser:: dialect:: Dialect ;
2123use datafusion:: sql:: sqlparser:: parser:: Parser ;
2224use datafusion:: sql:: sqlparser:: tokenizer:: { Token , Tokenizer } ;
23- use std:: collections:: HashMap ;
2425
2526fn tokens_from_replacements (
2627 placeholder : & str ,
You can’t perform that action at this time.
0 commit comments