org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total9,753 of 65,38885%1,840 of 7,67576%1,5565,7881,87613,4461651,9392242
SaltJoin805435%9387%6067151159121601
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
PushDownAggThroughJoin6940%880%6767127127232311
SlotTypeReplacer5291,15368%7011461%5512810335733601
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
AccessPathExpressionCollector4271,07071%6811663%601317729553901
NestedColumnPruning.DataTypeAccessTree31380271%4711971%411015922361801
PushDownUnnestInProject2704113%2939%172249562601
MultiJoin2364816%200%1925395091501
ReduceAggregateChildOutputRows1444222%23723%141922310401
PushDownDistinctThroughJoin1440%200%181827278811
PullUpJoinFromUnionAll1351,03188%3110376%25833424201601
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PruneFileScanPartition1245329%118%91326373701
PushDownLimitDistinctThroughJoin12124166%191747%132611520701
JoinExtractOrFromCaseWhen11959283%318773%23712515811201
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker11711048%311532%2433183831001
EliminateGroupBy11424368%112367%82417700701
PushDownEncodeSlot.EncodeSlotPushDownVisitor10992689%218780%20672320611301
PushDownTopNThroughWindow10710549%141246%111925521601
InferPredicateByReplace.ReplaceAnalyzer1076%120%7816181201
AddProjectForVolatileExpression10611251%8850%51318440501
PushDownScoreTopNIntoOlapScan10140780%295565%22602011621801
ConstantPropagation1001,24092%3616682%291242229512301
NestedColumnPruning981,92795%5327383%481963648103301
PushDownTopNDistinctThroughJoin9335479%192758%1335198801101
SetPreAggStatus.SetOlapScanPreAgg8943583%136182%1244151050701
AdjustNullable881,33993%2515185%241141227602601
VariantSubPathPruning.VariantSubPathReplacer841,52494%1213892%12951729822001
StatsDerive7868389%374956%31721317032901
PushDownAggThroughJoinOnPkFk7850486%196376%16551411711401
RewriteSearchToSlots7841384%154173%1539129901101
PushDownVirtualColumnsIntoOlapScan7768989%308674%27841615602601
AccessPathPlanCollector7694392%1611287%14831421201901
OrExpansion741,06393%156581%15681218302801
PushDownEncodeSlot.PushDownContext7322575%102066%72113561601
CollectPredicateOnScan702727%712%5820281401
ReorderJoin6975891%138386%14611317411301
PushDownFilterThroughSetOperation6934383%113173%931158601001
AddProjectForVolatileExpression.JoinRewrite686147%516%3617310301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
PushDownProject6371491%165276%14491216901501
SkewJoin5821178%113576%92812600501
RewriteCteChildren5753390%44090%436611801401
PushProjectIntoUnion5619577%141856%10219501501
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker5511166%61470%72153211101
AddProjectForVolatileExpression.OneRowRelationRewrite542934%516%3612200301
PushCountIntoUnionAll5341688%173768%1642139611501
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
PushDownLimit5034487%51979%52387101001
PushDownJoinOnAssertNumRows4932586%154173%14379860901
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
SkipSimpleExprs4512172%111557%8176331401
CollectLimitAboveConsumer442536%n/a359163501
DecomposeRepeatWithPreAggregation421,37697%1812687%16991127402601
PullUpPredicates421,24596%1512889%161201023724601
MaxMinFilterPushDown4221583%143470%11316480701
UnequalPredicateInfer.InferenceGraph381,53797%1822892%171461026312301
EliminateAssertNumRows389972%141957%102210330501
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
PushDownEncodeSlot3529489%53988%4305660801
VariantSubPathPruning338371%101254%6159300401
EliminateSortUnderApply314659%n/a145161401
DistinctAggregateRewriter3062895%198982%17671015401301
ExtractAndNormalizeWindowExpression3028790%42485%62827131401
SimplifyEncodeDecode305363%880%286210301
PullUpProjectUnderTopN2613283%3975%3123280601
InferPredicates2560696%116685%1054712101401
EliminateGroupByKeyByUniform2529492%33592%3245660501
LogicalResultSinkToShortCircuitPointQuery2517787%32589%4233411901
PushDownTopNThroughJoin2430392%2893%22636301001
PushDownFilterThroughProject2427191%82071%7235700901
PruneOlapScanTablet2418888%92170%7205430501
PullUpProjectUnderLimit248577%466%292160601
DistinctAggStrategySelector2224791%123172%11287580601
QueryPartitionCollector2210883%1083%296320301
DecoupleEncodeDecode2110383%31785%3143280401
CheckDataTypes218580%1191%1113250501
SumLiteralRewrite2051796%85286%841410801101
RewriteSimpleAggToConstantRule2037594%95986%94311980901
AddProjectForVolatileExpression.GenerateRewrite203060%50%14290301
PushDownExpressionsInHashCondition1934894%31381%42857822001
PullUpJoinFromUnionAll.LogicalPlanComparator1922692%113576%10297420601
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}193665%4450%376170301
ConvertOuterJoinToAntiJoin1824893%33191%3262480901
CheckMultiDistinct1811786%32790%3192270401
MergeOneRowRelationIntoUnion1811686%3975%3103280401
PushDownAliasThroughJoin1728294%32589%33025501601
AccessPathExpressionCollector.CollectAccessPathResult175074%3562%4112141701
EliminateSemiJoin5677%675%2102180501
OperativeColumnDerive41196%36195%34238001001
PushDownVectorTopNIntoOlapScan31995%93981%9316770701
CheckDataTypes.ExpressionChecker8585%1191%1103230401
CheckRestorePartition3871%466%262100301
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
AddProjectForVolatileExpression.FilterRewrite3068%50%143100301
ScalarApplyToJoin11589%4866%5132261701
CheckMatchExpression9988%41477%4141220501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
ColumnPruning96198%810092%781121502701
TransposeSemiJoinLogicalJoinProject24795%112367%112944501201
AccessPathInfo2163%n/a376143701
MergePercentileToArray45197%3597%1261890801
PushDownFilterThroughPartitionTopN10490%4866%493270301
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker3173%100%17181601
EliminateEmptyRelation60998%107888%860113401601
NormalizeOlapTableStreamScan.OlapTableStreamScanReplacer21395%112771%11233450401
CheckScoreUsage14894%41275%52024011201
CountDistinctRewrite12193%62076%5192280601
PruneEmptyPartition12193%51979%5173320501
CreatePartitionTopNFromWindow8490%3975%391180301
PushDownFilterThroughSort5185%50%16180501
AggScalarSubQueryToWindowFunction82399%146882%1482414804101
PushDownAggThroughJoinOnPkFk.InnerJoinCluster30197%4295%2311630901
PushDownFilterThroughRepeat8291%3562%383220401
SumLiteralRewrite.SumInfo6288%5550%584160301
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
PruneOlapScanPartition46598%37195%347111601001
EliminateOrderByKey31197%3294%2232750601
PushDownProject.PushdownProjectHelper21396%2492%2182540501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
MergeAggregate51598%85086%749211302001
CTEInliner40798%64488%64018801501
EliminateOuterJoin34598%114580%103926801101
VariantSubPathPruning.VariantSubPathCollector29898%3397%1251630801
EliminateSort13995%1794%1161300701
EliminateNullAwareLeftAntiJoin2982%50%151100401
ForeignKeyContext40098%73583%74347902201
EliminateJoinByFK30898%32589%32426001001
VariantSubPathPruning.Context26298%32388%4222581901
PushDownFilterIntoSchemaScan22297%33992%3292470801
PushDownMatchProjectionAsVirtualColumn21897%42284%4221480901
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
SplitMultiDistinctStrategy66699%4197%23021131901
InferPredicateByReplace27598%3694%3282661901
EliminateGroupByKey26298%2492%2212510801
SimplifyWindowExpression24498%2492%2191570601
InferAggNotNull20498%44090%4301450801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
AddDefaultLimit12296%51575%6182281801
PullUpProjectUnderApply9996%3975%2100170401
NormalizeToSlot.NormalizeWithoutWindowFunction12397%1794%1121300301
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
AccessPathExpressionCollector.CollectorContext2488%n/a141101401
MultiDistinctFunctionStrategy1885%100%14171301
PushDownFilterThroughJoin26199%3494%2231610501
SetPreAggStatus24499%32990%32715701101
TransposeSemiJoinLogicalJoin17698%32388%3201290701
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder13898%2291%2171320501
EliminateAggCaseWhen10898%1285%2101240301
EliminateJoinCondition8797%4866%4120180601
TransposeSemiJoinAggProject8797%50%181140701
TransposeSemiJoinAgg7997%375%191160701
MergeGenerates6897%50%161130501
MergeTopNs5896%50%141160301
MergeProjects4195%50%151100401
LimitAggToTopNAgg59499%116986%1158012501801
PushDownLimitDistinctThroughUnion15799%787%1110270701
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
CollectFilterAboveConsumer6398%583%171160401
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
InApplyToJoin326100%3397%1210560401
PushProjectThroughUnion320100%30100%0240650901
CTEInline247100%2195%1190480801
CheckPrivileges224100%31986%3190520801
MergeSetOperations214100%2395%1190480701
CountLiteralRewrite204100%30100%0220430701
EliminateFilter194100%2291%2180400601
UnCorrelatedApplyAggregateFilter188100%10100%080400301
InferJoinNotNull185100%20100%0150340501
EliminateNotNull184100%22100%0170470601
ExistsApplyToJoin179100%787%1110310701
PullUpCorrelatedFilterUnderApplyAggregateProject179100%12100%0100350401
ProjectOtherJoinConditionForNestedLoopJoin158100%2195%1160350501
EliminateConstHashJoinCondition147100%62076%6190330601
PushDownJoinOtherCondition145100%18100%0160300701
DistinctWindowExpression141100%31986%3150350401
UnCorrelatedApplyProjectFilter141100%4100%070290501
SetPreAggStatus.PreAggInfoContext140100%100%0100340901
PushDownFilterThroughAggregation135100%1593%1120300401
InferFilterNotNull120100%16100%0130270501
SimplifyAggGroupBy117100%22100%0170260601
NormalizeSort117100%8100%080320401
InferSetOperatorDistinct114100%1794%1180220901
PushFilterInsideJoin111100%8100%090260501
PushDownFilterThroughWindow99100%8100%080230401
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%675%290200501
MergeLimits81100%787%1100150601
UnCorrelatedApplyFilter78100%100%040170301
LimitSortToTopN75100%n/a040200401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer71100%8100%080130401
ExprIdRewriter.ReplaceRule71100%100%070190601
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
NestedColumnPruning.OffsetPathRewrite39100%n/a070110701
EliminateLimitUnderApply38100%100%040100301
CollectCteConsumerOutput35100%n/a04070401
BuildAggForUnion33100%100%05050401
OperativeColumnDerive.DeriveContext31100%100%050100401
MergeFilters31100%n/a03070301
PullUpJoinFromUnionAll.ExpressionOrIndex30100%n/a02080201
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