org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total17,809 of 65,38872%2,777 of 7,67563%2,1985,7883,42013,4463131,9395242
PullUpJoinFromUnionAll1,03812810%1161813%7183213242101601
SaltJoin805435%9387%6067151159121601
VariantSubPathPruning.VariantSubPathReplacer72088855%688254%459512729862001
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
PushDownAggThroughJoin6940%880%6767127127232311
SlotTypeReplacer5581,12466%7411059%5812811235733601
AccessPathExpressionCollector50499366%7910557%691318829563901
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
NestedColumnPruning4811,54476%12220462%8519613648153301
PushDownAggThroughJoinOnPkFk45612621%711113%45558611771401
AccessPathPlanCollector43858157%636550%39839421211901
MergePercentileToArray4125010%32411%212675894801
PushDownTopNDistinctThroughJoin406419%460%3335768891101
NestedColumnPruning.DataTypeAccessTree38273365%6610060%531017322371801
SumLiteralRewrite34419335%382236%25416310841101
PushDownLimitDistinctThroughJoin3253710%360%242641525701
PushDownJoinOnAssertNumRows3066818%431323%283765865901
PushDownScoreTopNIntoOlapScan27323546%632125%46606011681801
PushDownUnnestInProject2704113%2939%172249562601
StatsDerive24751467%543237%44725117092901
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
EliminateJoinByFK2367724%22621%1724446051001
MultiJoin2364816%200%1925395091501
MergeAggregate21430758%273153%25494511372001
PushDownLimit20119348%15937%1423317141001
ForeignKeyContext17722856%202252%2243317992201
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker1676026%39715%2733263851001
PruneFileScanPartition1628%120%111333375701
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15415550%182659%123133632901
SimplifyWindowExpression1509839%20623%121931571601
ReduceAggregateChildOutputRows1444222%23723%141922310401
PushDownDistinctThroughJoin1440%200%181827278811
PushDownLimitDistinctThroughUnion1391912%80%91121275701
PullUpPredicates1371,15089%3311076%271202723724601
SplitMultiDistinctStrategy13553579%103276%830181131901
SetPreAggStatus.SetOlapScanPreAgg13439074%185675%1744211050701
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PushDownVirtualColumnsIntoOlapScan12763983%368068%34842415622601
JoinExtractOrFromCaseWhen11959283%328672%24712515811201
PushDownProject11865984%194972%17492616911501
EliminateGroupBy11424368%112367%82417700701
PushDownTopNThroughWindow1139946%17934%141928521601
PushDownEncodeSlot.EncodeSlotPushDownVisitor10992689%218780%20672320611301
InferPredicateByReplace.ReplaceAnalyzer1076%120%7816181201
AddProjectForVolatileExpression10611251%8850%51318440501
ConstantPropagation1051,23592%3916380%321242529512301
PushDownMatchProjectionAsVirtualColumn10411953%141246%112220482901
InApplyToJoin10122569%92573%62116560401
VariantSubPathPruning.Context9916862%91765%92220582901
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
MaxMinFilterPushDown9516263%192960%133117480701
AdjustNullable921,33593%2515185%241141427602601
DecomposeRepeatWithPreAggregation911,32793%2611881%24992027402601
RewriteSearchToSlots7841384%154173%1539129901101
RewriteCteChildren7751386%93579%936911801401
PushDownFilterThroughRepeat7714%80%6819222401
ReorderJoin7675190%177982%18611517411301
OrExpansion741,06393%156581%15681218302801
PushDownEncodeSlot.PushDownContext7322575%102066%72113561601
PullUpProjectUnderTopN738553%5758%51210281601
CountDistinctRewrite715945%151142%111916282601
CollectPredicateOnScan702727%712%5820281401
PushDownFilterThroughSetOperation6934383%113173%931158601001
AddProjectForVolatileExpression.JoinRewrite686147%516%3617310301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
DistinctWindowExpression677452%121045%91512350401
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker6010663%81260%92173221101
MergePercentileToArray.DistinctAndExpr590%100%9913134411
SkewJoin5821178%113576%92812600501
SumLiteralRewrite.SumInfo5817%100%7811162301
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
DistinctAggregateRewriter5660291%307872%26671515401301
PushProjectIntoUnion5619577%141856%10219501501
AddProjectForVolatileExpression.OneRowRelationRewrite542934%516%3612200301
PushCountIntoUnionAll5341688%173768%1642139611501
DistinctAggStrategySelector5321680%202353%172813580601
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
PushDownTopNThroughJoin5127684%52583%52676301001
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
PushDownFilterThroughSort4721%0%46583501
SkipSimpleExprs4512172%111557%8176331401
CollectLimitAboveConsumer442536%n/a359163501
EliminateOuterJoin3931288%292748%1839106801101
EliminateGroupByKeyByUniform3928087%63284%4248660501
UnequalPredicateInfer.InferenceGraph381,53797%1822892%171461026312301
EliminateAssertNumRows389972%151854%112210330501
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
SetPreAggStatus3621085%52784%72775721101
PushDownEncodeSlot3529489%53988%4305660801
VariantSubPathPruning338371%101254%6159300401
InferPredicates3259994%126584%1154812101401
EliminateSemiJoin324055%5337%4107180501
EliminateSortUnderApply314659%n/a145161401
ExtractAndNormalizeWindowExpression3028790%52382%72827131401
SimplifyEncodeDecode305363%880%286210301
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}292647%5337%479171301
LimitAggToTopNAgg2856795%166480%1658512501801
LogicalResultSinkToShortCircuitPointQuery2717586%42485%5234411901
ColumnPruning2694797%99991%881421502701
RewriteSimpleAggToConstantRule2636993%125682%124312980901
PushDownFilterThroughAggregation2511081%1487%2124300401
PushDownFilterThroughProject2427191%82071%7235700901
ConvertOuterJoinToAntiJoin2424290%102470%8262480901
PruneOlapScanTablet2418888%92170%7205430501
PullUpProjectUnderLimit248577%466%292160601
QueryPartitionCollector2210883%1083%296320301
PruneOlapScanPartition2145195%106486%847411601001
DecoupleEncodeDecode2110383%31785%3143280401
CheckDataTypes218580%1191%1113250501
CheckScoreUsage2013787%7956%82044021201
AddProjectForVolatileExpression.GenerateRewrite203060%50%14290301
EliminateEmptyRelation1960096%157382%1260213401601
PushDownExpressionsInHashCondition1934894%31381%42857822001
EliminateOrderByKey1929994%33191%3234750601
CTEInline1822992%41881%4192480801
CheckMultiDistinct1811786%32790%3192270401
MergeOneRowRelationIntoUnion1811686%3975%3103280401
PushDownAliasThroughJoin1728294%32589%33025501601
AccessPathExpressionCollector.CollectAccessPathResult175074%3562%4112141701
OperativeColumnDerive41196%36195%34238001001
PushDownVectorTopNIntoOlapScan31995%93981%9316770701
CheckDataTypes.ExpressionChecker8585%1191%1103230401
CheckRestorePartition3871%466%262100301
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
NormalizeToSlot.NormalizeWithoutWindowFunction11288%41477%4124300301
AddProjectForVolatileExpression.FilterRewrite3068%50%143100301
PruneEmptyPartition11790%61875%6174320501
ScalarApplyToJoin11589%4866%5132261701
CheckMatchExpression9988%41477%4141220501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
TransposeSemiJoinLogicalJoinProject24795%112367%112944501201
SetPreAggStatus.PreAggInfoContext12891%100%2104342901
ExprIdRewriter.ReplaceRule5983%100%172191601
NestedColumnPruning.OffsetPathRewrite2769%n/a373113701
AccessPathInfo2163%n/a376143701
EliminateGroupByKey25595%62076%6213510801
PushDownFilterThroughPartitionTopN10490%4866%493270301
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker3173%100%17181601
CTEInliner40397%113978%114028801501
InferPredicateByReplace26996%63284%6283661901
NormalizeOlapTableStreamScan.OlapTableStreamScanReplacer21395%112771%11233450401
PushDownProject.PushdownProjectHelper21195%42284%4183540501
CreatePartitionTopNFromWindow8490%3975%391180301
AggScalarSubQueryToWindowFunction82399%146882%1482414804101
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
PushDownFilterThroughJoin25697%43288%4233610501
AdjustConjunctsReturnType10693%466%2101250701
PushFilterInsideJoin10493%675%292260501
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
EliminateSort13995%1794%1161300701
MergeLimits7592%3562%2100150601
EliminateNullAwareLeftAntiJoin2982%50%151100401
PushDownFilterIntoSchemaScan22297%33992%3292470801
InferAggNotNull20498%44090%4301450801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
TransposeSemiJoinLogicalJoin17497%52180%5201290701
AddDefaultLimit12296%51575%6182281801
PullUpProjectUnderApply9996%3975%2100170401
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
AccessPathExpressionCollector.CollectorContext2488%n/a141101401
MultiDistinctFunctionStrategy1885%100%14171301
CountLiteralRewrite20299%2996%1221430701
ProjectOtherJoinConditionForNestedLoopJoin15698%2090%2160350501
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder13898%2291%2171320501
EliminateJoinCondition8797%4866%4120180601
TransposeSemiJoinAgg7997%375%191160701
MergeGenerates6897%50%161130501
MergeTopNs5896%50%141160301
MergeProjects4195%50%151100401
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
CollectFilterAboveConsumer6398%583%171160401
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
PushProjectThroughUnion320100%30100%0240650901
CheckPrivileges224100%31986%3190520801
MergeSetOperations214100%2395%1190480701
EliminateFilter194100%2291%2180400601
UnCorrelatedApplyAggregateFilter188100%10100%080400301
InferJoinNotNull185100%20100%0150340501
EliminateNotNull184100%22100%0170470601
ExistsApplyToJoin179100%787%1110310701
PullUpCorrelatedFilterUnderApplyAggregateProject179100%12100%0100350401
EliminateConstHashJoinCondition147100%62076%6190330601
PushDownJoinOtherCondition145100%18100%0160300701
UnCorrelatedApplyProjectFilter141100%4100%070290501
InferFilterNotNull120100%16100%0130270501
SimplifyAggGroupBy117100%2090%2170260601
NormalizeSort117100%8100%080320401
InferSetOperatorDistinct114100%1794%1180220901
PushDownFilterThroughWindow99100%8100%080230401
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%675%290200501
UnCorrelatedApplyFilter78100%100%040170301
LimitSortToTopN75100%n/a040200401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer71100%787%180130401
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CheckAndStandardizeWindowFunctionAndFrame63100%n/a040150401
EliminateOrderByConstant57100%8100%070160301
EliminateJoinByUnique51100%4100%060120401
EliminateSortUnderSubqueryOrView51100%n/a04080401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
SemiJoinCommute48100%4100%08080601
SplitLimit43100%100%05080401
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
EliminateLimitUnderApply38100%100%040100301
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.PruneContext100%n/a01060101
CTEInliner.InlineResult100%n/a03060301
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
InlineLogicalView100%n/a02020201
NormalizeOlapTableStreamScan100%n/a02020201
DistinctAggregateRewriter.DistinctDistributionInfo100%n/a01040101
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
ClearContextStatus100%n/a02030201
StatsDerive.DeriveContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101