Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jayzhan211 committed Feb 7, 2025
1 parent 7a78a6d commit 2f8c2ad
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions datafusion/expr-common/src/signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ impl TypeSignature {
TypeSignature::Comparable(num) => {
vec![format!("Comparable({num})")]
}
TypeSignature::Coercible(param_types) => {
vec![Self::join_types(param_types, ", ")]
TypeSignature::Coercible(coercions) => {
vec![Self::join_types(coercions, ", ")]
}
TypeSignature::Exact(types) => {
vec![Self::join_types(types, ", ")]
Expand Down Expand Up @@ -637,7 +637,7 @@ impl Signature {
}

/// Target coerce types in order
pub fn coercible_v2(target_types: Vec<Coercion>, volatility: Volatility) -> Self {
pub fn coercible(target_types: Vec<Coercion>, volatility: Volatility) -> Self {
Self {
type_signature: TypeSignature::Coercible(target_types),
volatility,
Expand Down
2 changes: 1 addition & 1 deletion datafusion/functions/src/string/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl Default for AsciiFunc {
impl AsciiFunc {
pub fn new() -> Self {
Self {
signature: Signature::coercible_v2(
signature: Signature::coercible(
vec![Coercion {
desired_type: TypeSignatureClass::Native(logical_string()),
allowed_casts: vec![TypeSignatureClass::Native(logical_binary())],
Expand Down
2 changes: 1 addition & 1 deletion datafusion/functions/src/string/repeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Default for RepeatFunc {
impl RepeatFunc {
pub fn new() -> Self {
Self {
signature: Signature::coercible_v2(
signature: Signature::coercible(
vec![
Coercion {
desired_type: TypeSignatureClass::Native(logical_string()),
Expand Down

0 comments on commit 2f8c2ad

Please sign in to comment.