File tree Expand file tree Collapse file tree 2 files changed +181
-173
lines changed Expand file tree Collapse file tree 2 files changed +181
-173
lines changed Original file line number Diff line number Diff line change @@ -696,9 +696,9 @@ impl dyn PlanNode {
696
696
}
697
697
}
698
698
699
- const PLAN_DEPTH_THRESHOLD : usize = 256 ;
699
+ const PLAN_DEPTH_THRESHOLD : usize = 30 ;
700
700
const PLAN_TOO_DEEP_NOTICE : & str = "The plan is too deep. \
701
- Consider rewriting the query to simplify it if you encounter any issues.";
701
+ Consider simplifying or splitting the query if you encounter any issues.";
702
702
703
703
impl dyn PlanNode {
704
704
/// Serialize the plan node and its children to a stream plan proto.
@@ -710,7 +710,7 @@ impl dyn PlanNode {
710
710
state : & mut BuildFragmentGraphState ,
711
711
) -> SchedulerResult < StreamPlanPb > {
712
712
recursive:: tracker!( ) . recurse ( |t| {
713
- if t. depth ( ) > PLAN_DEPTH_THRESHOLD {
713
+ if t. depth ( ) == PLAN_DEPTH_THRESHOLD {
714
714
notice_to_user ( PLAN_TOO_DEEP_NOTICE ) ;
715
715
}
716
716
@@ -762,7 +762,7 @@ impl dyn PlanNode {
762
762
/// (for testing).
763
763
pub fn to_batch_prost_identity ( & self , identity : bool ) -> SchedulerResult < BatchPlanPb > {
764
764
recursive:: tracker!( ) . recurse ( |t| {
765
- if t. depth ( ) > PLAN_DEPTH_THRESHOLD {
765
+ if t. depth ( ) == PLAN_DEPTH_THRESHOLD {
766
766
notice_to_user ( PLAN_TOO_DEEP_NOTICE ) ;
767
767
}
768
768
You can’t perform that action at this time.
0 commit comments