Skip to content

Commit 6864d80

Browse files
authored
Minor build errors (#1325)
1 parent db3c6a0 commit 6864d80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ impl PySessionContext {
445445
.collect::<HashMap<_, _>>();
446446

447447
let state = self.ctx.state();
448-
let dialect = state.config().options().sql_parser.dialect.as_str();
448+
let dialect = state.config().options().sql_parser.dialect.as_ref();
449449

450450
if !param_strings.is_empty() {
451451
query = replace_placeholders_with_strings(&query, dialect, param_strings)?;

src/dataframe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ impl PyDataFrame {
548548
self.df
549549
.as_ref()
550550
.parse_sql_expr(&expr)
551-
.map(|e| PyExpr::from(e))
551+
.map(PyExpr::from)
552552
.map_err(PyDataFusionError::from)
553553
}
554554

0 commit comments

Comments
 (0)