org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total27,994 of 64,05156%3,780 of 7,30348%2,8995,5885,39413,1515871,92525237
SlotTypeReplacer1,15663635%1186836%86131234379163801
PullUpJoinFromUnionAll1,087796%121139%7383221242101601
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
OrExpansion96417315%661417%5668145183212801
VariantSubPathPruning.VariantSubPathReplacer87273645%846644%519515429872001
SaltJoin808435%9476%6167152160121601
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
PushDownAggThroughJoin6940%880%6767127127232311
AccessPathExpressionCollector66833133%813328%6787136201203001
PushDownVirtualColumnsIntoOlapScan66111414%11443%8186140159222701
AggScalarSubQueryToWindowFunction63919223%671518%6182118148264101
InferPredicates6390%810%5656125125141411
AccessPathPlanCollector62630232%773531%447213219251601
PushDownFilterThroughSetOperation5000%580%3939111111101011
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
AddProjectForVolatileExpression4610%440%313198989911
PushDownAggThroughJoinOnPkFk45313322%721214%46568711861401
DeferMaterializeTopNResult44956455%463442%529378209195301
PushDownScoreTopNIntoOlapScan4476112%8133%536099116121801
SumLiteralRewrite42211521%461423%31417710851101
MergePercentileToArray4125010%32411%212675894801
PushDownTopNDistinctThroughJoin406419%460%3335768891101
NestedColumnPruning.DataTypeAccessTree35947556%334758%29557016881501
PushDownLimitDistinctThroughJoin3253710%360%242641525701
StatsDerive32147759%612932%517669179133101
PushDownProject31346459%353348%27497016941501
PushDownJoinOnAssertNumRows3116316%451119%293765865901
PushDownEncodeSlot304257%424%273058665801
PushDownEncodeSlot.PushDownContext2980%300%212156566611
PushDownLimit29110326%228%1923457161001
DistinctAggregateRewriter28936956%594945%42676715421301
PushDownUnnestInProject2704113%2939%172249562601
MergeAggregate26325849%361833%27475911772001
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
PullUpPredicates2441,04381%489566%411204623744601
EliminateJoinByFK2367724%22621%1724446051001
MultiJoin2364816%200%1925395091501
DecomposeRepeatWithPreAggregation2251,20384%3810673%36994327462601
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker205229%460%3033343871001
PushDownVectorTopNIntoOlapScan18614844%331531%183146770701
PushDownAggThroughJoinOnPkFk.InnerJoinCluster18115445%232350%163240702901
LimitAggToTopNAgg17542070%305062%32583112551801
ForeignKeyContext16921255%171750%21412971112401
SetPreAggStatus.SetOlapScanPreAgg16835667%274763%2444251050701
ReduceAggregateChildOutputRows1671910%293%161925311401
SplitMultiDistinctStrategy16453576%183264%13352411921001
PruneFileScanPartition161158%120%111333375701
PushDownJoinOtherCondition1530%200%171732327711
SimplifyWindowExpression1509839%20623%121931571601
PushDownFilterThroughProject14814749%171139%142334704901
EliminateEmptyRelation14647376%286068%20602813401601
TransposeSemiJoinLogicalJoin1463217%253%162020293701
PushDownDistinctThroughJoin1440%200%181827278811
InApplyToJoin13619058%161852%122121560401
EliminateGroupByKeyByUniform13418557%182052%122427661501
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
AddProjectForVolatileExpression.JoinRewrite1300%60%6631313311
PushDownLimitDistinctThroughUnion1292918%712%71121273701
AdjustNullable1281,30391%3114582%281152027702701
ConstantPropagation1261,21490%4315978%351243129512301
EliminateGroupBy12423365%122264%92417700701
JoinExtractOrFromCaseWhen12158482%348270%26702615611201
MaxMinFilterPushDown12113652%282041%173120480701
ReorderJoin11870985%247275%23612317421301
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1184828%14630%1421203241101
PushDownFilterThroughPartitionTopN1180%140%101027273311
PushDownTopNThroughWindow1139946%17934%141928521601
ColumnPruning10893789%219982%16872523422701
InferPredicateByReplace.ReplaceAnalyzer1076%120%7816181201
PushDownFilterThroughWindow1060%120%101024244411
PushDownMatchProjectionAsVirtualColumn10411953%141246%112220482901
DecoupleEncodeDecode1032116%1810%111422281401
VariantSubPathPruning.Context9916862%91765%92220582901
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker940%140%151513138811
AddProjectForVolatileExpression.AggregateRewrite900%40%5521213311
ExistsApplyToJoin899050%3562%41113311701
PushDownTopNThroughJoin8324474%121860%926146301001
AddProjectForVolatileExpression.OneRowRelationRewrite830%60%6620203311
PushCountIntoUnionAll8138882%243055%2042199611501
PullUpProjectUnderLimit812825%433%6910163601
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer790%100%9915154411
RewriteSearchToSlots7841384%154173%1539129901101
PushDownFilterThroughRepeat7714%80%6819222401
DistinctWindowExpression767449%141041%101614370401
PullUpProjectUnderTopN738553%5758%51210281601
TransposeSemiJoinLogicalJoinProject7118872%201441%1629114501201
CountDistinctRewrite715945%161038%121916282601
CollectPredicateOnScan702727%712%5820281401
SumLiteralRewrite.SumInfo700%100%8816163311
RewriteCteChildren6147588%73181%732610801301
PushDownFilterIntoSchemaScan6116673%271535%172911471801
MergePercentileToArray.DistinctAndExpr590%100%9913134411
PruneEmptyPartition587255%141041%101714321501
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5619577%141856%10219501501
EliminateOuterJoin5429784%322442%2239116821101
SkewJoin5420579%92976%82512600601
MergeGenerates541622%0%469133501
DistinctAggStrategySelector5321680%202353%172813580601
ExtractSingleTableExpressionFromDisjunction5233986%63485%431129001101
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}525%80%6716172301
AddProjectForVolatileExpression.HavingRewrite510%0%44993311
UnequalPredicateInfer.InferenceGraph501,52596%2522189%231461226312301
PruneOlapScanPartition5042789%175175%1543101230901
EliminateOrderByKey5026884%62882%52310750601
EliminateAssertNumRows508763%181545%132213330501
EliminateSortUnderApply502735%n/a2410162401
AddProjectForVolatileExpression.GenerateRewrite500%0%44993311
EliminateGroupByKey4921781%121453%92110510801
TransposeSemiJoinAgg483340%325%695164701
PushDownVirtualColumnsIntoOlapScan.SkipResult480%60%77884411
PushDownFilterThroughSort4721%0%46583501
NestedColumnPruning4656292%54790%5371013601101
SkipSimpleExprs4512172%111557%8176331401
AddProjectForVolatileExpression.FilterRewrite440%0%4410103311
SimplifyAggGroupBy4314477%142261%122615510801
QueryPartitionCollector438766%6650%4911320301
MergeLimits433846%5337%5106151601
AddProjectForVolatileExpression.ProjectRewrite430%0%44883311
CheckMultiDistinct399671%121860%9196270401
SimplifyEncodeDecode374655%4660%387210301
SetPreAggStatus3424387%152965%103496101201
VariantSubPathPruning338371%101254%6159300401
CheckScoreUsage3212579%8850%92074031201
EliminateSemiJoin324055%5337%4107180501
OperativeColumnDerive3039692%46093%44268001001
ExtractAndNormalizeWindowExpression3028790%62278%82827131401
AddDefaultLimit309676%11945%9188281801
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
RewriteSimpleAggToConstantRule2836792%135580%134313980901
LogicalResultSinkToShortCircuitPointQuery2717586%62278%7234411901
UnCorrelatedApplyAggregateFilter2516386%4660%482400301
PullUpCorrelatedFilterUnderApplyAggregateProject2515486%5758%5102350401
PushDownFilterThroughAggregation2511081%31381%3124300401
ConvertOuterJoinToAntiJoin2424290%112367%9262480901
PruneOlapScanTablet2418888%92170%7205430501
CreatePartitionTopNFromWindow246974%6650%493180301
AccessPathExpressionCollector.AccessPathBuilder242146%n/a487144801
PushDownExpressionsInHashCondition2334493%41275%52867822001
CheckDataTypes218580%1191%1113250501
EliminateLimitUnderApply191950%50%145100301
PushDownAliasThroughJoin1728294%32589%33025501601
PushDownFilterThroughJoin1724693%102672%8235610501
AccessPathExpressionCollector.CollectAccessPathResult175074%3562%4112141701
CTEInline1620992%1688%2162430701
CheckDataTypes.ExpressionChecker158585%1191%1103230401
CheckRestorePartition153871%466%262100301
EliminateSortUnderSubqueryOrView153670%n/a14081401
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
MergeTopNs7684%433%364220301
ScalarApplyToJoin11589%4866%5132261701
CheckMatchExpression9988%41477%4141220501
PushFilterInsideJoin9888%3562%493261501
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker2969%50%27281601
InferJoinNotNull17393%31785%3152340501
ExprIdRewriter.ReplaceRule5983%100%172191601
AddProjectForVolatileExpression.JoinRewriteResult0%n/a11551111
NormalizeToSlot.NormalizeWithoutWindowFunction11591%31583%3123300301
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
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder13898%61875%6171320501
MergeOneRowRelationIntoUnion12798%1083%2101280401
EliminateJoinCondition8797%4866%4120180601
UnCorrelatedApplyFilter7697%50%141170301
MergeProjects4195%50%151100401
PushDownTopNDistinctThroughUnion14099%787%1100230601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
CollectFilterAboveConsumer6398%583%171160401
PushProjectThroughUnion374100%36100%0270790901
CheckPrivileges224100%2090%2190520801
MergeSetOperations214100%2395%1190480701
EliminateFilter194100%32187%3180400601
EliminateNotNull184100%22100%0170470601
EliminateConstHashJoinCondition147100%62076%6190330601
ProjectOtherJoinConditionForNestedLoopJoin145100%1688%2130320401
SetPreAggStatus.PreAggInfoContext140100%100%0100340901
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
InferSetOperatorDistinct84100%1392%1140150701
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%675%290200501
LimitSortToTopN75100%n/a040200401
CheckAndStandardizeWindowFunctionAndFrame68100%n/a050160501
ConvertInnerOrCrossJoin65100%3975%3120120601
ExprIdRewriter65100%8100%060150201
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
TransposeSemiJoinLogicalJoinProject.ContainsType27100%n/a01020101
UnequalPredicateInfer.InferenceGraph.Relation27100%n/a01050101
ClearContextStatus25100%n/a02060201
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext24100%n/a01070101
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree23100%100%03060201
AddProjectForJoin23100%n/a03040301
OrExpansion.OrExpandsionContext17100%n/a01050101
ColumnPruning.PruneContext16100%n/a01060101
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
InlineLogicalView100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
StatsDerive.DeriveContext100%n/a01020101
DistinctAggregateRewriter.DistinctDistributionInfo100%n/a01040101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101