org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total23,885 of 65,95463%3,421 of 7,71755%2,6715,8204,57413,6324491,9509245
PullUpJoinFromUnionAll1,082796%121139%7383221242101601
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0290%1080%6767206206131311
OrExpansion95817315%661417%5668145183212801
AccessPathExpressionCollector94077245%1209042%99144178324223901
SlotTypeReplacer90177546%1048043%76128181357103601
SaltJoin778435%9476%6167152160121601
VariantSubPathPruning.VariantSubPathReplacer71188855%688254%459512729562001
PushDownAggThroughJoin6700%880%6767127127232311
AggScalarSubQueryToWindowFunction63919223%671518%6182118148264101
AccessPathPlanCollector63239738%854333%478413521442001
PushDownAggWithDistinctThroughJoinOneSide465275%600%43458596131501
PushDownAggThroughJoinOnPkFk44913322%701214%45558611761401
SumLiteralRewrite42211521%461423%31417710851101
MergePercentileToArray4125010%32411%212675894801
PushDownTopNDistinctThroughJoin406419%460%3335768891101
PushDownLimitDistinctThroughJoin3253710%360%242641525701
NestedColumnPruning.DataTypeAccessTree31962666%308072%28726620171701
PushDownJoinOnAssertNumRows3116316%451119%293765865901
PushDownEncodeSlot304257%424%273058665801
PushDownEncodeSlot.PushDownContext2920%300%212156566611
PushDownLimit29110326%228%1923457161001
DistinctAggregateRewriter28936856%594945%42676715421301
AddProjectForVolatileExpression27215936%311329%203156982901
PushDownUnnestInProject2704113%2939%172249562601
MergeAggregate26625548%382034%29495911372001
StatsDerive26349865%543237%457255170102901
PushDownScoreTopNIntoOlapScan25223548%632125%46606011681801
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
PullUpPredicates2441,04381%489566%411204623744601
EliminateJoinByFK2367724%22621%1724446051001
MultiJoin2364816%200%1925395091501
DecomposeRepeatWithPreAggregation2251,19384%3810673%36994327462601
PushDownFilterThroughSetOperation20929158%292950%23394411111001
InferPredicates20643367%354656%25564212521401
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker205229%460%3033343871001
ForeignKeyContext17722856%212150%2343317992201
LimitAggToTopNAgg17442170%295163%31583112551801
PruneFileScanPartition162158%120%111333375701
ReduceAggregateChildOutputRows1611910%293%161925311401
SetPreAggStatus.SetOlapScanPreAgg15736770%264864%2344241050701
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15515449%212352%153133632901
SimplifyWindowExpression1509839%20623%121931571601
PushDownTopNThroughJoin14835670%202656%17392810441501
EliminateEmptyRelation14647376%286068%20602813401601
TransposeSemiJoinLogicalJoin1463217%253%162020293701
PushDownLimitDistinctThroughUnion1391912%80%91121275701
InApplyToJoin13619058%161852%122121560401
SplitMultiDistinctStrategy13553579%103276%830181131901
EliminateGroupByKeyByUniform13418557%182052%122427661501
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
NormalizeOlapTableStreamScan13152680%225270%23472112231001
AdjustNullable1281,29190%3114582%281142027602601
PushDownVirtualColumnsIntoOlapScan12763983%368068%34842415622601
EliminateGroupBy12423365%122264%92417700701
JoinExtractOrFromCaseWhen12358882%358370%27712715811201
MaxMinFilterPushDown12113652%282041%173120480701
ConstantPropagation1181,22291%4116179%341242829512301
ReorderJoin11870385%247275%23612317421301
PushDownProject11865984%214769%19492616911501
PushDownTopNThroughWindow1139946%17934%141928521601
PullUpProjectUnderLimit1062820%820%81115213601
PushDownFilterThroughPartitionTopN10610%140%81024271301
PushDownMatchProjectionAsVirtualColumn10411953%141246%112220482901
DecoupleEncodeDecode1032116%1810%111422281401
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1024028%16420%1521223251101
VariantSubPathPruning.Context9916862%91765%92220582901
PullUpProjectUnderTopN988546%9743%71415331601
MetaPathStriper9743481%335964%2455271210901
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker940%140%151513138811
ExistsApplyToJoin899050%3562%41113311701
InferPredicateByReplace.ReplaceAnalyzer898%120%7816181201
PushDownFilterThroughProject8521071%161242%122321702901
RewriteSearchToSlots7840083%154173%1539129901101
RewriteCteChildren7751386%103477%1036911801401
PushDownFilterThroughRepeat7714%80%6819222401
TransposeSemiJoinLogicalJoinProject7118872%201441%1629114501201
CountDistinctRewrite715945%161038%121916282601
CollectPredicateOnScan702727%712%5820281401
SumLiteralRewrite.SumInfo700%100%8816163311
PullUpProjectExprUnderTopN6982092%2113786%201001518702101
AddProjectForVolatileExpression.JoinRewrite696146%516%3618310301
DistinctWindowExpression677452%121045%91512350401
CTEInliner6434984%183264%154098811501
PushDownFilterIntoSchemaScan5916874%251740%15299471801
MergePercentileToArray.DistinctAndExpr590%100%9913134411
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5619577%141856%10219501501
PushCountIntoUnionAll5541488%183666%1742149611501
EliminateOuterJoin5429784%322442%2239116821101
SkewJoin5420579%92976%82512600601
AddProjectForVolatileExpression.OneRowRelationRewrite542934%516%3612200301
DistinctAggStrategySelector5321680%202353%172813580601
ExtractSingleTableExpressionFromDisjunction5233986%63485%431129001101
SetPreAggStatus5219478%102268%927125721101
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}525%80%6716172301
UnequalPredicateInfer.InferenceGraph501,52496%2522189%231461226312301
EliminateOrderByKey5026884%62882%52310750601
EliminateAssertNumRows508763%181545%132213330501
EliminateSortUnderApply502735%n/a2410162401
EliminateGroupByKey4921781%121453%92110510801
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
TransposeSemiJoinAgg483340%325%695164701
PushDownFilterThroughSort4721%0%46583501
SkipSimpleExprs4512172%111557%8176331401
CollectLimitAboveConsumer442536%n/a359163501
MergeLimits433846%5337%5106151601
AddDefaultLimit388869%12840%10189281801
SimplifyEncodeDecode374655%4660%387210301
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
PruneOlapScanPartition3643692%165878%1447811601001
NestedColumnPruning351,07296%1513790%13981126802201
CheckMultiDistinct339674%121860%9196270401
VariantSubPathPruning338271%101254%6159300401
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
ExtractAndNormalizeWindowExpression2928290%72175%92837131401
QueryPartitionCollector299576%3975%399320301
LogicalResultSinkToShortCircuitPointQuery2717586%52382%6234411901
ColumnPruning2694797%99991%881421502701
RewriteSimpleAggToConstantRule2636993%125682%124312980901
EliminateSemiJoin264060%5337%4107180501
PruneOlapScanTablet2520288%122466%10235460501
UnCorrelatedApplyAggregateFilter2516386%4660%482400301
PullUpCorrelatedFilterUnderApplyAggregateProject2515486%5758%5102350401
PushDownFilterThroughAggregation2511081%31381%3124300401
ConvertOuterJoinToAntiJoin2424290%112367%9262480901
CreatePartitionTopNFromWindow246974%6650%493180301
PushDownExpressionsInHashCondition2333893%41275%52867822001
CheckDataTypes218580%1191%1113250501
PullUpProjectExprUnderTopN.Rewriter216174%675%374161301
OperativeColumnDerive2036094%4998%23647111101
CheckScoreUsage2012886%7956%82044021201
AddProjectForVolatileExpression.GenerateRewrite203060%50%14290301
EliminateLimitUnderApply191950%50%145100301
CTEInline1822992%41881%4192480801
MergeOneRowRelationIntoUnion1811686%3975%3103280401
AccessPathExpressionCollector.AccessPathBuilder182760%n/a385143801
PushDownAliasThroughJoin1728294%32589%33025501601
PushDownFilterThroughJoin1724693%102672%8235610501
MergeTopNs167382%433%364210301
PushDownVectorTopNIntoOlapScan1531995%93981%9316770701
SimplifyAggGroupBy1510287%71568%5171260601
CheckDataTypes.ExpressionChecker158585%1191%1103230401
EliminateSortUnderSubqueryOrView153670%n/a14081401
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
NormalizeToSlot.NormalizeWithoutWindowFunction11288%41477%4124300301
PushDownFilterThroughWindow9286%1083%2103240401
AddProjectForVolatileExpression.FilterRewrite3068%50%143100301
PruneEmptyPartition11790%61875%6174320501
ScalarApplyToJoin11589%4866%5132261701
CheckMatchExpression9988%41477%4141220501
PushFilterInsideJoin9888%3562%493261501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker2969%50%27281601
InferJoinNotNull17393%31785%3152340501
SetPreAggStatus.PreAggInfoContext12891%100%2104342901
ExprIdRewriter.ReplaceRule5983%100%172191601
AccessPathInfo2163%n/a376143701
AddProjectForVolatileExpression.JoinRewriteResult0%n/a11551111
PullUpProjectUnderApply9289%4866%3101170401
InferPredicateByReplace26896%63284%6283661901
AccessPathExpressionCollector.CollectAccessPathResult5083%3562%4112141701
AccessPathExpressionCollector.CollectorContext1762%n/a344103401
PushDownProject.PushdownProjectHelper21195%42284%4183540501
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
CheckRestorePartition3884%466%262100301
EliminateSort13995%1794%1161300701
EliminateNullAwareLeftAntiJoin2982%50%151100401
PushDownJoinOtherCondition14896%1995%1171320701
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer7493%880%291150401
PullUpProjectExprUnderTopN.ProjectSimplifier4690%675%271110301
InferAggNotNull20498%44090%4301450801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
EliminateOrderByConstant5392%787%171160301
UnCorrelatedApplyProjectFilter13897%50%271290501
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
MultiDistinctFunctionStrategy1885%100%14171301
CountLiteralRewrite20299%2996%1221430701
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder13898%61875%6171320501
EliminateJoinCondition8797%4866%4120180601
UnCorrelatedApplyFilter7697%50%141170301
MergeGenerates6897%50%161130501
MergeProjects4195%50%151100401
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
CollectFilterAboveConsumer6398%583%171160401
PushProjectThroughUnion374100%36100%0270790901
CheckPrivileges224100%31986%3190520801
MergeSetOperations214100%2395%1190480701
EliminateFilter194100%32187%3180400601
EliminateNotNull184100%22100%0170470601
ProjectOtherJoinConditionForNestedLoopJoin145100%1688%2130320401
EliminateConstHashJoinCondition138100%62076%6190330601
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
InferSetOperatorDistinct84100%1392%1140150701
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
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
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
TransposeSemiJoinLogicalJoinProject.ContainsType27100%n/a01020101
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext24100%n/a01070101
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree23100%100%03060201
AddProjectForJoin23100%n/a03040301
OrExpansion.OrExpandsionContext17100%n/a01050101
ColumnPruning.PruneContext16100%n/a01060101
CTEInliner.InlineResult15100%n/a03060301
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
InlineLogicalView100%n/a02020201
DistinctAggregateRewriter.DistinctDistributionInfo100%n/a01040101
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
ClearContextStatus100%n/a02030201
StatsDerive.DeriveContext100%n/a01020101
PullUpProjectExprUnderTopN.RewriteContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101