org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total29,787 of 64,09153%4,151 of 7,47344%3,1075,6655,71713,1595741,91712239
VariantSubPathPruning.VariantSubPathReplacer1,5970%1500%9595297297202011
PullUpJoinFromUnionAll1,087796%121139%7383221242101601
SlotTypeReplacer1,03564738%1156937%85128208357153601
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
OrExpansion96417315%661417%5668145183212801
AccessPathExpressionCollector95048733%1265630%98128190285253701
SaltJoin805435%9476%6167151159121601
NestedColumnPruning.DataTypeAccessTree78733529%1224426%8110115022481801
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
PushDownAggThroughJoin6940%880%6767127127232311
PushDownVirtualColumnsIntoOlapScan65211414%11243%7984137156212601
AggScalarSubQueryToWindowFunction63919223%671518%6182118148264101
NestedColumnPruning62190659%12112751%8015015836962601
AccessPathPlanCollector50251750%705845%398311121211901
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
PushDownAggThroughJoinOnPkFk45812421%721012%46558711771401
PushDownScoreTopNIntoOlapScan4525611%822%5460100116121801
SumLiteralRewrite43710018%481220%32418110851101
MergePercentileToArray4125010%32411%212675894801
PushDownTopNDistinctThroughJoin406419%460%3335768891101
RewriteSearchToSlots348297%400%2630737961001
PushDownJoinOnAssertNumRows3356716%451119%2938769751001
PullUpPredicates33495374%598458%481206223744601
PushDownLimitDistinctThroughJoin3253710%360%242641525701
PushDownProject31446359%363247%28497016941501
PushDownEncodeSlot304257%424%273058665801
PushDownEncodeSlot.PushDownContext2980%300%212156566611
StatsDerive29147061%582832%487259170112901
PushDownLimit29110326%228%1923457161001
InferPredicates27935255%443342%29545112121401
PushDownUnnestInProject2704113%2939%172249562601
DistinctAggregateRewriter26713834%461423%3041568821101
MergeAggregate26625548%382034%29495911372001
LimitAggToTopNAgg25933656%433746%37584612551801
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
SetPreAggStatus.SetOlapScanPreAgg24428053%383648%2944421052701
EliminateJoinByFK2367724%22621%1724446051001
MultiJoin2364816%200%1925395091501
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker2270%460%33333838101011
DecomposeRepeatWithPreAggregation2251,19384%3810673%36994327462601
NormalizeOlapTableStreamScan.OlapTableStreamScanReplacer2172%380%222344453401
VariantSubPathPruning.Context2076022%21519%192243586901
ConvertOuterJoinToAntiJoin2056122%3138%212635485901
MaxMinFilterPushDown1956224%43510%243134481701
PushDownVectorTopNIntoOlapScan18814643%351327%203146770701
InApplyToJoin18614042%211338%152125560401
ForeignKeyContext17722856%212150%2343317992201
ReduceAggregateChildOutputRows1671910%293%161925311401
PushDownTopNThroughJoin16516249%21930%1526306331001
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15515449%212352%153133632901
ConstantPropagation1531,18788%4915375%401243529512301
PushDownFilterThroughSetOperation15226063%182457%1531318611001
EliminateGroupByKeyByUniform15216752%191950%132430661501
EliminateEmptyRelation15146875%305865%21602913401601
SimplifyWindowExpression1519739%21519%131932571601
PushDownFilterThroughProject14814749%171139%142334704901
TransposeSemiJoinLogicalJoin1463217%253%162020293701
PushDownDistinctThroughJoin1440%200%181827278811
LogicalResultSinkToShortCircuitPointQuery1396331%21725%182324416901
PushDownLimitDistinctThroughUnion1391912%80%91121275701
AdjustNullable1371,29090%3214481%291142127602601
SplitMultiDistinctStrategy13653479%113173%930191131901
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
EliminateGroupBy12423365%122264%92417700701
JoinExtractOrFromCaseWhen12358882%358370%27712715811201
UnCorrelatedApplyProjectFilter1212014%40%5723293501
ReorderJoin12070785%257173%24612317421301
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1184828%14630%1421203241101
AddProjectForUniqueFunction1179444%9535%61219420501
PushDownTopNThroughWindow1139946%17934%141928521601
VariantSubPathPruning.VariantSubPathCollector11019463%102470%92521632801
PushDownTopNThroughUnion1101512%80%7918233501
InferPredicateByReplace.ReplaceAnalyzer1076%120%7816181201
PruneOlapScanPartition10636677%304459%22472311601001
PushDownMatchProjectionAsVirtualColumn10411953%141246%112220482901
DecoupleEncodeDecode1032116%1810%111422281401
PushDownFilterThroughPartitionTopN10310%120%7924271301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker940%140%151513138811
SkewJoin9317665%202656%132820600501
ExistsApplyToJoin899050%3562%41113311701
CheckMatchExpression842522%160%101317222501
PushCountIntoUnionAll8338682%252953%2142209611501
PullUpProjectUnderLimit812825%433%6910163601
PushDownFilterThroughRepeat7714%80%6819222401
PullUpProjectUnderTopN738553%5758%51210281601
VariantSubPathPruning734337%17522%101519300401
TransposeSemiJoinLogicalJoinProject7118872%201441%1629114501201
CountDistinctRewrite715945%161038%121916282601
CollectPredicateOnScan702727%712%5820281401
SumLiteralRewrite.SumInfo700%100%8816163311
UnequalPredicateInfer.InferenceGraph681,50795%3321386%291461426312301
AddProjectForUniqueFunction.JoinRewrite686147%516%3617310301
DistinctWindowExpression677452%121045%91512350401
PushDownExpressionsInHashCondition6630182%61062%1028137852001
RewriteCteChildren6147788%83280%833610801301
PushDownFilterIntoSchemaScan6116673%271535%172911471801
TransposeSemiJoinAgg612024%40%799165701
PruneEmptyPartition607053%15937%111715321501
MergeSetOperations5915572%111354%91913481701
MergePercentileToArray.DistinctAndExpr590%100%9913134411
MergeSetOperationsExcept582429%0%359142401
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5619577%141856%10219501501
DistinctAggStrategySelector5521479%212251%182814580601
EliminateOuterJoin5429784%322442%2239116821101
AddProjectForUniqueFunction.OneRowRelationRewrite542934%516%3612190301
MergeGenerates541622%0%469133501
ExtractSingleTableExpressionFromDisjunction5233986%63485%431129001101
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}525%80%6716172301
EliminateOrderByKey5126783%72779%62311750601
EliminateAssertNumRows508763%181545%132213330501
EliminateSortUnderApply502735%n/a2410162401
ColumnPruning4992494%129688%1281721512701
EliminateGroupByKey4921781%121453%92110510801
AddProjectForUniqueFunction.AggregateRewrite494145%325%2510210301
MergeTopNs4820%0%2412161301
PushDownVirtualColumnsIntoOlapScan.SkipResult480%60%77884411
PushDownFilterThroughSort4721%0%46583501
InferPredicateByReplace.PredicatesCollector4615076%101458%92683321401
SkipSimpleExprs4512172%111557%8176331401
MergeLimits433846%5337%5106151601
SimplifyAggGroupBy427564%121045%7175260601
SetPreAggStatus4119782%62681%82785621101
CheckMultiDistinct399671%121860%9196270401
ExprIdRewriter392640%712%469150201
AddDefaultLimit388869%12840%10189281801
SimplifyEncodeDecode374655%4660%387210301
AddProjectForUniqueFunction.HavingRewrite3727%0%24691301
ExtractAndNormalizeWindowExpression3528288%72175%92837131401
CTEInliner3420185%71770%82265111001
CheckScoreUsage3212579%8850%92074031201
EliminateSemiJoin324055%625%5107180501
OperativeColumnDerive3039692%46093%44268001001
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
EliminateSort2811780%61266%6164300701
SetPreAggStatus.PreAggInfoContext2711380%100%3107343901
RewriteSimpleAggToConstantRule2636993%135580%134312980901
PushDownFilterThroughJoin2623790%112569%9238610501
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2610%40%34891201
UnCorrelatedApplyAggregateFilter2516386%4660%482400301
PullUpCorrelatedFilterUnderApplyAggregateProject2515486%5758%5102350401
PushDownFilterThroughAggregation2511081%31381%3124300401
PruneOlapScanTablet2418888%92170%7205430501
CreatePartitionTopNFromWindow246974%6650%493180301
ExprIdRewriter.ReplaceRule244766%100%274192601
CheckDataTypes218580%1191%1113250501
AccessPathExpressionCollector.AccessPathBuilder212453%n/a486144801
AddProjectForUniqueFunction.GenerateRewrite203060%50%14290301
EliminateLimitUnderApply191950%50%145100301
CTEInline1822992%41881%4192480801
MergeOneRowRelationIntoUnion1811686%3975%3103280401
PushDownAliasThroughJoin1728294%62278%63025501601
AccessPathExpressionCollector.CollectAccessPathResult175074%3562%4112141701
CheckDataTypes.ExpressionChecker158585%1191%1103230401
CheckRestorePartition153871%466%262100301
EliminateSortUnderSubqueryOrView153670%n/a14081401
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
NormalizeToSlot.NormalizeWithoutWindowFunction11288%41477%4124300301
PushDownFilterThroughWindow8585%787%183230401
AddProjectForUniqueFunction.FilterRewrite3068%50%143100301
InferJoinNotNull13791%41275%4123310401
QueryPartitionCollector11790%1083%293320301
ScalarApplyToJoin11589%4866%5132261701
PushFilterInsideJoin9888%3562%493261501
PullUpProjectUnderApply9087%5758%4101170401
AddProjectForUniqueFunction.ProjectRewrite3069%50%14180301
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker2969%50%27281601
EliminateFilter18293%51979%5182400601
NestedColumnPruning.OffsetPathRewrite2769%n/a373113701
AccessPathInfo2163%n/a376143701
InitJoinOrder12992%101458%9173320501
InferPredicateByReplace26996%63284%6283661901
AccessPathExpressionCollector.CollectorContext1762%n/a344103401
PushDownProject.PushdownProjectHelper21195%42284%4183540501
UnequalPredicateInfer8390%3562%474241301
InferInPredicateFromOr14394%31178%3132380601
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
EliminateOrderByConstant4985%3562%372160301
RecordPlanForMvPreRewrite4785%100%063180501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
EliminateNullAwareLeftAntiJoin2982%50%151100401
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree1878%50%13160201
NormalizeSort11396%787%181320401
PruneFileScanPartition17498%4866%4131370701
ColumnPruning.KeyColumnCollector6395%10100%181171301
MultiDistinctFunctionStrategy1885%100%14171301
CountLiteralRewrite20299%2996%1221430701
ProjectOtherJoinConditionForNestedLoopJoin15698%41881%4160350501
EliminateJoinCondition8797%4866%4120180601
UnCorrelatedApplyFilter7697%50%141170301
MergeProjects4195%50%151100401
PushDownTopNDistinctThroughUnion14099%787%1100240601
CollectFilterAboveConsumer6398%583%171160401
PushProjectThroughUnion320100%30100%0240650901
CheckPrivileges224100%31986%3190520801
EliminateNotNull184100%2195%1170470601
InferAggNotNull167100%2395%12403101201
EliminateConstHashJoinCondition147100%62076%6190330601
PushDownJoinOtherCondition145100%18100%0160300701
InferFilterNotNull120100%16100%0130270501
InferSetOperatorDistinct114100%1794%1180220901
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%675%290200501
LimitSortToTopN75100%n/a040200401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer71100%787%180130401
CheckAndStandardizeWindowFunctionAndFrame68100%n/a050160501
ConvertInnerOrCrossJoin65100%3975%3120120601
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
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
NormalizeOlapTableStreamScan100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
StatsDerive.DeriveContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101