File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -843,7 +843,6 @@ RecordSource* Optimizer::compile(BoolExprNodeStack* parentStack)
843
843
844
844
RiverList rivers, dependentRivers, specialRivers;
845
845
846
- bool semiJoin = false ;
847
846
bool innerSubStream = false ;
848
847
849
848
for (auto node : rse->rse_relations )
@@ -852,13 +851,9 @@ RecordSource* Optimizer::compile(BoolExprNodeStack* parentStack)
852
851
fb_assert (aggregate == rse->rse_aggregate );
853
852
854
853
const auto subRse = nodeAs<RseNode>(node);
855
- if (subRse && subRse->isSemiJoined ())
856
- {
857
- fb_assert (rse->rse_jointype == blr_inner);
858
- semiJoin = true ;
859
- }
860
- else
861
- fb_assert (!semiJoin);
854
+
855
+ const bool semiJoin = (subRse && subRse->isSemiJoined ());
856
+ fb_assert (!semiJoin || rse->rse_jointype == blr_inner);
862
857
863
858
// Find the stream number and place it at the end of the bedStreams array
864
859
// (if this is really a stream and not another RseNode)
You can’t perform that action at this time.
0 commit comments