org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total10,983 of 71,37684%2,151 of 8,67175%1,7916,4172,29914,8472312,06919249
UnequalPredicateInfer.InferenceGraph1,5810%2480%147147263263232311
ReorderJoin8270%980%6262175175131311
AggScalarSubQueryToWindowFunction69993257%11010849%85168168340145901
InferPredicates6390%810%5656125125141411
PushDownFilterThroughSetOperation5000%580%3939111111101011
InferPredicateByReplace3450%660%43437979101011
PushDownFilterThroughProject2950%280%232370709911
AccessPathExpressionCollector2711,73486%7018472%621705338834301
PushDownFilterThroughJoin2630%360%232361615511
SlotTypeReplacer2501,43685%4214677%411304936003601
MultiJoin2364816%200%1925395091501
InferPredicateByReplace.PredicatesCollector1960%240%26263333141411
PushDownJoinOtherCondition1520%200%171732327711
UnCorrelatedApplyAggregateFilter1403,00995%7946385%733364167416501
InitJoinOrder1400%240%171732325511
NestedColumnPruning.DataTypeAccessTree13989186%2411282%26853121661701
ReduceAggregateChildOutputRows1384223%23723%141922310401
PushDownFilterThroughAggregation1350%160%121230304411
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PushDownAggThroughJoinOnPkFk.InnerJoinCluster12221363%172963%103230700901
PushDownFilterThroughPartitionTopN1180%140%101027273311
PushFilterInsideJoin1110%80%9926265511
PushDownEncodeSlot.EncodeSlotPushDownVisitor10992089%218780%20672320611301
PushDownFilterThroughWindow1060%120%101024244411
InferPredicateByReplace.ReplaceAnalyzer970%120%8818182211
UnequalPredicateInfer930%80%7724243311
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker9214961%212756%1734124021001
PushDownScoreTopNIntoOlapScan8447985%287272%21721912922201
PushDownFilterThroughGenerate830%80%9920205511
ConstantPropagation811,26893%2617887%221251929712301
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer810%100%101016165511
RewriteSearchToSlots7840083%154173%1539129901101
PullUpJoinFromUnionAll751,08693%1911585%17832024201601
StatsDerive7568690%355159%30721317032901
PushDownEncodeSlot.PushDownContext7321975%102066%72113561601
PushDownAggThroughJoinOnPkFk7259589%276370%25601613701501
SetPreAggStatus.PreAggInfoContext7020674%12633%619258301001
OrExpansion681,06393%156581%15681218302801
PushDownVirtualColumnsIntoOlapScan6770391%269077%25841615602601
VariantSubPathPruning.VariantSubPathReplacer661,49195%913793%10931529022001
CollectPredicateOnScan663131%625%4818280401
CollectFilterAboveConsumer640%60%7716164411
PushDownTopNThroughWindow6216672%111963%92115560601
PushDownProject6071792%145479%12491116901501
SetPreAggStatus.SetOlapScanPreAgg6066991%1210289%1263121470601
PushDownLimitDistinctThroughJoin6031684%132767%12285550701
PushDownJoinOnAssertNumRows5931584%154173%143711860901
InferSetOperatorDistinct5632385%294962%214711690801
EliminateAssertNumRows5212670%202555%142912440601
PullUpCteAnchor529263%640%41111301601
EliminateAggregate5220%80%7910133501
SkipSimpleExprs4512172%111557%8176331401
PullUpPredicates411,24696%1213191%16120623744601
RewriteCteChildren4154993%4295%236311801401
PushDownTopNThroughJoin3947392%94182%841810811501
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
PushDownEncodeSlot3529489%53988%4305660801
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker3111178%61470%72153211101
DecomposeRepeatWithPreAggregation301,45097%1812687%17100928202701
PullUpProjectUnderLimit3010477%660%4113210601
SimplifyEncodeDecode305363%880%286210301
DistinctAggregateRewriter2767796%1510587%1474816901401
LogicalResultSinkToShortCircuitPointQuery2719888%3288%5274491901
AccessPathPlanCollector99697%612295%583521401901
AdjustNullable1,39498%1815889%18114127602601
EliminateGroupByKeyByUniform29492%3592%3245660501
PushDownTopNDistinctThroughJoin49295%184671%1745610501201
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
PushDownExpressionsInHashCondition34294%1487%32857822001
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}3665%50%376170301
SaltJoin80597%237877%2367916101601
EliminateGroupByKey48196%5092%33671030901
ExtractAndNormalizeWindowExpression29394%2589%52817131401
PruneOlapScanTablet19491%72376%6204430501
PullUpCorrelatedFilterUnderApplyAggregateProject16290%1083%2100350401
VariantSubPathPruning10786%51575%3156330501
PruneFileScanPartition22193%61470%72044911001
PushDownVectorTopNIntoOlapScan32795%94182%9326790701
CheckDataTypes.ExpressionChecker8585%1191%1103230401
PushCountIntoUnionAll45597%124277%124279601501
NormalizeToSlot.NormalizeToSlotContext22594%2589%42545511101
PushDownFilterIntoSchemaScan24294%4193%3314520901
ScalarApplyToJoin11589%866%5132261701
ColumnPruning96198%810092%781121502701
EliminateEmptyRelation65998%118989%967214601701
AddProjectForVolatileExpression41997%83681%6313980901
PushDownUnnestInProject29996%52784%5222560601
TransposeSemiJoinLogicalJoinProject24795%102470%102944501201
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
EliminateJoinByFK30497%2589%32426001001
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%7596%349111901001
DistinctAggStrategySelector25797%3790%3271580601
PushDownProject.PushdownProjectHelper21396%2492%2182540501
QueryPartitionCollector11794%1083%293320301
AdjustConjunctsReturnType10693%66%2101250701
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
SimplifyWindowExpression26998%3397%1241610701
InferAggNotNull18097%2990%3231440701
TransposeSemiJoinLogicalJoin17497%2284%4201290701
PullUpProjectUnderApply8695%562%270170301
ForeignKeyContext.QualifiedColumn5192%562%372110301
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
PullUpJoinFromUnionAll.LogicalPlanComparator23599%54189%5291420601
InferInPredicateFromOr14998%1285%2131380601
TransposeSemiJoinAgg12098%1593%11812101001
MergeGenerates6897%50%161130501
MergeProjects4195%50%151100401
PushDownAliasThroughJoin29899%2692%23005501601
MaxMinFilterPushDown25699%54389%5310480701
PushDownTopNThroughUnion13499%990%1100250501
MergeSetOperationsExcept8198%50%150140401
CollectLimitAboveConsumer7598%50%161180501
LimitAggToTopNAgg619100%147484%1462012901801
MergeAggregate521100%5296%247011702001
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
PushProjectThroughUnion374100%36100%0270790901
InApplyToJoin336100%3797%1230580401
CTEInline311100%3196%12706201101
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
EliminateConstHashJoinCondition152100%2284%4190360601
ProjectOtherJoinConditionForNestedLoopJoin145100%18100%0130320401
EliminateSort145100%18100%0160300701
DistinctWindowExpression142100%2187%3160370401
MergeOneRowRelationIntoUnion134100%12100%0100290401
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
EliminateAggCaseWhen115100%1593%1110260301
CheckMatchExpression114100%1487%2130210501
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
EliminateSortUnderApply77100%n/a040160401
LimitSortToTopN75100%n/a040200401
ExprIdRewriter.ReplaceRule71100%100%070190601
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%975%3120120601
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