Skip to content

Commit d2b5c96

Browse files
committed
fmt
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
1 parent 62a4ef5 commit d2b5c96

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

datafusion/sql/src/expr/mod.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,8 +1045,13 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
10451045
}
10461046
}
10471047
// expr[start, stop, stride] ==> array_slice(expr, start, stop, stride)
1048-
GetFieldAccess::ListRange { start, stop, stride } => {
1049-
if let Some(udf) = self.context_provider.get_function_meta("array_slice") {
1048+
GetFieldAccess::ListRange {
1049+
start,
1050+
stop,
1051+
stride,
1052+
} => {
1053+
if let Some(udf) = self.context_provider.get_function_meta("array_slice")
1054+
{
10501055
Ok(Expr::ScalarFunction(ScalarFunction::new_udf(
10511056
udf,
10521057
vec![expr, *start, *stop, *stride],

0 commit comments

Comments
 (0)