org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total38,313 of 63,21539%4,887 of 7,15931%3,6845,5147,45012,9418991,92325236
SlotTypeReplacer1,7920%1860%131131379379383811
VariantSubPathPruning.VariantSubPathReplacer1,5970%1500%9595297297202011
DecomposeRepeatWithPreAggregation1,3211037%13396%9198248273212601
PullUpJoinFromUnionAll1,098685%12685%7683223242101601
OrExpansion1,059786%7467%6268163183232801
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
AccessPathExpressionCollector1,0160%1140%8888205205313111
AccessPathPlanCollector9280%1120%7272192192161611
PullUpPredicates85043733%1123121%90120146237274601
NestedColumnPruning.DataTypeAccessTree8410%800%5555169169151511
AggScalarSubQueryToWindowFunction8310%820%8282148148414111
DeferMaterializeTopNResult83018318%800%9193131209515301
SaltJoin805435%9476%6167151159121601
StatsDerive7049411%8377%7076156179273101
SplitMultiDistinctStrategy6990%500%3535119119101011
JoinExtractOrFromCaseWhen6228311%106108%657013515681201
DistinctAggregateRewriter5836610%10243%596713515171401
PushDownAggThroughJoinOnPkFk547356%820%5355101117121401
LimitAggToTopNAgg5346110%800%5658103125161801
NestedColumnPruning5307812%44815%303711513651101
RewriteCteChildren510264%380%2932101108101301
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
PushDownScoreTopNIntoOlapScan486224%840%5760110116151801
MergePercentileToArray4125010%32411%212675894801
PushDownTopNDistinctThroughJoin406419%460%3335768891101
PushCountIntoUnionAll3997014%4959%37427996101501
SetPreAggStatus.SetOlapScanPreAgg39013425%631114%3744761053701
InferPredicates38724438%591823%41547212141401
ForeignKeyContext3810%340%41417171242411
ColumnPruning37467164%516957%41878323472701
AdjustNullable3441,08775%5612068%431156127732701
PushDownProject33044757%422638%30496216941501
RewriteSimpleAggToConstantRule3276817%6357%394380985901
PushDownLimitDistinctThroughJoin3253710%360%242641525701
PushDownLimit3167819%240%2123527181001
InApplyToJoin3133%340%192153562401
PushDownExpressionsInHashCondition3115615%13318%23286378152001
PushDownAggThroughJoinOnPkFk.InnerJoinCluster3090%440%313163639911
PushDownEncodeSlot304257%424%273058665801
EliminateEmptyRelation30331651%652326%43606113451601
PushDownVectorTopNIntoOlapScan301339%480%293170775701
EliminateJoinByFK298154%280%2224556081001
PushDownEncodeSlot.PushDownContext2980%300%212156566611
PushDownTopNThroughJoin296319%300%2426526381001
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
EliminateGroupBy24311431%28617%172435702701
MaxMinFilterPushDown242155%480%293144485701
MultiJoin2364816%200%1925395091501
VariantSubPathPruning.Context2353211%253%202248587901
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker2270%460%33333838101011
PushDownAggThroughJoinOneSide22151169%495753%36704114351701
SimplifyWindowExpression2192911%260%161950573601
DistinctAggStrategySelector2125721%3949%232847582601
PushDownFilterIntoSchemaScan207208%420%262942475801
CTEInline2002511%175%131636434701
MergeAggregate19332862%431525%29494311352001
OperativeColumnDerive18723956%343046%2442348021001
VariantSubPathPruning.VariantSubPathCollector18711738%211338%162539634801
PushDownTopNThroughWindow1872511%260%171946524601
EliminateGroupByKeyByUniform18013943%241436%142436661501
EliminateOrderByKey17514344%231132%172341752601
RewriteSearchToSlots17120654%221845%1930367931001
ReduceAggregateChildOutputRows1671910%293%161925311401
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1660%200%21213232111111
PruneOlapScanPartition16321656%342037%253536971801
PruneFileScanPartition161158%120%111333375701
UnCorrelatedApplyAggregateFilter1533518%100%6830401301
UnequalPredicateInfer.InferenceGraph1521,42390%4420282%381462926302301
LogicalResultSinkToShortCircuitPointQuery1465627%25310%202324416901
SkewJoin14312045%281839%192827540501
PullUpCorrelatedFilterUnderApplyAggregateProject1403921%120%81028352401
PullUpProjectBetweenTopNAndAgg1402113%220%141728333601
PullUpProjectUnderTopN1401811%120%101222284601
PushDownLimitDistinctThroughUnion1391912%80%91121275701
PushDownAggThroughJoin13655880%315764%30671512782301
EliminateSort1319%175%141627305701
DistinctWindowExpression1307%220%131531352401
PushDownTopNDistinctThroughUnion1221913%80%81018244601
UnCorrelatedApplyProjectFilter1212014%40%5723293501
MergeSetOperations1169845%17729%131924482701
ScalarApplyToJoin11510%120%111323265701
MergeOneRowRelationIntoUnion1122216%120%71024281401
AddDefaultLimit1111511%1810%161824286801
PushDownTopNThroughUnion1101512%80%7918233501
InferPredicateByReplace.ReplaceAnalyzer1076%120%7816181201
PushDownFilterThroughSetOperation10530774%152764%1131188621001
EliminateGroupByKey10416260%151142%122116512801
QueryPartitionCollector1042620%118%6925320301
DecoupleEncodeDecode1032116%1810%111422281401
PushDownFilterThroughPartitionTopN10310%120%7924271301
ForeignKeyContext.new DefaultPlanVisitor() {...}970%80%9921215511
CountLiteralRewrite9610852%181240%132222431701
InferInPredicateFromOr945737%11321%91322383601
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker940%140%151513138811
VariantSubPathPruning932319%214%121524301401
PullUpProjectUnderLimit911816%60%7911164601
PushDownVirtualColumnsIntoOlapScan8868788%308874%27862015912701
PushDownFilterThroughWindow8712%80%6820232401
PushDownFilterThroughProject8521071%161242%122321702901
EliminateOuterJoin8226976%173969%1839116831101
EliminateFilter8111358%111354%81817402601
PullUpProjectUnderApply812221%120%81010172401
PullUpCteAnchor806444%6440%71115302601
SetPreAggStatus7815566%151550%1326175431101
PushDownFilterThroughRepeat7714%80%6819222401
ReorderJoin7475391%237376%24611617431301
CollectPredicateOnScan742323%80%6822282401
CheckMultiDistinct736245%22826%131914270401
PushProjectIntoUnion6918272%161650%122111501501
AccessPathExpressionCollector.CollectAccessPathResult670%80%111114147711
CheckPrivileges6216272%81463%81914522801
UnCorrelatedApplyFilter621620%0%2414171301
PruneEmptyPartition607053%15937%111715321501
AdjustConjunctsReturnType595447%60%61012253701
EliminateAggCaseWhen595146%5964%41012240301
MergePercentileToArray.DistinctAndExpr590%100%9913134411
EliminateNotNull5812668%101254%81712471601
MergeSetOperationsExcept582429%0%359142401
PruneOlapScanTablet5615673%151550%122012430501
ConstantPropagation551,28595%3017285%271241729502301
AddProjectForUniqueFunction.OneRowRelationRewrite542934%516%3612190301
EliminateAggregate5220%80%7910133501
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}525%80%6716172301
EliminateSortUnderApply502735%n/a2410162401
AddProjectForUniqueFunction.AggregateRewrite494145%325%2510210301
EliminateSemiJoin482433%80%61011181501
UnequalPredicateInfer464650%625%6713242301
SkipSimpleExprs4512172%111557%8176331401
AccessPathExpressionCollector.AccessPathBuilder450%n/a8814148811
CheckDataTypes.ExpressionChecker445656%5758%4108230401
MergeProjects430%0%5510104411
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker420%0%77886611
CheckScoreUsage4111673%10637%112094031201
SetPreAggStatus.PreAggInfoContext419970%100%41010344901
ExtractAndNormalizeWindowExpression4027787%91967%112847131401
PushDownUnnestInProject3927287%141856%10227560601
ConvertInnerOrCrossJoin382741%118%9121123601
EliminateConstHashJoinCondition3711074%121453%10196330601
SimplifyEncodeDecode374655%4660%387210301
RecordPlanForMvPreRewrite371832%50%3612182501
AddProjectForUniqueFunction.HavingRewrite3727%0%24691301
EliminateJoinByUnique3727%40%467122401
AddProjectForUniqueFunction.GenerateRewrite3628%0%24691301
LimitSortToTopN344154%n/a147201401
TransposeSemiJoinLogicalJoinProject3122888%161852%142964501201
PushDownJoinOnAssertNumRows3037292%94783%83879701001
EliminateSortUnderSubqueryOrView302141%n/a24082401
AddProjectForUniqueFunction.FilterRewrite3031%0%247101301
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
AccessPathExpressionCollector.CollectorContext270%n/a4410104411
NormalizeToSlot.NormalizeWithoutWindowFunction2510180%71161%6126300301
CollectCteConsumerOutput2528%n/a24472401
EliminateNullAwareLeftAntiJoin2528%0%357102401
CheckDataTypes248277%1083%2114250501
CreatePartitionTopNFromWindow246974%6650%493180301
EliminateLimitUnderApply2436%0%247101301
CheckMatchExpression238678%51168%6131221501
PushDownAliasThroughJoin2227792%91967%93035501601
TransposeSemiJoinLogicalJoin2215687%131350%11204290701
PushDownDistinctThroughJoin2212284%61470%6185270801
EliminateAssertNumRows2211583%132060%11226330501
MultiDistinctFunctionStrategy210%0%44773311
PushProjectThroughUnion2030093%42686%4242650901
InferPredicateByReplace.PredicatesCollector2017689%91562%82663311401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer205171%675%383131401
PushDownFilterThroughJoin1824593%82877%8237610501
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree1821%0%23561201
ProjectOtherJoinConditionForNestedLoopJoin1714189%71568%7163350501
SumLiteralRewrite1652197%105083%941410801101
CheckRestorePartition153871%466%262100301
InferSetOperatorDistinct10087%61266%6183220901
InitJoinOrder12790%121250%11174320501
CountDistinctRewrite11790%91765%7192280601
PushFilterInsideJoin9888%3562%493261501
AddProjectForUniqueFunction.ProjectRewrite3069%50%14180301
ExprIdRewriter.ReplaceRule5983%100%172191601
InferPredicateByReplace26896%83078%8283661901
PushDownProject.PushdownProjectHelper20995%52180%5183540501
ConvertOuterJoinToAntiJoin25696%33191%3261480901
PushDownMatchProjectionAsVirtualColumn21395%52180%4221480901
EliminateJoinCondition7988%5758%5120181601
DistinctAggregateRewriter.DistinctDistributionInfo0%n/a11441111
SumLiteralRewrite.SumInfo6288%5550%584160301
EliminateLimit5687%466%281120501
EliminateOrderByConstant4985%3562%372160301
EliminateUnnecessaryProject9192%1392%1121210501
OperativeColumnDerive.DeriveContext2477%100%152101401
NormalizeToSlot.NormalizeToSlotContext23397%32589%32535501101
ExtractSingleTableExpressionFromDisjunction38899%3895%23129001101
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
TransposeSemiJoinAggProject8797%50%181140701
MergeLimits7997%675%2101150601
MergeTopNs5896%50%141160301
InferAggNotNull16699%61875%62403101201
PushDownJoinOtherCondition14499%1794%1160300701
InferFilterNotNull11999%41275%4130270501
AddProjectForUniqueFunction211100%14100%0120420501
ExistsApplyToJoin179100%787%1110310701
InferJoinNotNull150100%1487%2120310401
PushDownFilterThroughAggregation135100%1487%2120300401
AddProjectForUniqueFunction.JoinRewrite129100%466%260310301
SimplifyAggGroupBy117100%31986%3170260601
NormalizeSort117100%8100%080320401
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%675%290200501
TransposeSemiJoinAgg81100%4100%090160701
MergeGenerates70100%100%060130501
CheckAndStandardizeWindowFunctionAndFrame68100%n/a050160501
ExprIdRewriter65100%8100%060150201
CollectFilterAboveConsumer64100%6100%070160401
EliminateDedupJoinCondition62100%466%260150301
PushDownFilterThroughSort60100%100%06080501
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
SemiJoinCommute48100%375%18080601
SplitLimit43100%100%05080401
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
BuildAggForUnion33100%100%05050401
MergeFilters31100%n/a03070301
MergeProjectable30100%n/a03060301
UnequalPredicateInfer.InferenceGraph.Relation27100%n/a01050101
TransposeSemiJoinLogicalJoinProject.ContainsType27100%n/a01020101
ClearContextStatus25100%n/a02060201
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext24100%n/a01070101
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
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101