org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total42,830 of 67,01136%5,720 of 7,93927%4,1725,9698,42713,8518901,98821248
DecomposeRepeatWithPreAggregation1,3091097%14042%9399253274202601
VariantSubPathPruning.VariantSubPathReplacer1,25534421%1163422%7795225295132001
PullUpJoinFromUnionAll1,093685%12685%7683223242101601
SlotTypeReplacer1,06860836%1216334%90128218357163601
AccessPathExpressionCollector1,05842128%1404423%104130204279263801
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0290%1080%6767206206131311
OrExpansion1,00712410%72810%6068157183222801
PullUpProjectExprUnderTopN96219416%1463217%100116190235202701
NestedColumnPruning.DataTypeAccessTree91319017%1402615%87101176223101801
SaltJoin775435%9565%6267151159121601
AggScalarSubQueryToWindowFunction7379411%7933%7582129148354101
NestedColumnPruning7121,31364%16516149%11219618848173301
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
PullUpPredicates68560246%925135%71120127237184601
SplitMultiDistinctStrategy6700%420%30301131139911
PushDownAggThroughJoin6700%880%6767127127232311
AccessPathPlanCollector66835134%923628%538314321261901
PushDownVirtualColumnsIntoOlapScan65211414%11243%7984137156212601
JoinExtractOrFromCaseWhen6248712%107119%667113615881201
DistinctAggregateRewriter5916610%10443%596713815461301
PushDownProject58219525%581014%414911916981501
PushDownFilterThroughSetOperation4862%580%373910611181001
MergeAggregate483387%580%4649102113172001
StatsDerive47828337%691719%6072105170202901
AdjustNullable47794266%7510157%571148727642601
PushDownTopNThroughJoin473316%460%373993104131501
PushDownAggWithDistinctThroughJoinOneSide465275%600%43458596131501
PushDownAggThroughJoinOnPkFk45912321%73910%47558711771401
RewriteSearchToSlots449296%560%3539939971101
SumLiteralRewrite43710018%481220%32418110851101
PushDownScoreTopNIntoOlapScan4315611%822%5460100116121801
MergePercentileToArray4125010%32411%212675894801
PushDownTopNDistinctThroughJoin406419%460%3335768891101
PushCountIntoUnionAll3997014%4959%37427996101501
ConstantPropagation38295871%8811456%661248829522301
SetPreAggStatus.SetOlapScanPreAgg34218234%542027%3644661053701
PushDownJoinOnAssertNumRows3314311%5158%323772865901
EliminateOuterJoin326257%543%3639636881101
PushDownLimitDistinctThroughJoin3253710%360%242641525701
InferPredicates32431549%532834%38566012521401
InApplyToJoin3133%340%192153562401
PushDownExpressionsInHashCondition3055615%13318%23286378152001
PushDownEncodeSlot304257%424%273058665801
ExtractAndNormalizeWindowExpression294175%280%25286671111401
PushDownEncodeSlot.PushDownContext2920%300%212156566611
PushDownLimit29110326%228%1923457161001
LimitAggToTopNAgg29030551%512936%43585212571801
AddProjectForVolatileExpression29014132%341022%223159982901
ReorderJoin28553665%375961%36615717431301
EliminateEmptyRelation27034956%553337%33604713401601
PushDownUnnestInProject2704113%2939%172249562601
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
EliminateGroupBy24311431%28617%172435702701
MultiJoin2424214%200%21254150111501
MaxMinFilterPushDown2425%480%293144485701
EliminateJoinByFK2367724%22621%1724446051001
PushProjectIntoUnion2365%320%192145503501
PushDownVectorTopNIntoOlapScan23210230%40816%243156772701
TransposeSemiJoinLogicalJoinProject2312810%340%27293545101201
ColumnPruning23074376%317771%25814821532701
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker2270%460%33333838101011
SimplifyWindowExpression2192911%260%161950573601
NormalizeOlapTableStreamScan.OlapTableStreamScanReplacer2172%380%222344453401
PushDownFilterIntoSchemaScan207208%420%262942475801
ConvertOuterJoinToAntiJoin2056122%3138%212635485901
CTEInliner19921451%292142%2440348831501
EliminateGroupByKeyByUniform19912037%271128%172441661501
ForeignKeyContext19321252%241842%26433479102201
OperativeColumnDerive18919150%232754%1636357141101
PushDownTopNThroughWindow1872511%260%171946524601
UnequalPredicateInfer.InferenceGraph1791,39588%5818876%491463826322301
DistinctAggStrategySelector1779234%4036%232842581601
RewriteSimpleAggToConstantRule16622957%373145%314341983901
ExistsApplyToJoin1667%80%91128315701
PullUpProjectUnderTopN165189%160%121427334601
PruneOlapScanPartition16231065%373750%28473311611001
PruneFileScanPartition1628%120%111333375701
ReduceAggregateChildOutputRows1611910%293%161925311401
RewriteCteChildren15643473%192556%16362711811401
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15515449%222250%163133632901
PushDownFilterThroughProject15414147%20828%172336704901
EliminateFilter1534121%228%151832403601
UnCorrelatedApplyAggregateFilter1533518%100%6830401301
VariantSubPathPruning.VariantSubPathCollector15115350%171750%132528633801
EliminateOrderByKey14817053%181647%142334752601
PushDownProject.PushdownProjectHelper1487232%19726%131835542501
TransposeSemiJoinLogicalJoin1463217%253%162020293701
PushDownDistinctThroughJoin1440%200%181827278811
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1420%200%21213232111111
PullUpCorrelatedFilterUnderApplyAggregateProject1403921%120%81028352401
PushDownLimitDistinctThroughUnion1391912%80%91121275701
LogicalResultSinkToShortCircuitPointQuery1376532%21725%182323416901
SkewJoin13513449%321430%222829600501
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
DistinctWindowExpression1307%220%131531352401
PushDownFilterThroughAggregation1238%160%101227302401
UnCorrelatedApplyProjectFilter1212014%40%5723293501
ProjectOtherJoinConditionForNestedLoopJoin1202517%14422%91325321401
MergeSetOperations1169845%17729%131924482701
ExtractSingleTableExpressionFromDisjunction11427770%192152%1331299001101
PushProjectThroughUnion11420664%141653%112420651901
MergeOneRowRelationIntoUnion1122216%120%71024281401
PushDownTopNThroughUnion11012%80%7918233501
PullUpProjectUnderLimit1062820%820%81115213601
NormalizeToSlot.NormalizeWithoutWindowFunction1062015%1611%91225301301
PushDownFilterThroughPartitionTopN10610%140%81024271301
VariantSubPathPruning.Context10516260%111557%102220582901
EliminateGroupByKey10416260%151142%122116512801
PushDownMatchProjectionAsVirtualColumn10411953%141246%112220482901
DecoupleEncodeDecode1032116%1810%111422281401
PushFilterInsideJoin9712%80%7921263501
PushDownFilterThroughWindow9411%120%81021242401
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker940%140%151513138811
InferPredicateByReplace.ReplaceAnalyzer898%120%7816181201
NormalizeSort863126%5337%4824321401
InferPredicateByReplace.PredicatesCollector8111558%141041%1226123331401
PullUpProjectUnderApply812221%120%81010172401
CreatePartitionTopNFromWindow8112%120%7915181301
PushDownFilterThroughJoin8018369%221438%142319610501
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer790%100%9915154411
PushDownFilterThroughRepeat7714%80%6819222401
CountDistinctRewrite715945%161038%121916282601
SetPreAggStatus7017671%141856%1327175731101
ScalarApplyToJoin705845%1016%91314263701
CollectPredicateOnScan702727%712%5820281401
SumLiteralRewrite.SumInfo700%100%8816163311
AddProjectForVolatileExpression.JoinRewrite696146%516%3618310301
PullUpProjectExprUnderTopN.Replacer680%140%101017173311
PushDownFilterThroughGenerate661720%80%6916202501
PullUpCteAnchor628256%7330%51112301601
UnCorrelatedApplyFilter6220%0%2414171301
TransposeSemiJoinAgg612024%40%799165701
PruneEmptyPartition607053%15937%111715321501
CheckMultiDistinct606953%191136%111912270401
MergePercentileToArray.DistinctAndExpr590%100%9913134411
MergeSetOperationsExcept582429%0%359142401
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
AddProjectForVolatileExpression.OneRowRelationRewrite542934%516%3612200301
MergeGenerates5422%0%469133501
EliminateAssertNumRows538461%201339%152214330501
MergeLimits532834%625%7109153601
EliminateAggregate5220%80%7910133501
MergeTopNs5218%0%2412161301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}525%80%6716172301
CheckDataTypes.ExpressionChecker505050%6650%5109230401
EliminateSortUnderApply502735%n/a2410162401
CheckAndStandardizeWindowFunctionAndFrame5020%n/a2412152401
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
PushDownVirtualColumnsIntoOlapScan.SkipResult480%60%77884411
SimplifyAggGroupBy477059%15731%9177260601
PushDownFilterThroughSort4721%0%46583501
QueryPartitionCollector467862%8433%5912320301
EliminateSemiJoin462030%80%71011182501
SkipSimpleExprs4512172%111557%8176331401
PushDownJoinOtherCondition4510870%81260%8178320701
CollectLimitAboveConsumer442536%n/a359163501
InferInPredicateFromOr4210972%6857%41310381601
VariantSubPathPruning427363%14836%101513300401
PullUpProjectExprUnderTopN.Collector424752%5550%588191301
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker420%0%77886611
ExprIdRewriter392640%712%469150201
AddDefaultLimit388869%12840%10189281801
SimplifyEncodeDecode374655%4660%387210301
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
PullUpProjectExprUnderTopN.PullUpInfo363146%n/a346143401
PullUpProjectExprUnderTopN.CollectorContext362641%0%568144501
AddProjectForVolatileExpression.GenerateRewrite3628%0%24691301
CountLiteralRewrite3417083%62480%5227430701
CheckMatchExpression347869%81055%7144220501
NormalizeToSlot.NormalizeToSlotContext3320686%91967%82585511101
InferJoinNotNull3315282%81260%6155340501
EliminateJoinByUnique331835%40%367121401
CheckScoreUsage3211678%8850%92074031201
EliminateSortUnderSubqueryOrView302141%n/a24082401
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
PruneOlapScanTablet2818486%111963%9206430501
EliminateSort2811780%61266%6164300701
EliminateConstHashJoinCondition2811079%131350%11196330601
EliminateNotNull2715785%31986%3177471601
SetPreAggStatus.PreAggInfoContext2711380%100%3107343901
TransposeSemiJoinLogicalJoinProject.ContainsType270%n/a11221111
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2610%40%34891201
EliminateJoinCondition256471%8433%8122182601
EliminateNullAwareLeftAntiJoin2528%0%357102401
ExprIdRewriter.ReplaceRule244766%100%274192601
ConvertInnerOrCrossJoin244163%8433%8120122601
EliminateLimitUnderApply2436%0%247101301
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext240%n/a11771111
CheckDataTypes218580%1191%1113250501
MultiDistinctFunctionStrategy210%0%44773311
SemiJoinCommute202858%50%58083601
CTEInline1822992%41881%4192480801
AccessPathExpressionCollector.AccessPathBuilder182760%n/a385143801
PushDownAliasThroughJoin1728294%72175%73025501601
AdjustConjunctsReturnType9886%466%4101252701
AddProjectForVolatileExpression.FilterRewrite3068%50%143100301
InitJoinOrder12790%111354%10174320501
ForeignKeyContext.new DefaultPlanVisitor() {...}8486%4450%391210501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
NestedColumnPruning.OffsetPathRewrite2769%n/a373113701
AccessPathInfo2163%n/a376143701
AddProjectForVolatileExpression.JoinRewriteResult0%n/a11551111
InferPredicateByReplace26796%92976%9283661901
CheckPrivileges21395%41881%5192521801
AccessPathExpressionCollector.CollectAccessPathResult5083%3562%4112141701
AccessPathExpressionCollector.CollectorContext1762%n/a344103401
DistinctAggregateRewriter.DistinctDistributionInfo0%n/a11441111
InferAggNotNull20096%73784%7303450801
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
EliminateOrderByConstant4985%3562%372160301
RecordPlanForMvPreRewrite4785%100%063180501
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
CheckRestorePartition3884%466%262100301
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree1773%50%13160201
FindHashConditionForJoin7994%3350%261240301
ColumnPruning.KeyColumnCollector6395%10100%181171301
MergeProjects4195%50%151100401
PushDownTopNDistinctThroughUnion14099%787%1100240601
CollectFilterAboveConsumer6398%583%171160401
InferFilterNotNull120100%16100%0130270501
InferSetOperatorDistinct84100%1392%1140150701
LimitSortToTopN75100%n/a040200401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
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
AddProjectForJoin23100%n/a03040301
OrExpansion.OrExpandsionContext17100%n/a01050101
ColumnPruning.PruneContext100%n/a01060101
CTEInliner.InlineResult100%n/a03060301
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
InlineLogicalView100%n/a02020201
NormalizeOlapTableStreamScan100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
ClearContextStatus100%n/a02030201
StatsDerive.DeriveContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101