File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -860,7 +860,8 @@ fn match_window_definitions(
860
860
if let SelectItem :: ExprWithAlias { expr, alias : _ }
861
861
| SelectItem :: UnnamedExpr ( expr) = proj
862
862
{
863
- let result = visit_expressions_mut ( expr, |expr| {
863
+ let mut err = None ;
864
+ visit_expressions_mut ( expr, |expr| {
864
865
if let SQLExpr :: Function ( f) = expr {
865
866
if let Some ( WindowType :: NamedWindow ( _) ) = & f. over {
866
867
for NamedWindowDefinition ( window_ident, window_expr) in
@@ -881,18 +882,18 @@ fn match_window_definitions(
881
882
}
882
883
// All named windows must be defined with a WindowSpec.
883
884
if let Some ( WindowType :: NamedWindow ( ident) ) = & f. over {
884
- return ControlFlow :: Break ( DataFusionError :: Plan ( format ! (
885
+ err = Some ( DataFusionError :: Plan ( format ! (
885
886
"The window {ident} is not defined!"
886
887
) ) ) ;
888
+ return ControlFlow :: Break ( ( ) ) ;
887
889
}
888
890
}
889
891
}
890
892
ControlFlow :: Continue ( ( ) )
891
893
} ) ;
892
- match result {
893
- ControlFlow :: Continue ( _) => ( ) ,
894
- ControlFlow :: Break ( err) => return Err ( err) ,
895
- } ;
894
+ if let Some ( err) = err {
895
+ return Err ( err) ;
896
+ }
896
897
}
897
898
}
898
899
Ok ( ( ) )
Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ const SQLITE_PREFIX: &str = "sqlite";
53
53
54
54
pub fn main ( ) -> Result < ( ) > {
55
55
tokio:: runtime:: Builder :: new_multi_thread ( )
56
- . thread_stack_size ( 4 * 1024 * 1024 )
57
56
. enable_all ( )
58
57
. build ( ) ?
59
58
. block_on ( run_tests ( ) )
You can’t perform that action at this time.
0 commit comments