org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total10,262 of 68,49985%1,980 of 8,12775%1,6626,0752,09914,2171722,0003247
SaltJoin778435%9387%6067152160121601
AggScalarSubQueryToWindowFunction69993257%11010849%85168168340145901
PushDownAggThroughJoin6700%880%6767127127232311
PushDownAggWithDistinctThroughJoinOneSide469275%620%44468596131501
PushDownAggThroughJoinOnPkFk42815826%701416%42568611841401
AccessPathExpressionCollector3121,42482%6314970%551456032943901
SlotTypeReplacer2801,40583%4414476%421305636013601
AddProjectForVolatileExpression27215936%311329%203156982901
PushDownJoinOnAssertNumRows27010427%352137%243757864901
PushDownUnnestInProject2704113%2939%172249562601
NestedColumnPruning.DataTypeAccessTree26968471%238979%24735620461701
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker2410%480%34344040101011
MultiJoin2364816%200%1925395091501
PushDownAggThroughJoinOnPkFk.InnerJoinCluster18015546%192758%123240702901
SetPreAggStatus.SetOlapScanPreAgg17355676%288675%2663331470601
ReduceAggregateChildOutputRows1384223%23723%141922310401
PullUpJoinFromUnionAll1331,02888%3110376%25833424201601
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PushDownLimitDistinctThroughJoin12125567%202050%142811550701
JoinExtractOrFromCaseWhen11959283%328672%24712515811201
EliminateGroupBy11424368%112367%82417700701
PushDownEncodeSlot.EncodeSlotPushDownVisitor10992089%218780%20672320611301
PushDownTopNThroughWindow10612253%161446%122124560601
PushDownFilterThroughPartitionTopN10610%140%81024271301
ConstantPropagation1001,24092%3616682%291242229512301
VariantSubPathPruning.VariantSubPathReplacer901,50994%1413690%14951929522001
PushDownScoreTopNIntoOlapScan8947984%297171%22722013122201
InferPredicateByReplace.ReplaceAnalyzer898%120%7816181201
AdjustNullable881,33193%2515185%241141227602601
PushDownTopNDistinctThroughJoin8736480%212958%1537188801101
PushDownFilterThroughSetOperation8441683%144475%12391811101001
RewriteSearchToSlots7840083%154173%1539129901101
PushDownVirtualColumnsIntoOlapScan7768989%308674%27841615602601
StatsDerive7568690%355159%30721317032901
PushDownEncodeSlot.PushDownContext7321975%102066%72113561601
ForeignKeyContext7233382%152764%1343127922201
SetPreAggStatus.PreAggInfoContext7020674%12633%619258301001
CollectPredicateOnScan702727%712%5820281401
AddProjectForVolatileExpression.JoinRewrite696146%516%3618310301
OrExpansion681,06393%156581%15681218302801
PushDownProject6371491%165276%14491216901501
PullUpPredicates591,22895%1512889%181201123744601
RewriteCteChildren5753390%44090%436611801401
InferSetOperatorDistinct5632385%294962%214711690801
PushProjectIntoUnion5619577%141856%10219501501
DistinctAggregateRewriter5564992%279377%23741716901401
SkewJoin5420579%92976%82512600601
AddProjectForVolatileExpression.OneRowRelationRewrite542934%516%3612200301
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
CollectLimitAboveConsumer512532%0%4611183501
DecomposeRepeatWithPreAggregation501,43096%2212284%191001128202701
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
SkipSimpleExprs4512172%111557%8176331401
MaxMinFilterPushDown4221583%143470%11316480701
AccessPathPlanCollector391,00796%1012492%987821702001
PushDownTopNThroughJoin3947392%94182%841810811501
EliminateAssertNumRows389972%141957%102210330501
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
PushDownEncodeSlot3529489%53988%4305660801
CheckScoreUsage3230290%103276%1138108711701
PullUpProjectUnderTopN3215182%51168%5144330601
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker3111178%61470%72153211101
EliminateSortUnderApply314659%n/a145161401
NormalizeOlapTableStreamScan3098897%229481%2278519402001
PullUpProjectUnderLimit3010477%4660%4113210601
SimplifyEncodeDecode305363%880%286210301
EliminateGroupByKey2947094%45092%43691031901
PushDownLimit2936592%42083%42357101001
SumLiteralRewrite2651195%95185%941510801101
MergePercentileToArray2643694%53186%5263890801
EliminateGroupByKeyByUniform2529492%33592%3245660501
LogicalResultSinkToShortCircuitPointQuery2517787%32589%4233411901
UnequalPredicateInfer.InferenceGraph241,55098%1323394%141461026312301
ExtractAndNormalizeWindowExpression2428792%42485%62827131401
PushDownFilterThroughProject2427191%82071%7235700901
MergeTopNs237777%5337%475230301
InferPredicates2261796%117086%1056712501401
DistinctAggStrategySelector2224291%122970%11277580601
DecoupleEncodeDecode2110383%31785%3143280401
CheckDataTypes218580%1191%1113250501
PullUpProjectExprUnderTopN.Rewriter216174%675%374161301
RewriteSimpleAggToConstantRule2037594%95986%94311980901
OperativeColumnDerive2036094%4998%23647111101
SetPreAggStatus2032294%104481%83947101201
AddProjectForVolatileExpression.GenerateRewrite203060%50%14290301
PushDownExpressionsInHashCondition1934294%31381%42857822001
VariantSubPathPruning199683%71568%5157300401
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}193665%4450%376170301
PushCountIntoUnionAll1845196%144074%144299601501
ConvertOuterJoinToAntiJoin1835795%84685%83837301101
PruneOlapScanTablet1819591%72376%6204430501
ReorderJoin1780497%118588%1161317401301
PushDownVectorTopNIntoOlapScan1732595%104080%10327790701
PushDownAliasThroughJoin1728294%32589%33025501601
PullUpJoinFromUnionAll.LogicalPlanComparator1722092%103678%9296420601
PruneFileScanPartition1622193%61470%72044911001
NestedColumnPruning151,24298%1117394%11122529903001
CheckDataTypes.ExpressionChecker158585%1191%1103230401
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
AddProjectForVolatileExpression.FilterRewrite3068%50%143100301
SimplifyAggGroupBy17493%92775%8266510801
ScalarApplyToJoin11589%4866%5132261701
CheckMatchExpression10188%41275%4131210501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
ColumnPruning96198%810092%781121502701
EliminateEmptyRelation65998%118989%967214601701
TransposeSemiJoinLogicalJoinProject24795%112367%112944501201
AccessPathInfo2163%n/a376143701
AddProjectForVolatileExpression.JoinRewriteResult0%n/a11551111
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
SetPreAggStatus.SetOlapScanPreAgg.KeySlotAggChecker3173%100%17181601
PullUpProjectExprUnderTopN87998%1014893%10100318702101
AccessPathExpressionCollector.CollectAccessPathResult5083%3562%4112141701
EliminateJoinByFK30497%32589%32426001001
PruneEmptyPartition12393%51979%5173320501
CountDistinctRewrite12193%62076%5192280601
CreatePartitionTopNFromWindow8490%3975%391180301
PushDownFilterThroughSort5185%50%16180501
EliminateOuterJoin33297%124277%113836401101
PushDownFilterThroughRepeat8291%3562%383220401
SumLiteralRewrite.SumInfo6288%5550%584160301
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
PruneOlapScanPartition46598%47094%447111601001
EliminateOrderByKey33797%3494%2252810701
PushDownProject.PushdownProjectHelper21396%2492%2182540501
QueryPartitionCollector11794%1083%293320301
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
MergeLimits8592%880%2111170601
EliminateSemiJoin5989%787%1101180501
CheckRestorePartition3884%466%262100301
CTEInliner40798%64488%64018801501
VariantSubPathPruning.VariantSubPathCollector29898%3397%1251630801
EliminateNullAwareLeftAntiJoin2982%50%151100401
VariantSubPathPruning.Context26298%32388%4222581901
PushDownMatchProjectionAsVirtualColumn21897%32388%3221480901
PushDownJoinOtherCondition14796%1995%1171320701
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer7493%990%191150401
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
SplitLimit4790%375%161100401
PullUpProjectExprUnderTopN.ProjectSimplifier4690%675%271110301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker2683%4100%16141401
CheckMultiDistinct2180%50%15150401
SplitMultiDistinctStrategy67699%4197%231211411001
MergeAggregate51799%74787%647111702001
InferPredicateByReplace27498%3694%3282661901
SimplifyWindowExpression24498%2492%2191570601
InferAggNotNull20098%33992%3291440801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
TransposeSemiJoinLogicalJoin17497%42284%4201290701
AddDefaultLimit12296%51575%6182281801
PullUpProjectUnderApply9996%3975%2100170401
PushDownLimitDistinctThroughUnion16398%880%2121290701
PushDownTopNDistinctThroughUnion14898%880%2111260601
PushDownTopNThroughUnion13297%880%2101250501
NormalizeToSlot.NormalizeWithoutWindowFunction12397%1794%1121300301
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
AccessPathExpressionCollector.CollectorContext2488%n/a141101401
MultiDistinctFunctionStrategy1885%100%14171301
PushDownFilterThroughJoin26199%33391%3231610501
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder13898%2291%2171320501
MergeOneRowRelationIntoUnion12798%1083%2101280401
EliminateAggCaseWhen10898%1285%2101240301
EliminateJoinCondition8797%4866%4120180601
TransposeSemiJoinAggProject8797%50%181140701
TransposeSemiJoinAgg7997%375%191160701
MergeGenerates6897%50%161130501
MergeProjects4195%50%151100401
LimitAggToTopNAgg61899%167281%1662012901801
PushDownFilterIntoSchemaScan22699%4095%2291470801
MergeSetOperationsExcept8198%50%150140401
CollectFilterAboveConsumer6398%583%171160401
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
PushProjectThroughUnion374100%36100%0270790901
InApplyToJoin336100%3797%1230580401
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
DistinctWindowExpression150100%32187%3160370401
ProjectOtherJoinConditionForNestedLoopJoin145100%18100%0130320401
EliminateSort145100%18100%0160300701
UnCorrelatedApplyProjectFilter141100%4100%070290501
EliminateConstHashJoinCondition138100%62076%6190330601
PushDownFilterThroughAggregation135100%1593%1120300401
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
PushFilterInsideJoin111100%8100%090260501
PushDownFilterThroughWindow106100%1191%1100240401
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%675%290200501
UnCorrelatedApplyFilter78100%100%040170301
LimitSortToTopN75100%n/a040200401
ExprIdRewriter.ReplaceRule71100%100%070190601
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CheckAndStandardizeWindowFunctionAndFrame63100%n/a040150401
PullUpProjectExprUnderTopN.PullUpInfo61100%100%050140401
EliminateOrderByConstant57100%8100%070160301
EliminateJoinByUnique51100%4100%060120401
EliminateSortUnderSubqueryOrView51100%n/a04080401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
SemiJoinCommute48100%4100%08080601
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
EliminateLimitUnderApply38100%100%040100301
CollectCteConsumerOutput35100%n/a04070401
BuildAggForUnion33100%100%05050401
MergeFilters31100%n/a03070301
OperativeColumnDerive.DeriveContext31100%100%050100401
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
DistinctAggregateRewriter.Strategy21100%n/a01020101
OrExpansion.OrExpandsionContext17100%n/a01050101
ColumnPruning.PruneContext16100%n/a01060101
CTEInliner.InlineResult15100%n/a03060301
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
EliminateGroupByKey.EliminateResult100%n/a01050101
InlineLogicalView100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
ClearContextStatus100%n/a02030201
DistinctAggregateRewriter.DistinctDistributionInfo100%n/a01040101
StatsDerive.DeriveContext100%n/a01020101
EliminateGroupByKey.FindResult100%n/a01040101
PullUpProjectExprUnderTopN.RewriteContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101