Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: jayzhan211 <[email protected]>
  • Loading branch information
jayzhan211 committed May 4, 2024
1 parent 1f2503a commit ab2622d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions datafusion/sql/src/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,8 +1045,13 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
}
}
// expr[start, stop, stride] ==> array_slice(expr, start, stop, stride)
GetFieldAccess::ListRange { start, stop, stride } => {
if let Some(udf) = self.context_provider.get_function_meta("array_slice") {
GetFieldAccess::ListRange {
start,
stop,
stride,
} => {
if let Some(udf) = self.context_provider.get_function_meta("array_slice")
{
Ok(Expr::ScalarFunction(ScalarFunction::new_udf(
udf,
vec![expr, *start, *stop, *stride],
Expand Down

0 comments on commit ab2622d

Please sign in to comment.