Skip to content

Commit 78ecbe6

Browse files
committed
fix fmt and rebase
1 parent d303cc0 commit 78ecbe6

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

datafusion/expr/src/async_udf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ impl ScalarUDFImpl for AsyncScalarUDF {
112112
self.inner.signature()
113113
}
114114

115-
fn return_type(&self, _arg_types: &[DataType]) -> Result<DataType> {
116-
self.inner.return_type(_arg_types)
115+
fn return_type(&self, arg_types: &[DataType]) -> Result<DataType> {
116+
self.inner.return_type(arg_types)
117117
}
118118

119119
fn invoke_with_args(&self, _args: ScalarFunctionArgs) -> Result<ColumnarValue> {

datafusion/physical-expr/src/async_scalar_function.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,12 @@ impl PhysicalExpr for AsyncFuncExpr {
198198
self
199199
}
200200

201-
fn data_type(&self, _input_schema: &Schema) -> Result<DataType> {
202-
self.func.data_type(_input_schema)
201+
fn data_type(&self, input_schema: &Schema) -> Result<DataType> {
202+
self.func.data_type(input_schema)
203203
}
204204

205-
fn nullable(&self, _input_schema: &Schema) -> Result<bool> {
206-
self.func.nullable(_input_schema)
205+
fn nullable(&self, input_schema: &Schema) -> Result<bool> {
206+
self.func.nullable(input_schema)
207207
}
208208

209209
fn evaluate(&self, _batch: &RecordBatch) -> Result<ColumnarValue> {
@@ -225,4 +225,8 @@ impl PhysicalExpr for AsyncFuncExpr {
225225
func: new_func,
226226
}))
227227
}
228+
229+
fn fmt_sql(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
230+
write!(f, "{}", self.func)
231+
}
228232
}

0 commit comments

Comments
 (0)