Skip to content

Commit 81e82b0

Browse files
author
yurunjie
committed
make starts_with private
1 parent 39003c2 commit 81e82b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

datafusion/functions/src/string/starts_with.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ use std::sync::Arc;
2020

2121
use arrow::array::ArrayRef;
2222
use arrow::datatypes::DataType;
23-
use datafusion_expr::binary::{binary_to_string_coercion, string_coercion};
2423
use datafusion_expr::simplify::{ExprSimplifyResult, SimplifyInfo};
24+
use datafusion_expr::type_coercion::binary::{
25+
binary_to_string_coercion, string_coercion,
26+
};
2527

2628
use crate::utils::make_scalar_function;
2729
use datafusion_common::types::logical_string;
@@ -34,7 +36,7 @@ use datafusion_macros::user_doc;
3436

3537
/// Returns true if string starts with prefix.
3638
/// starts_with('alphabet', 'alph') = 't'
37-
pub fn starts_with(args: &[ArrayRef]) -> Result<ArrayRef> {
39+
fn starts_with(args: &[ArrayRef]) -> Result<ArrayRef> {
3840
if let Some(coercion_data_type) =
3941
string_coercion(args[0].data_type(), args[1].data_type()).or_else(|| {
4042
binary_to_string_coercion(args[0].data_type(), args[1].data_type())

0 commit comments

Comments
 (0)