org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total37,887 of 61,07137%4,773 of 6,75129%3,5315,2647,30812,4497911,87717232
SlotTypeReplacer1,43035820%1473720%107130294377253801
VariantSubPathPruning.VariantSubPathReplacer1,13845928%1064429%6895209297112001
PullUpJoinFromUnionAll1,098685%12685%7683223242101601
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
DecomposeRepeatWithPreAggregation1,0051069%9444%6571191212162201
OrExpansion91512411%60811%5462139165222801
SaltJoin912394%9366%6369172179141801
AccessPathExpressionCollector78411813%9155%7179159182253101
AggScalarSubQueryToWindowFunction7379411%7933%7582129148354101
SplitMultiDistinctStrategy7050%500%3535120120101011
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
NestedColumnPruning.DataTypeAccessTree68215918%651518%455513316991501
PushDownVirtualColumnsIntoOlapScan66111414%11443%8186140159222701
PullUpPredicates66059847%835037%66115120230184601
PushDownAggThroughJoin653415%880%6567107127212301
AccessPathPlanCollector63221425%802221%486613417671501
JoinExtractOrFromCaseWhen6228311%106108%657013515681201
PushDownProject56815921%57913%404711715881401
AdjustNullable50295265%7610257%571168928042701
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
MergeAggregate483387%580%4649102113172001
StatsDerive47629438%671720%5973107173213101
PushDownAggThroughJoinOnPkFk45912321%73910%47558711771401
DeferMaterializeTopNResult45056355%463442%529379209195301
MergePercentileToArray4125010%32411%212675894801
PushDownTopNDistinctThroughJoin406419%460%3335768891101
PushCountIntoUnionAll3997014%4959%37427996101501
SumLiteralRewrite39810020%381224%2635709741001
ConstantPropagation37695871%8611457%641238629322301
PushDownJoinOnAssertNumRows3575312%52813%3240829751001
RewriteSearchToSlots348297%400%2630737961001
SetPreAggStatus.SetOlapScanPreAgg34218234%542027%3644661053701
DistinctAggregateRewriter3396616%5646%3341728841101
PushDownLimitDistinctThroughJoin3253710%360%242641525701
ColumnPruning31673769%437563%33867023952701
EliminateEmptyRelation31428547%542430%33556613201601
InApplyToJoin3133%340%192153562401
InferPredicates30431450%492634%34535511921401
PushDownEncodeSlot304257%424%273058665801
ExtractAndNormalizeWindowExpression300175%280%25286671111401
PushDownEncodeSlot.PushDownContext2980%300%212156566611
PushDownLimit29110326%228%1923457161001
ReorderJoin28553265%355761%34595717331301
PushDownUnnestInProject2704113%2939%172249562601
LimitAggToTopNAgg26133456%473341%41584612551801
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
EliminateGroupBy24311431%28617%172435702701
MultiJoin2424214%200%21254150111501
MaxMinFilterPushDown242155%480%293144485701
EliminateJoinByFK2367724%22621%1724446051001
TransposeSemiJoinLogicalJoinProject2312810%340%27293545101201
NestedColumnPruning23033058%222250%1629481221701
PushProjectIntoUnion229156%320%192143483501
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker2270%460%33333838101011
PushDownTopNThroughJoin22110632%27310%1926386331001
SimplifyWindowExpression2192911%260%161950573601
PushDownFilterThroughSetOperation20920349%301228%2131418631001
PushDownVectorTopNIntoOlapScan20612738%371122%203153770701
ConvertOuterJoinToAntiJoin2016123%2939%202534475901
EliminateGroupByKeyByUniform19911937%271128%172441661501
PushDownTopNThroughWindow1872511%260%171946524601
UnequalPredicateInfer.InferenceGraph1861,38988%6018675%501463826322301
ForeignKeyContext18519651%201441%24413271122401
RewriteCteChildren18234665%221642%17323410521301
PushDownScoreTopNIntoOlapScan1796125%23311%1623375441001
DistinctAggStrategySelector1779234%4036%232842581601
ReduceAggregateChildOutputRows1671910%293%161925311401
ExistsApplyToJoin1667%80%91128315701
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1660%200%21213232111111
PruneFileScanPartition161158%120%111333375701
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15515449%222250%163133632901
PushDownFilterThroughProject15414147%20828%172336704901
EliminateFilter1534121%228%151832403601
UnCorrelatedApplyAggregateFilter1533518%100%6830401301
PushDownProject.PushdownProjectHelper1526830%20623%141836542501
EliminateOrderByKey14617254%151955%112332752601
TransposeSemiJoinLogicalJoin1463217%253%162020293701
PushDownDistinctThroughJoin1440%200%181827278811
PullUpCorrelatedFilterUnderApplyAggregateProject1403921%120%81028352401
PruneOlapScanPartition13824163%282648%193528971801
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
ProjectOtherJoinConditionForNestedLoopJoin1312717%18418%121627352501
DistinctWindowExpression1307%220%131531352401
PushDownLimitDistinctThroughUnion1292918%712%71121273701
PullUpProjectUnderTopN1282214%80%71021273601
PushDownFilterThroughAggregation1238%160%101227302401
UnCorrelatedApplyProjectFilter1212014%40%5723293501
AddProjectForUniqueFunction1179444%9535%61219420501
SkewJoin11613153%182052%122424530501
MergeSetOperations1169845%17729%131924482701
ExtractSingleTableExpressionFromDisjunction11427770%192152%1331299001101
MergeOneRowRelationIntoUnion1122216%120%71024281401
PushProjectThroughUnion11020665%141653%112419641901
PushDownTopNThroughUnion1101512%80%7918233501
PushFilterInsideJoin10711%120%91122273501
InferPredicateByReplace.ReplaceAnalyzer1076%120%7816181201
NormalizeToSlot.NormalizeWithoutWindowFunction1062015%1611%91225301301
VariantSubPathPruning.Context10516260%111557%102220582901
PushDownExpressionsInHashCondition10426371%9743%1528207892001
EliminateGroupByKey10416260%151142%122116512801
DecoupleEncodeDecode1032116%1810%111422281401
PushDownFilterThroughPartitionTopN10310%120%7924271301
VariantSubPathPruning.VariantSubPathCollector10220266%112367%102519632801
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker940%140%151513138811
CountDistinctRewrite894131%20623%131918282601
PushDownFilterThroughWindow8712%80%6820232401
PullUpProjectUnderApply812221%120%81010172401
CreatePartitionTopNFromWindow8112%120%7915181301
PullUpProjectUnderLimit792221%0%4710153601
InferInPredicateFromOr777449%10428%71318382601
PushDownFilterThroughRepeat7714%80%6819222401
PushDownFilterThroughJoin7518471%191747%122317610501
CheckMultiDistinct736245%22826%131914270401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer710%80%8813134411
ScalarApplyToJoin705845%1016%91314263701
CollectPredicateOnScan702727%712%5820281401
SumLiteralRewrite.SumInfo700%100%8816163311
AddProjectForUniqueFunction.JoinRewrite686147%516%3617310301
PushDownFilterThroughGenerate631721%60%5815192501
EliminateOuterJoin6226480%281433%2132116421101
UnCorrelatedApplyFilter621620%0%2414171301
PushDownFilterIntoSchemaScan6116673%271535%172911471801
TransposeSemiJoinAgg612024%40%799165701
MergePercentileToArray.DistinctAndExpr590%100%9913134411
PruneEmptyPartition585850%12633%81414291501
MergeSetOperationsExcept582429%0%359142401
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
CheckAndStandardizeWindowFunctionAndFrame5519%n/a3513163501
AddProjectForUniqueFunction.OneRowRelationRewrite542934%516%3612190301
MergeGenerates541622%0%469133501
EliminateAssertNumRows538461%201339%152214330501
SetPreAggStatus5216175%61672%822114831101
EliminateSemiJoin522027%80%71011182501
EliminateAggregate5220%80%7910133501
EliminateSortUnderApply502735%n/a2410162401
AddProjectForUniqueFunction.AggregateRewrite494145%325%2510210301
MergeTopNs4820%0%2412161301
PushDownVirtualColumnsIntoOlapScan.SkipResult480%60%77884411
SimplifyAggGroupBy477059%15731%9177260601
PushDownFilterThroughSort4721%0%46583501
InferPredicateByReplace.PredicatesCollector4615076%101458%92693321401
SkipSimpleExprs4512172%111557%8176331401
OperativeColumnDerive4438289%75789%742108001001
QueryPartitionCollector438766%6650%4911320301
MergeLimits433846%5337%5106151601
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker420%0%77886611
PushDownJoinOtherCondition4010572%61266%6167300701
ExprIdRewriter392640%712%469150201
EliminateConstHashJoinCondition3711074%131350%11196330601
SimplifyEncodeDecode374655%4660%387210301
AddProjectForUniqueFunction.HavingRewrite3727%0%24691301
AddProjectForUniqueFunction.GenerateRewrite3628%0%24691301
CountLiteralRewrite3417083%72376%6227430701
NormalizeToSlot.NormalizeToSlotContext3320686%91967%82585511101
CheckDataTypes.ExpressionChecker336767%4866%3106230401
CheckScoreUsage3212579%8850%92074031201
InferJoinNotNull3111178%5758%4107300401
AddDefaultLimit309676%11945%9188281801
EliminateSortUnderSubqueryOrView302141%n/a24082401
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
PruneOlapScanTablet2818486%111963%9206430501
LogicalResultSinkToShortCircuitPointQuery2817486%72175%8234411901
EliminateSort2811780%61266%6164300701
EliminateNotNull2715785%31986%3177471601
SetPreAggStatus.PreAggInfoContext2711380%100%3107343901
AccessPathExpressionCollector.AccessPathBuilder271840%n/a588145801
TransposeSemiJoinLogicalJoinProject.ContainsType270%n/a11221111
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2610%40%34891201
EliminateJoinCondition256471%8433%8122182601
EliminateNullAwareLeftAntiJoin2528%0%357102401
ConvertInnerOrCrossJoin244163%8433%8120122601
EliminateLimitUnderApply2436%0%247101301
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext240%n/a11771111
VariantSubPathPruning237676%81055%6139260401
CheckMatchExpression236373%7750%5111170401
PullUpCteAnchor2212284%4660%4113300601
CheckDataTypes218580%1191%1113250501
MultiDistinctFunctionStrategy210%0%44773311
InitJoinOrder2012386%101254%9166340501
EliminateJoinByUnique203160%325%264120401
AccessPathExpressionCollector.CollectAccessPathResult184973%4450%5112141701
PushDownAliasThroughJoin1728294%62278%63025501601
CTEInline1620992%1688%2162430701
AdjustConjunctsReturnType159886%466%4101252701
CheckRestorePartition153871%466%262100301
AddProjectForUniqueFunction.FilterRewrite3068%50%143100301
ForeignKeyContext.new DefaultPlanVisitor() {...}8486%4450%391210501
AddProjectForUniqueFunction.ProjectRewrite3069%50%14180301
InferPredicateByReplace26896%83078%8283661901
CheckPrivileges17093%31583%4162421701
ExprIdRewriter.ReplaceRule2165%n/a14291401
AccessPathExpressionCollector.CollectorContext1762%n/a344103401
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
EliminateOrderByConstant4985%3562%372160301
RecordPlanForMvPreRewrite4785%100%063180501
InferSetOperatorDistinct10793%1688%2182220901
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree1773%50%13160201
FindHashConditionForJoin7994%3350%261240301
ColumnPruning.KeyColumnCollector6395%10100%181171301
MergeProjects4195%50%151100401
PushDownTopNDistinctThroughUnion14099%787%1100240601
InferAggNotNull167100%32187%32403101201
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
LimitSortToTopN75100%n/a040200401
CollectFilterAboveConsumer60100%4100%060140401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
SemiJoinCommute48100%375%18080601
SplitLimit43100%100%05080401
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
CollectCteConsumerOutput35100%n/a04070401
BuildAggForUnion33100%100%05050401
OperativeColumnDerive.DeriveContext31100%100%050100401
MergeFilters31100%n/a03070301
MergeProjectable30100%n/a03060301
UnequalPredicateInfer.InferenceGraph.Relation27100%n/a01050101
ClearContextStatus25100%n/a02060201
AddProjectForJoin23100%n/a03040301
OrExpansion.OrExpandsionContext17100%n/a01050101
ColumnPruning.PruneContext16100%n/a01060101
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
InlineLogicalView100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
StatsDerive.DeriveContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101