Skip to content

Commit

Permalink
upgrade type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Nov 27, 2024
1 parent ef3bcda commit 5769c31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions wren-core/core/src/mdl/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl ByPassScalarUDF {
signature: Signature::one_of(
vec![
TypeSignature::VariadicAny,
TypeSignature::Uniform(0, vec![]),
TypeSignature::NullAry,
],
Volatility::Volatile,
),
Expand Down Expand Up @@ -120,7 +120,7 @@ impl ByPassAggregateUDF {
signature: Signature::one_of(
vec![
TypeSignature::VariadicAny,
TypeSignature::Uniform(0, vec![]),
TypeSignature::NullAry,
],
Volatility::Volatile,
),
Expand Down Expand Up @@ -167,7 +167,7 @@ impl ByPassWindowFunction {
signature: Signature::one_of(
vec![
TypeSignature::VariadicAny,
TypeSignature::Uniform(0, vec![]),
TypeSignature::NullAry,
],
Volatility::Volatile,
),
Expand Down
4 changes: 1 addition & 3 deletions wren-core/core/src/mdl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,7 @@ mod test {
use crate::mdl::function::RemoteFunction;
use crate::mdl::manifest::Manifest;
use crate::mdl::{self, transform_sql_with_ctx, AnalyzedWrenMDL};
use datafusion::arrow::array::{Array, ArrayData, ArrayRef, Float64Array, Int64Array, ListArray, RecordBatch, StringArray, StructArray, TimestampNanosecondArray};
use datafusion::arrow::buffer::Buffer;
use datafusion::arrow::datatypes::{DataType, Field, Fields, TimeUnit};
use datafusion::arrow::array::{ArrayRef, Int64Array, RecordBatch, StringArray, TimestampNanosecondArray};
use datafusion::assert_batches_eq;
use datafusion::common::not_impl_err;
use datafusion::common::Result;
Expand Down

0 comments on commit 5769c31

Please sign in to comment.