org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total7,006 of 66,46789%1,515 of 7,82380%1,3465,8871,42113,7311251,9642244
PushDownAggThroughJoin6700%880%6767127127232311
SlotTypeReplacer5061,17069%6911562%5412810035733601
PushDownAggWithDistinctThroughJoinOneSide465275%600%43458596131501
AccessPathExpressionCollector3311,38180%6514569%561446132433901
NestedColumnPruning.DataTypeAccessTree26568071%228880%23725420161701
MultiJoin2364816%200%1925395091501
AddProjectForVolatileExpression20822351%251943%163144981901
VariantSubPathPruning.VariantSubPathReplacer1571,44290%1713388%15953529522001
ReduceAggregateChildOutputRows1384223%23723%141922310401
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PruneFileScanPartition1245329%118%91326373701
JoinExtractOrFromCaseWhen11759483%308874%22712415811201
PullUpJoinFromUnionAll1101,05190%2710779%21832824201601
PushDownEncodeSlot.EncodeSlotPushDownVisitor10992089%218780%20672320611301
PushDownFilterThroughPartitionTopN10610%140%81024271301
ConstantPropagation1001,24092%3516782%281242229512301
AdjustNullable881,33193%2515185%241141227602601
PushDownScoreTopNIntoOlapScan8640982%295766%22612011821801
StatsDerive7868389%374956%31721317032901
RewriteSearchToSlots7840083%154173%1539129901101
PushDownVirtualColumnsIntoOlapScan7768989%308674%27841615602601
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker7515266%192758%1533103821001
PushDownEncodeSlot.PushDownContext7321975%102066%72113561601
InferPredicateByReplace.ReplaceAnalyzer732424%1016%6812180201
ForeignKeyContext7233382%152764%1343127922201
PushDownFilterThroughSetOperation7043086%114781%9391511101001
CollectPredicateOnScan702727%712%5820281401
ReorderJoin6975291%138386%14611317411301
AddProjectForVolatileExpression.JoinRewrite696146%516%3618310301
OrExpansion681,06393%156581%15681218302801
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
PushDownTopNThroughJoin6644687%104080%9411310811501
PushDownProject6371491%165276%14491216901501
PushDownTopNThroughWindow6216672%111963%92115560601
PushDownLimitDistinctThroughJoin6031684%132767%12285550701
PullUpPredicates571,23095%1412990%171201023744601
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
SetPreAggStatus.SetOlapScanPreAgg5147390%106486%104481050701
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
PushDownJoinOnAssertNumRows4532987%144275%13378860901
SkipSimpleExprs4512172%111557%8176331401
RewriteCteChildren4154993%4295%236311801401
PushDownAggThroughJoinOnPkFk4154693%156982%1456711801401
AccessPathPlanCollector3999096%1011892%984921402001
EliminateAssertNumRows389972%141957%102210330501
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
PushDownEncodeSlot3529489%53988%4305660801
VariantSubPathPruning338271%101254%6159300401
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker3111178%71365%82153211101
PullUpProjectUnderLimit3010477%4660%4113210601
SimplifyEncodeDecode305363%880%286210301
QueryPartitionCollector299576%3975%399320301
MaxMinFilterPushDown2822989%113777%9314480701
NormalizeOlapTableStreamScan2694497%218580%2173418202001
EliminateGroupByKeyByUniform2529492%33592%3245660501
LogicalResultSinkToShortCircuitPointQuery2517787%32589%4233411901
NestedColumnPruning241,23398%1117394%11122929903001
InferSetOperatorDistinct2435593%166279%14475690801
PushDownFilterThroughProject2427191%82071%7235700901
DecomposeRepeatWithPreAggregation221,39698%1512989%1599927402601
DecoupleEncodeDecode2110383%31785%3143280401
CheckDataTypes218580%1191%1113250501
PullUpProjectExprUnderTopN.Rewriter216174%675%374161301
SumLiteralRewrite2051796%85286%841410801101
PushDownTopNDistinctThroughJoin2043195%143672%133758801101
RewriteSimpleAggToConstantRule2037594%86088%84311980901
OperativeColumnDerive2036094%4998%23647111101
AddProjectForVolatileExpression.GenerateRewrite203060%50%14290301
PushDownExpressionsInHashCondition1934294%1487%32857822001
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}193665%4450%376170301
UnequalPredicateInfer.InferenceGraph181,55698%1223495%13146826312301
SaltJoin1880397%237877%2367916001601
ExtractAndNormalizeWindowExpression1829394%32589%52817131401
SetPreAggStatus1825993%93579%73446101201
ConvertOuterJoinToAntiJoin1824893%33191%3262480901
PruneOlapScanTablet1821292%92775%8234460501
InferPredicates1762297%87390%756512501401
DistinctAggregateRewriter1564297%119789%1067515401301
PushDownVectorTopNIntoOlapScan1532795%94182%9326790701
CheckDataTypes.ExpressionChecker158585%1191%1103230401
PushCountIntoUnionAll45597%124277%124279601501
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
AddProjectForVolatileExpression.FilterRewrite3068%50%143100301
CheckMatchExpression9988%41477%4141220501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
ColumnPruning96198%810092%781121502701
PushDownUnnestInProject29996%52784%5222560601
TransposeSemiJoinLogicalJoinProject24795%112367%112944501201
CheckMultiDistinct11790%32790%3192270401
AccessPathInfo2163%n/a376143701
AddProjectForVolatileExpression.JoinRewriteResult0%n/a11551111
MergePercentileToArray45197%3597%1261890801
SkewJoin24895%63284%6254600601
MergeTopNs8989%3562%373230301
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker3173%100%17181601
PullUpProjectExprUnderTopN87998%1014893%10100318702101
EliminateEmptyRelation60998%107888%860113401601
EliminateSemiJoin5684%675%2102180501
AccessPathExpressionCollector.CollectAccessPathResult5083%3562%4112141701
PushProjectIntoUnion24296%32990%3211500501
CheckScoreUsage13993%41275%52024011201
CountDistinctRewrite12193%62076%5192280601
PruneEmptyPartition12193%51979%5173320501
CreatePartitionTopNFromWindow8490%3975%391180301
PushDownFilterThroughSort5185%50%16180501
AggScalarSubQueryToWindowFunction82399%146882%1482414804101
SimplifyAggGroupBy17995%63083%6264510801
PullUpProjectUnderTopN17595%41275%4142330601
PushDownFilterThroughRepeat8291%3562%383220401
SumLiteralRewrite.SumInfo6288%5550%584160301
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
PruneOlapScanPartition46598%7297%247111601001
DistinctAggStrategySelector26297%53888%4281580601
PushDownProject.PushdownProjectHelper21396%2492%2182540501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
MergeLimits8592%880%2111170601
CheckRestorePartition3884%466%262100301
CTEInliner40798%64488%64018801501
EliminateOuterJoin34598%114580%103926801101
VariantSubPathPruning.VariantSubPathCollector29898%3397%1251630801
PullUpJoinFromUnionAll.LogicalPlanComparator23997%73984%7293420601
ScalarApplyToJoin12295%3975%3131260701
EliminateNullAwareLeftAntiJoin2982%50%151100401
PushDownLimit38998%32187%32327101001
VariantSubPathPruning.Context26298%32388%4222581901
PushDownFilterIntoSchemaScan22297%33992%3292470801
PushDownMatchProjectionAsVirtualColumn21897%32388%3221480901
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
PullUpProjectExprUnderTopN.ProjectSimplifier4690%675%271110301
SplitMultiDistinctStrategy66699%4197%23021131901
EliminateJoinByFK30998%2692%22426001001
InferPredicateByReplace27498%3694%3282661901
EliminateGroupByKey26298%2492%2212510801
SimplifyWindowExpression24498%2596%1191570601
InferAggNotNull20498%44090%4301450801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
AddDefaultLimit12296%51575%6182281801
PullUpProjectUnderApply9996%3975%2100170401
EliminateGroupBy35499%33191%3241700701
PushDownLimitDistinctThroughUnion16398%880%2121290701
PushDownTopNDistinctThroughUnion14898%880%2111260601
NormalizeToSlot.NormalizeWithoutWindowFunction12397%1794%1121300301
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
AccessPathExpressionCollector.CollectorContext2488%n/a141101401
MultiDistinctFunctionStrategy1885%100%14171301
MergeAggregate51999%35194%347111702001
EliminateOrderByKey34299%3597%1251810701
PushDownFilterThroughJoin26199%3494%2231610501
TransposeSemiJoinLogicalJoin17698%32388%3201290701
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder13898%2291%2171320501
MergeOneRowRelationIntoUnion12798%1083%2101280401
EliminateJoinCondition8797%4866%4120180601
TransposeSemiJoinAggProject8797%50%181140701
TransposeSemiJoinAgg7997%375%191160701
MergeGenerates6897%50%161130501
MergeProjects4195%50%151100401
PushDownAliasThroughJoin29899%2692%23005501601
PushDownTopNThroughUnion13499%990%1100250501
MergeSetOperationsExcept8198%50%150140401
CollectLimitAboveConsumer7598%50%161180501
LimitAggToTopNAgg619100%147484%1462012901801
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
PushProjectThroughUnion374100%36100%0270790901
InApplyToJoin326100%3397%1210560401
PushDownAggThroughJoinOnPkFk.InnerJoinCluster309100%4397%1310630901
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
PushDownJoinOtherCondition152100%20100%0170320701
DistinctWindowExpression150100%32187%3160370401
ProjectOtherJoinConditionForNestedLoopJoin145100%18100%0130320401
EliminateSort145100%18100%0160300701
UnCorrelatedApplyProjectFilter141100%4100%070290501
SetPreAggStatus.PreAggInfoContext140100%100%0100340901
EliminateConstHashJoinCondition138100%52180%5190330601
PushDownFilterThroughAggregation135100%1593%1120300401
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
PushFilterInsideJoin111100%8100%090260501
EliminateAggCaseWhen110100%1392%1100240301
PushDownFilterThroughWindow106100%12100%0100240401
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
AddProjectForVolatileExpression.OneRowRelationRewrite83100%6100%060200301
PushDownFilterThroughGenerate83100%8100%090200501
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer79100%10100%090150401
UnCorrelatedApplyFilter78100%100%040170301
EliminateSortUnderApply77100%n/a040160401
LimitSortToTopN75100%n/a040200401
ExprIdRewriter.ReplaceRule71100%100%070190601
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CollectFilterAboveConsumer64100%6100%070160401
CheckAndStandardizeWindowFunctionAndFrame63100%n/a040150401
PullUpProjectExprUnderTopN.PullUpInfo61100%100%050140401
EliminateOrderByConstant57100%8100%070160301
SplitLimit52100%4100%060100401
EliminateJoinByUnique51100%4100%060120401
EliminateSortUnderSubqueryOrView51100%n/a04080401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
SemiJoinCommute48100%4100%08080601
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
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.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