org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total4,946 of 71,25293%1,380 of 8,63784%1,2816,3971,06914,827822,0661249
AccessPathExpressionCollector3221,66983%7418070%641696438734201
NestedColumnPruning.DataTypeAccessTree29873271%3210476%30855921661701
SlotTypeReplacer2501,43585%4214677%411304936003601
MultiJoin2364816%200%1925395091501
UnCorrelatedApplyAggregateFilter1403,00995%8046285%743364167416501
InitJoinOrder1400%240%171732325511
ReduceAggregateChildOutputRows1384223%23723%141922310401
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
AggScalarSubQueryToWindowFunction1221,50992%5216676%501683534015901
PushDownEncodeSlot.EncodeSlotPushDownVisitor10992089%218780%20672320611301
PushDownFilterThroughPartitionTopN10610%140%81024271301
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker9214961%212756%1734124021001
PushDownScoreTopNIntoOlapScan8447985%287272%21721912922201
ConstantPropagation811,26893%2617887%221251929712301
RewriteSearchToSlots7840083%154173%1539129901101
PullUpJoinFromUnionAll751,08693%1911585%17832024201601
PushDownEncodeSlot.PushDownContext7321975%102066%72113561601
SetPreAggStatus.PreAggInfoContext7020674%12633%619258301001
StatsDerive6969290%315563%28721317032901
OrExpansion681,06393%156581%15681218302801
PushDownVirtualColumnsIntoOlapScan6770391%269077%25841615602601
VariantSubPathPruning.VariantSubPathReplacer661,49195%913793%10931529022001
CollectPredicateOnScan663131%625%4818280401
PushDownProject6071792%145479%12491116901501
PushDownLimitDistinctThroughJoin6031684%132767%12285550701
PushDownAggThroughJoinOnPkFk5661191%226875%20601313701501
PushDownFilterThroughSetOperation5644488%94984%8391211101001
EliminateAssertNumRows5212670%202555%142912440601
PullUpCteAnchor529263%640%41111301601
EliminateAggregate5220%80%7910133501
SetPreAggStatus.SetOlapScanPreAgg5067993%1110390%1163101470601
PushDownJoinOnAssertNumRows4532987%144275%13378860901
SkipSimpleExprs4512172%111557%8176331401
InferPredicateByReplace.ReplaceAnalyzer425556%833%587180201
PullUpPredicates411,24696%1213191%16120623744601
RewriteCteChildren4154993%4295%236311801401
PushDownTopNThroughJoin3947392%94182%841810811501
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
PushDownEncodeSlot3529489%53988%4305660801
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker3111178%61470%72153211101
PullUpProjectUnderLimit3010477%660%4113210601
SimplifyEncodeDecode305363%880%286210301
DistinctAggregateRewriter2767796%1410688%1374816901401
LogicalResultSinkToShortCircuitPointQuery2719888%3288%5274491901
AccessPathPlanCollector99697%612295%583521401901
AdjustNullable1,39498%1815889%18114127602601
EliminateGroupByKeyByUniform29492%3592%3245660501
PushDownTopNDistinctThroughJoin49295%184671%1745610501201
InferSetOperatorDistinct35593%166279%14475690801
PushDownFilterThroughProject27191%72175%6235700901
NormalizeOlapTableStreamScan1,03498%1110790%1181319402201
DecoupleEncodeDecode10383%1785%3143280401
CheckDataTypes8580%1191%1113250501
PullUpProjectExprUnderTopN.Rewriter6174%675%374161301
NestedColumnPruning1,18198%916394%9113728502701
RewriteSimpleAggToConstantRule37594%86088%84311980901
OperativeColumnDerive36094%4998%23647111101
ConvertOuterJoinToAntiJoin35594%104481%93827301101
SetPreAggStatus32294%104481%83947101201
AddProjectForVolatileExpression.GenerateRewrite3060%50%14290301
DecomposeRepeatWithPreAggregation1,46198%1512989%15100828202701
PushDownExpressionsInHashCondition34294%1487%32857822001
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}3665%50%376170301
UnequalPredicateInfer.InferenceGraph1,55698%1223495%13146826312301
SaltJoin80597%237877%2367916101601
EliminateGroupByKey48196%5092%33671030901
ExtractAndNormalizeWindowExpression29394%2589%52817131401
PruneOlapScanTablet19491%72376%6204430501
ReorderJoin80497%118588%1161317401301
InferPredicates62297%87390%756512501401
PullUpCorrelatedFilterUnderApplyAggregateProject16290%1083%2100350401
VariantSubPathPruning10786%51575%3156330501
PruneFileScanPartition22193%61470%72044911001
PushDownVectorTopNIntoOlapScan32795%94182%9326790701
CheckDataTypes.ExpressionChecker8585%1191%1103230401
PushCountIntoUnionAll45597%124277%124279601501
NormalizeToSlot.NormalizeToSlotContext22594%2589%42545511101
ScalarApplyToJoin11589%866%5132261701
ColumnPruning96198%810092%781121502701
EliminateEmptyRelation65998%118989%967214601701
AddProjectForVolatileExpression41997%83681%6313980901
PushDownUnnestInProject29996%52784%5222560601
TransposeSemiJoinLogicalJoinProject24795%102470%102944501201
PushDownTopNThroughWindow21694%72376%7216560601
AccessPathInfo63%n/a376143701
MergePercentileToArray45197%3597%1261890801
SkewJoin24895%63284%6254600601
MergeTopNs8989%562%373230301
AccessPathExpressionCollector.CollectAccessPathResult7086%5550%6122151701
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
SetPreAggStatus.SetOlapScanPreAgg.KeySlotAggChecker3173%100%17181601
PullUpProjectExprUnderTopN87998%1014893%10100318702101
SumLiteralRewrite53198%85487%842311001101
PushProjectIntoUnion24296%2990%3211500501
CheckScoreUsage13993%1275%52024011201
AddDefaultLimit12693%51575%7193292901
PruneEmptyPartition12393%51979%5173320501
CountDistinctRewrite12193%62076%5192280601
CreatePartitionTopNFromWindow8490%975%391180301
PushDownFilterThroughSort5185%50%16180501
EliminateOuterJoin33297%124277%113836401101
PullUpProjectUnderTopN17595%1275%4142330601
PushDownFilterThroughRepeat8291%562%383220401
SumLiteralRewrite.SumInfo6288%5550%584160301
EliminateLimit5687%66%281120501
EliminateDedupJoinCondition5487%50%362150301
RecordPlanForMvPreRewrite4785%100%063180501
PruneOlapScanPartition47898%7697%249111901001
DistinctAggStrategySelector25797%3790%3271580601
PushDownProject.PushdownProjectHelper21396%2492%2182540501
QueryPartitionCollector11794%1083%293320301
AdjustConjunctsReturnType10693%66%2101250701
UnequalPredicateInfer8592%675%373241301
MergeLimits8592%880%2111170601
EliminateSemiJoin5989%787%1101180501
CheckRestorePartition3884%66%262100301
CTEInliner40798%64488%64018801501
VariantSubPathPruning.VariantSubPathCollector29898%3397%1251630801
SimplifyAggGroupBy18196%53186%5263510801
EliminateNullAwareLeftAntiJoin2982%50%151100401
JoinExtractOrFromCaseWhen70699%1210689%1271315801201
ForeignKeyContext44898%73583%74648502501
PushDownLimit38998%2187%32327101001
VariantSubPathPruning.Context26298%2388%4222581901
PushDownMatchProjectionAsVirtualColumn21897%2388%3221480901
AddProjectForVolatileExpression.JoinRewrite12596%50%261310301
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
PullUpProjectExprUnderTopN.ProjectSimplifier4690%675%271110301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker83%100%16141401
CheckMultiDistinct80%50%15150401
SplitMultiDistinctStrategy67699%4197%231211411001
EliminateJoinByFK30998%2692%22426001001
SimplifyWindowExpression26998%3397%1241610701
InferPredicateByReplace.PredicatesCollector19297%2083%42623301401
InferAggNotNull18097%2990%3231440701
PullUpProjectUnderApply8695%562%270170301
ForeignKeyContext.QualifiedColumn5192%562%372110301
InferPredicateByReplace27598%3694%3281661901
PushDownLimitDistinctThroughUnion16398%880%2121290701
PushDownTopNDistinctThroughUnion14898%880%2111260601
NormalizeToSlot.NormalizeWithoutWindowFunction12397%1794%1121300301
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}89%75%14190201
AccessPathExpressionCollector.CollectorContext88%n/a141101401
MultiDistinctFunctionStrategy85%100%14171301
EliminateGroupBy35499%3294%2241700701
EliminateOrderByKey34299%3597%1251810701
PushDownAggThroughJoinOnPkFk.InnerJoinCluster33399%4495%2321700901
PullUpJoinFromUnionAll.LogicalPlanComparator23599%54189%5291420601
TransposeSemiJoinLogicalJoin17698%2388%3201290701
InferInPredicateFromOr14998%1285%2131380601
TransposeSemiJoinAgg12098%1593%11812101001
MergeGenerates6897%50%161130501
MergeProjects4195%50%151100401
PushDownAliasThroughJoin29899%2692%23005501601
MaxMinFilterPushDown25699%54389%5310480701
PushDownFilterIntoSchemaScan22699%4095%2291470801
PushDownTopNThroughUnion13499%990%1100250501
MergeSetOperationsExcept8198%50%150140401
CollectLimitAboveConsumer7598%50%161180501
LimitAggToTopNAgg619100%137585%1362012901801
MergeAggregate521100%5296%247011702001
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
PushProjectThroughUnion374100%36100%0270790901
InApplyToJoin336100%3797%1230580401
CTEInline311100%3196%12706201101
PushDownFilterThroughJoin263100%3597%1230610501
UnCorrelatedApplyAggregateFilter.CorrelatedAggregatePredicates225100%1688%22704201801
CheckPrivileges224100%1986%3190520801
MergeSetOperations214100%2395%1190480701
CountLiteralRewrite204100%30100%0220430701
EliminateFilter194100%2291%2180400601
InferJoinNotNull185100%20100%0150340501
EliminateNotNull184100%22100%0170470601
ExistsApplyToJoin179100%787%1110310701
EliminateJoinCondition165100%2388%3220340801
UnCorrelatedApplyProjectFilter159100%100%070330501
PushDownJoinOtherCondition152100%20100%0170320701
EliminateConstHashJoinCondition152100%2284%4190360601
ProjectOtherJoinConditionForNestedLoopJoin145100%18100%0130320401
EliminateSort145100%18100%0160300701
DistinctWindowExpression142100%2187%3160370401
PushDownFilterThroughAggregation135100%1593%1120300401
MergeOneRowRelationIntoUnion134100%12100%0100290401
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
EliminateAggCaseWhen115100%1593%1110260301
CheckMatchExpression114100%1487%2130210501
PushFilterInsideJoin111100%8100%090260501
PushDownFilterThroughWindow106100%12100%0100240401
ForeignKeyContext.new DefaultPlanVisitor() {...}100100%8100%0100220601
EliminateUnnecessaryProject98100%14100%0120210501
UnCorrelatedApplyFilter94100%100%040210301
AddProjectForVolatileExpression.AggregateRewrite90100%100%050210301
TransposeSemiJoinAggProject90100%100%080140701
FindHashConditionForJoin84100%583%160240301
AddProjectForVolatileExpression.OneRowRelationRewrite83100%6100%060200301
PushDownFilterThroughGenerate83100%8100%090200501
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer81100%10100%0100160501
EliminateSortUnderApply77100%n/a040160401
LimitSortToTopN75100%n/a040200401
ExprIdRewriter.ReplaceRule71100%100%070190601
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%975%3120120601
CollectFilterAboveConsumer64100%6100%070160401
CheckAndStandardizeWindowFunctionAndFrame63100%n/a040150401
PullUpProjectExprUnderTopN.PullUpInfo61100%100%050140401
EliminateOrderByConstant57100%8100%070160301
SplitLimit52100%100%060100401
EliminateJoinByUnique51100%100%060120401
EliminateSortUnderSubqueryOrView51100%n/a04080401
UnCorrelatedApplyAggregateFilter.TheAggregation49100%100%080120701
NormalizeToSlot.NormalizeToSlotTriplet49100%100%040120201
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
SemiJoinCommute48100%100%08080601
AddProjectForVolatileExpression.FilterRewrite44100%100%040100301
AddProjectForVolatileExpression.ProjectRewrite43100%100%04080301
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.ReplacerContext100%n/a01070101
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree100%100%03060201
AddProjectForJoin100%n/a03040301
DistinctAggregateRewriter.Strategy100%n/a01020101
OrExpansion.OrExpandsionContext100%n/a01050101
PushDownAggThroughJoinOnPkFk.PrimaryForeignInfo100%n/a01060101
ColumnPruning.PruneContext100%n/a01060101
CTEInliner.InlineResult100%n/a03060301
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
EliminateGroupByKey.EliminateResult100%n/a01050101
AddProjectForVolatileExpression.JoinRewriteResult100%n/a01050101
InlineLogicalView100%n/a02020201
DistinctAggregateRewriter.DistinctDistributionInfo100%n/a01040101
EliminateGroupByKey.FindResult100%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