org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total24,436 of 66,63463%3,572 of 7,83954%2,7745,9034,69313,7724561,9729245
PullUpJoinFromUnionAll1,082796%121139%7383221242101601
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0290%1080%6767206206131311
OrExpansion95817315%671316%5768145183212801
SlotTypeReplacer90677546%1068043%77129182358103601
AccessPathExpressionCollector86684649%1169444%95144167324213901
SaltJoin778435%9476%6167152160121601
PushDownAggThroughJoin6700%880%6767127127232311
VariantSubPathPruning.VariantSubPathReplacer66893158%648657%429511929552001
AggScalarSubQueryToWindowFunction63919223%671518%6182118148264101
AccessPathPlanCollector49553451%695946%418410721432001
PushDownAggWithDistinctThroughJoinOneSide469275%620%44468596131501
PushDownAggThroughJoinOnPkFk46212421%741011%47568811871401
JoinExtractOrFromCaseWhen44626537%793933%55719715851201
SumLiteralRewrite42211521%461423%31417710851101
MergePercentileToArray4125010%32411%212675894801
PushDownTopNDistinctThroughJoin410419%500%3537768891101
PushDownLimitDistinctThroughJoin339379%400%262844555701
DistinctAggregateRewriter32737753%705041%49747916931401
NestedColumnPruning.DataTypeAccessTree31962666%308072%28726620171701
PushDownEncodeSlot304257%424%273058665801
PushDownEncodeSlot.PushDownContext2920%300%212156566611
PushDownLimit29110326%228%1923457161001
PushDownJoinOnAssertNumRows2829224%401628%273759864901
AddProjectForVolatileExpression27215936%311329%203156982901
PushDownUnnestInProject2704113%2939%172249562601
MergeAggregate26325849%361833%27475911772001
PullUpPredicates2611,02679%489566%431204723764601
PushDownScoreTopNIntoOlapScan25424148%642225%47616111881801
PullUpJoinFromUnionAll.LogicalPlanComparator2370%460%292942426611
EliminateJoinByFK2367724%22621%1724446051001
MultiJoin2364816%200%1925395091501
RewriteSearchToSlots22825052%312544%2439449911101
DecomposeRepeatWithPreAggregation2251,19384%3810673%36994327462601
PruneFileScanPartition218198%200%1720444971001
InferSetOperatorDistinct21416543%552329%324736691801
PushDownFilterThroughSetOperation20929158%292950%23394411111001
InferPredicates20843167%364555%26564312521401
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker205229%460%3033343871001
PushDownTopNThroughJoin18732563%272346%21413810841501
InApplyToJoin18414243%221235%142131560401
PushDownAggThroughJoinOnPkFk.InnerJoinCluster18115445%232350%163240702901
ForeignKeyContext17722856%212150%2343317992201
LimitAggToTopNAgg17444571%345461%36623112951801
StatsDerive17159077%473945%40723017072901
ExistsApplyToJoin1667%80%91128315701
ReduceAggregateChildOutputRows1611910%293%161925311401
SetPreAggStatus.SetOlapScanPreAgg15736770%264864%2344241050701
EliminateEmptyRelation15246775%315764%22602813401601
SimplifyWindowExpression1509839%20623%121931571601
PushDownLimitDistinctThroughUnion1471911%100%101223295701
TransposeSemiJoinLogicalJoin1463217%253%162020293701
SplitMultiDistinctStrategy13554580%103276%8311811411001
EliminateGroupByKeyByUniform13418557%182052%122427661501
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PushDownTopNThroughWindow1299943%21930%162132561601
PushDownVirtualColumnsIntoOlapScan12763983%368068%34842415622601
ConstantPropagation1261,21490%4415878%361243129512301
EliminateGroupBy12423365%122264%92417700701
MaxMinFilterPushDown12113652%282041%173120480701
ReorderJoin12070185%257173%24612317421301
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1182416%17315%1721263271101
AdjustNullable1101,30992%2914783%261141727602601
PullUpProjectUnderLimit1062820%820%81115213601
PushDownFilterThroughPartitionTopN10610%140%81024271301
PushDownMatchProjectionAsVirtualColumn10411953%131350%102220482901
DecoupleEncodeDecode1032116%1810%111422281401
VariantSubPathPruning.Context9916862%91765%92220582901
PullUpProjectUnderTopN988546%9743%71415331601
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker940%140%151513138811
InferPredicateByReplace.ReplaceAnalyzer898%120%7816181201
PushDownFilterThroughProject8521071%161242%122321702901
RewriteCteChildren7751386%103477%1036911801401
PushDownExpressionsInHashCondition7728478%7956%1228147872001
PushDownFilterThroughRepeat7714%80%6819222401
DistinctWindowExpression767449%141041%101614370401
TransposeSemiJoinLogicalJoinProject7118872%201441%1629114501201
CountDistinctRewrite715945%161038%121916282601
CollectPredicateOnScan702727%712%5820281401
SumLiteralRewrite.SumInfo700%100%8816163311
AddProjectForVolatileExpression.JoinRewrite696146%516%3618310301
PullUpProjectExprUnderTopN6882192%2013887%191001418702101
CTEInliner6434984%183264%154098811501
PushDownProject6371491%185073%16491216901501
DistinctAggStrategySelector6220276%212048%172715580601
UnCorrelatedApplyFilter621620%0%2414171301
MergePercentileToArray.DistinctAndExpr590%100%9913134411
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5619577%141856%10219501501
UnequalPredicateInfer.InferenceGraph551,51996%2721989%251461326312301
PushDownFilterIntoSchemaScan5517275%241842%14298471801
NestedColumnPruning541,20395%2515986%231221829903001
EliminateOuterJoin5429784%322442%2239116821101
SkewJoin5420579%92976%82512600601
AddProjectForVolatileExpression.OneRowRelationRewrite542934%516%3612200301
ExtractSingleTableExpressionFromDisjunction5233986%63485%431129001101
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}525%80%6716172301
CollectLimitAboveConsumer512532%0%4611183501
SimplifyAggGroupBy5013773%152158%132616510801
EliminateAssertNumRows508763%181545%132213330501
MergeLimits504245%6440%6117171601
EliminateSortUnderApply502735%n/a2410162401
EliminateGroupByKey4921781%121453%92110510801
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
TransposeSemiJoinAgg483340%325%695164701
PushDownFilterThroughSort4721%0%46583501
SkipSimpleExprs4512172%111557%8176331401
NormalizeToSlot.NormalizeWithoutWindowFunction438365%9950%71210300301
ColumnPruning3993495%119789%1081521502701
AddDefaultLimit388869%12840%10189281801
QueryPartitionCollector378770%6650%4911320301
SimplifyEncodeDecode374655%4660%387210301
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
PruneOlapScanPartition3643692%155979%1347811601001
ConvertOuterJoinToAntiJoin3334291%203462%173857301101
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
ExtractAndNormalizeWindowExpression2928290%72175%92837131401
NormalizeOlapTableStreamScan2694497%218580%2173418202001
RewriteSimpleAggToConstantRule2636993%115783%114312980901
CheckMatchExpression268676%51372%5143220501
EliminateSemiJoin264060%5337%4107180501
PruneOlapScanTablet2520589%122466%10235460501
LogicalResultSinkToShortCircuitPointQuery2517787%42485%5233411901
UnCorrelatedApplyAggregateFilter2516386%4660%482400301
PullUpCorrelatedFilterUnderApplyAggregateProject2515486%5758%5102350401
PushDownFilterThroughAggregation2511081%31381%3124300401
CreatePartitionTopNFromWindow246974%6650%493180301
MergeTopNs237777%5337%475230301
CheckDataTypes218580%1191%1113250501
PullUpProjectExprUnderTopN.Rewriter216174%675%374161301
PushCountIntoUnionAll2044995%153972%1542109601501
OperativeColumnDerive2036094%4998%23647111101
CheckScoreUsage2012886%7956%82044021201
AddProjectForVolatileExpression.GenerateRewrite203060%50%14290301
EliminateOrderByKey1932594%33391%3254810701
VariantSubPathPruning199683%71568%5157300401
EliminateLimitUnderApply191950%50%145100301
SetPreAggStatus1825993%103477%83446101201
CTEInline1822992%41881%4192480801
PushDownVectorTopNIntoOlapScan1732595%104080%10327790701
PushDownAliasThroughJoin1728294%62278%63025501601
PushDownFilterThroughJoin1724693%102672%8235610501
CheckDataTypes.ExpressionChecker158585%1191%1103230401
EliminateSortUnderSubqueryOrView153670%n/a14081401
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
PushDownFilterThroughWindow9286%1083%2103240401
AddProjectForVolatileExpression.FilterRewrite3068%50%143100301
PruneEmptyPartition11990%61875%6174320501
ScalarApplyToJoin11589%4866%5132261701
PushFilterInsideJoin9888%3562%493261501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker2969%50%27281601
InferJoinNotNull17393%31785%3152340501
ExprIdRewriter.ReplaceRule5983%100%172191601
AccessPathInfo2163%n/a376143701
AddProjectForVolatileExpression.JoinRewriteResult0%n/a11551111
AdjustConjunctsReturnType10290%466%3101251701
PullUpProjectUnderApply9289%6650%5101170401
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
InferPredicateByReplace26896%63284%6283661901
AccessPathExpressionCollector.CollectAccessPathResult5083%3562%4112141701
PushDownProject.PushdownProjectHelper21195%42284%4183540501
EliminateJoinCondition8089%5758%5120181601
EliminateNotNull17695%2195%1172470601
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
CheckRestorePartition3884%466%262100301
PushDownJoinOtherCondition14696%1890%2171320701
EliminateSort13995%1794%1161300701
EliminateNullAwareLeftAntiJoin2982%50%151100401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer7493%880%291150401
SplitLimit4790%375%161100401
PullUpProjectExprUnderTopN.ProjectSimplifier4690%675%271110301
CheckMultiDistinct2180%50%15150401
InferAggNotNull20498%44090%4301450801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
EliminateOrderByConstant5392%787%171160301
PushDownTopNDistinctThroughUnion14898%880%2111260601
UnCorrelatedApplyProjectFilter13897%50%271290501
PushDownTopNThroughUnion13297%880%2101250501
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
AccessPathExpressionCollector.CollectorContext2488%n/a141101401
MultiDistinctFunctionStrategy1885%100%14171301
CountLiteralRewrite20299%2996%1221430701
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder13898%61875%6171320501
MergeOneRowRelationIntoUnion12798%1083%2101280401
MergeGenerates6897%50%161130501
MergeProjects4195%50%151100401
MergeSetOperationsExcept8198%50%150140401
CollectFilterAboveConsumer6398%583%171160401
PushProjectThroughUnion374100%36100%0270790901
CheckPrivileges224100%31986%3190520801
MergeSetOperations214100%2395%1190480701
EliminateFilter194100%32187%3180400601
ProjectOtherJoinConditionForNestedLoopJoin145100%31583%3130320401
SetPreAggStatus.PreAggInfoContext140100%100%0100340901
EliminateConstHashJoinCondition138100%62076%6190330601
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%675%290200501
LimitSortToTopN75100%n/a040200401
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CheckAndStandardizeWindowFunctionAndFrame63100%n/a040150401
PullUpProjectExprUnderTopN.PullUpInfo61100%100%050140401
EliminateJoinByUnique51100%4100%060120401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
SemiJoinCommute48100%375%18080601
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
CollectCteConsumerOutput35100%n/a04070401
BuildAggForUnion33100%100%05050401
MergeFilters31100%n/a03070301
OperativeColumnDerive.DeriveContext31100%100%050100401
MergeProjectable30100%n/a03060301
UnequalPredicateInfer.InferenceGraph.Relation27100%n/a01050101
TransposeSemiJoinLogicalJoinProject.ContainsType27100%n/a01020101
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext24100%n/a01070101
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree23100%100%03060201
AddProjectForJoin23100%n/a03040301
DistinctAggregateRewriter.Strategy21100%n/a01020101
OrExpansion.OrExpandsionContext17100%n/a01050101
ColumnPruning.PruneContext16100%n/a01060101
CTEInliner.InlineResult15100%n/a03060301
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
InlineLogicalView100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
ClearContextStatus100%n/a02030201
DistinctAggregateRewriter.DistinctDistributionInfo100%n/a01040101
StatsDerive.DeriveContext100%n/a01020101
PullUpProjectExprUnderTopN.RewriteContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101