org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total26,106 of 65,38860%3,742 of 7,67551%2,8565,7884,99213,4465031,93910242
PullUpJoinFromUnionAll1,087796%121139%7383221242101601
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
OrExpansion96417315%661417%5668145183212801
VariantSubPathPruning.VariantSubPathReplacer87273645%846644%519515429872001
SaltJoin805435%9476%6167151159121601
SlotTypeReplacer79688652%958948%7212815735783601
AccessPathExpressionCollector76073749%1038144%88131148295213901
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
PushDownAggThroughJoin6940%880%6767127127232311
PushDownVirtualColumnsIntoOlapScan65211414%11243%7984137156212601
AggScalarSubQueryToWindowFunction63919223%671518%6182118148264101
AccessPathPlanCollector63038938%854333%478313521241901
NestedColumnPruning4941,53175%12620061%8719613948153301
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
PushDownAggThroughJoinOnPkFk45812421%721012%46558711771401
SumLiteralRewrite42211521%461423%31417710851101
NestedColumnPruning.DataTypeAccessTree41570062%729456%561017922371801
MergePercentileToArray4125010%32411%212675894801
PushDownTopNDistinctThroughJoin406419%460%3335768891101
PushDownLimitDistinctThroughJoin3253710%360%242641525701
PushDownProject31446359%363247%28497016941501
PushDownJoinOnAssertNumRows3116316%451119%293765865901
PushDownEncodeSlot304257%424%273058665801
PushDownEncodeSlot.PushDownContext2980%300%212156566611
PushDownLimit29110326%228%1923457161001
DistinctAggregateRewriter28936956%594945%42676715421301
PushDownScoreTopNIntoOlapScan27323546%632125%46606011681801
PushDownUnnestInProject2704113%2939%172249562601
StatsDerive26949264%563034%467255170102901
MergeAggregate26625548%382034%29495911372001
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
PullUpPredicates2441,04381%489566%411204623744601
EliminateJoinByFK2367724%22621%1724446051001
MultiJoin2364816%200%1925395091501
DecomposeRepeatWithPreAggregation2251,19384%3810673%36994327462601
NormalizeOlapTableStreamScan.OlapTableStreamScanReplacer2172%380%222344453401
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker205229%460%3033343871001
InferPredicates20442767%324558%22544012121401
PushDownVectorTopNIntoOlapScan18614844%331531%183146770701
ForeignKeyContext17722856%212150%2343317992201
LimitAggToTopNAgg17542070%305062%32583112551801
SetPreAggStatus.SetOlapScanPreAgg16835667%274763%2444251050701
ReduceAggregateChildOutputRows1671910%293%161925311401
PruneFileScanPartition1628%120%111333375701
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15515449%212352%153133632901
PushDownFilterThroughSetOperation15226063%182457%1531318611001
SimplifyWindowExpression1509839%20623%121931571601
PushDownFilterThroughProject14814749%171139%142334704901
EliminateEmptyRelation14647376%286068%20602813401601
TransposeSemiJoinLogicalJoin1463217%253%162020293701
PushDownDistinctThroughJoin1440%200%181827278811
PushDownLimitDistinctThroughUnion1391912%80%91121275701
InApplyToJoin13619058%161852%122121560401
SplitMultiDistinctStrategy13553579%103276%830181131901
EliminateGroupByKeyByUniform13418557%182052%122427661501
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
AdjustNullable1281,29991%3114582%281142027602601
ConstantPropagation1261,21490%4315978%351243129512301
EliminateGroupBy12423365%122264%92417700701
AddProjectForVolatileExpression1249443%11531%71321440501
JoinExtractOrFromCaseWhen12358882%358370%27712715811201
MaxMinFilterPushDown12113652%282041%173120480701
ReorderJoin11870985%247275%23612317421301
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1184828%14630%1421203241101
PushDownTopNThroughWindow1139946%17934%141928521601
InferPredicateByReplace.ReplaceAnalyzer1076%120%7816181201
PushDownMatchProjectionAsVirtualColumn10411953%141246%112220482901
DecoupleEncodeDecode1032116%1810%111422281401
PushDownFilterThroughPartitionTopN10310%120%7924271301
VariantSubPathPruning.Context9916862%91765%92220582901
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker940%140%151513138811
ExistsApplyToJoin899050%3562%41113311701
PushDownTopNThroughJoin8324474%121860%926146301001
PushCountIntoUnionAll8138882%243055%2042199611501
PullUpProjectUnderLimit812825%433%6910163601
RewriteSearchToSlots7841384%154173%1539129901101
RewriteCteChildren7751386%103477%1036911801401
PushDownFilterThroughRepeat7714%80%6819222401
PullUpProjectUnderTopN738553%5758%51210281601
TransposeSemiJoinLogicalJoinProject7118872%201441%1629114501201
CountDistinctRewrite715945%161038%121916282601
CollectPredicateOnScan702727%712%5820281401
SumLiteralRewrite.SumInfo700%100%8816163311
AddProjectForVolatileExpression.JoinRewrite686147%516%3617310301
DistinctWindowExpression677452%121045%91512350401
CTEInliner6434984%183264%154098811501
PushDownFilterIntoSchemaScan6116673%271535%172911471801
MergePercentileToArray.DistinctAndExpr590%100%9913134411
SkewJoin5821178%143269%122812600501
PruneEmptyPartition587255%141041%101714321501
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5619577%141856%10219501501
EliminateOuterJoin5429784%322442%2239116821101
AddProjectForVolatileExpression.OneRowRelationRewrite542934%516%3612200301
MergeGenerates5422%0%469133501
DistinctAggStrategySelector5321680%202353%172813580601
ExtractSingleTableExpressionFromDisjunction5233986%63485%431129001101
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}525%80%6716172301
UnequalPredicateInfer.InferenceGraph501,52596%2522189%231461226312301
EliminateOrderByKey5026884%62882%52310750601
EliminateAssertNumRows508763%181545%132213330501
EliminateSortUnderApply502735%n/a2410162401
EliminateGroupByKey4921781%121453%92110510801
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
TransposeSemiJoinAgg483340%325%695164701
MergeTopNs4820%0%2412161301
PushDownVirtualColumnsIntoOlapScan.SkipResult480%60%77884411
PushDownFilterThroughSort4721%0%46583501
SkipSimpleExprs4512172%111557%8176331401
CollectLimitAboveConsumer442536%n/a359163501
MergeLimits433846%5337%5106151601
CheckMultiDistinct399671%121860%9196270401
PruneOlapScanPartition3843491%185675%1647811601001
AddDefaultLimit388869%12840%10189281801
SimplifyEncodeDecode374655%4660%387210301
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
SetPreAggStatus3621085%52784%72775721101
ExtractAndNormalizeWindowExpression3528288%72175%92837131401
QueryPartitionCollector359573%3975%399320301
VariantSubPathPruning338371%101254%6159300401
CheckScoreUsage3212579%8850%92074031201
EliminateSemiJoin324055%5337%4107180501
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
LogicalResultSinkToShortCircuitPointQuery2717586%62278%7234411901
ColumnPruning2694797%99991%881421502701
RewriteSimpleAggToConstantRule2636993%125682%124312980901
UnCorrelatedApplyAggregateFilter2516386%4660%482400301
PullUpCorrelatedFilterUnderApplyAggregateProject2515486%5758%5102350401
PushDownFilterThroughAggregation2511081%31381%3124300401
ConvertOuterJoinToAntiJoin2424290%112367%9262480901
PruneOlapScanTablet2418888%92170%7205430501
CreatePartitionTopNFromWindow246974%6650%493180301
PushDownExpressionsInHashCondition2334493%41275%52867822001
CheckDataTypes218580%1191%1113250501
AddProjectForVolatileExpression.GenerateRewrite203060%50%14290301
EliminateLimitUnderApply191950%50%145100301
CTEInline1822992%41881%4192480801
MergeOneRowRelationIntoUnion1811686%3975%3103280401
AccessPathExpressionCollector.AccessPathBuilder182760%n/a385143801
PushDownAliasThroughJoin1728294%32589%33025501601
PushDownFilterThroughJoin1724693%102672%8235610501
AccessPathExpressionCollector.CollectAccessPathResult175074%3562%4112141701
OperativeColumnDerive41196%36195%34238001001
SimplifyAggGroupBy10287%71568%5171260601
CheckDataTypes.ExpressionChecker8585%1191%1103230401
CheckRestorePartition3871%466%262100301
EliminateSortUnderSubqueryOrView3670%n/a14081401
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
NormalizeToSlot.NormalizeWithoutWindowFunction11288%41477%4124300301
PushDownFilterThroughWindow8585%787%183230401
AddProjectForVolatileExpression.FilterRewrite3068%50%143100301
ScalarApplyToJoin11589%4866%5132261701
CheckMatchExpression9988%41477%4141220501
PushFilterInsideJoin9888%3562%493261501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker2969%50%27281601
InferJoinNotNull17393%41680%4152340501
SetPreAggStatus.PreAggInfoContext12891%100%2104342901
ExprIdRewriter.ReplaceRule5983%100%172191601
NestedColumnPruning.OffsetPathRewrite2769%n/a373113701
AccessPathInfo2163%n/a376143701
PullUpProjectUnderApply9289%4866%3101170401
InferPredicateByReplace26996%63284%6283661901
AccessPathExpressionCollector.CollectorContext1762%n/a344103401
PushDownProject.PushdownProjectHelper21195%42284%4183540501
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
EliminateSort13995%1794%1161300701
EliminateNullAwareLeftAntiJoin2982%50%151100401
InferAggNotNull20498%44090%4301450801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
EliminateOrderByConstant5392%787%171160301
UnCorrelatedApplyProjectFilter13897%50%271290501
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
MultiDistinctFunctionStrategy1885%100%14171301
CountLiteralRewrite20299%2996%1221430701
ProjectOtherJoinConditionForNestedLoopJoin15698%41881%4160350501
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder13898%61875%6171320501
EliminateJoinCondition8797%4866%4120180601
UnCorrelatedApplyFilter7697%50%141170301
MergeProjects4195%50%151100401
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
CollectFilterAboveConsumer6398%583%171160401
PushProjectThroughUnion320100%30100%0240650901
CheckPrivileges224100%31986%3190520801
MergeSetOperations214100%2395%1190480701
EliminateFilter194100%32187%3180400601
EliminateNotNull184100%22100%0170470601
EliminateConstHashJoinCondition147100%62076%6190330601
PushDownJoinOtherCondition145100%18100%0160300701
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
InferSetOperatorDistinct114100%1794%1180220901
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%675%290200501
LimitSortToTopN75100%n/a040200401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer71100%787%180130401
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CheckAndStandardizeWindowFunctionAndFrame63100%n/a040150401
EliminateJoinByUnique51100%4100%060120401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
SemiJoinCommute48100%375%18080601
SplitLimit43100%100%05080401
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
CollectCteConsumerOutput35100%n/a04070401
BuildAggForUnion33100%100%05050401
OperativeColumnDerive.DeriveContext31100%100%050100401
MergeFilters31100%n/a03070301
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