org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total37,686 of 68,32044%5,106 of 8,15537%3,8016,0837,51214,1788221,99319247
SlotTypeReplacer1,6860%1880%130130360360363611
AggScalarSubQueryToWindowFunction1,573583%2170%165168329340565901
VariantSubPathPruning.VariantSubPathReplacer1,5570%1460%9393290290202011
AccessPathExpressionCollector1,52348224%2025220%148170292388304301
DecomposeRepeatWithPreAggregation1,3771036%13596%93100257282222701
NormalizeOlapTableStreamScan1,1080%1260%8587202206222401
OrExpansion1,053786%7467%6268163183232801
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0290%1080%6767206206131311
PullUpJoinFromUnionAll98617515%1102417%7083202242101601
AccessPathPlanCollector93217015%1361811%7997191227102001
PullUpPredicates91437328%1172618%94120160237294601
SaltJoin778435%9476%6167152160121601
DistinctAggregateRewriter638669%11643%667415416971401
PushDownAggThroughJoinOnPkFk632355%900%5860121137131501
JoinExtractOrFromCaseWhen6248712%107119%667113615881201
NestedColumnPruning.DataTypeAccessTree58244843%795741%568511621671701
LimitAggToTopNAgg558619%880%6062107129161801
StatsDerive55620526%731315%6072121170212901
PushDownScoreTopNIntoOlapScan541223%1000%6972123129192201
PushDownTopNThroughJoin481316%500%394197108131501
NestedColumnPruning47273060%878549%6611311228552701
ForeignKeyContext4530%420%46468585252511
MergePercentileToArray4125010%32411%212675894801
PushCountIntoUnionAll3997014%4959%37427996101501
MergeAggregate39512624%48611%404788117142001
InferPredicates38325640%612024%42567312541401
CTEInliner3674611%484%35407188101501
PushDownLimitDistinctThroughJoin339379%400%262844555701
PushDownAggThroughJoinOnPkFk.InnerJoinCluster3350%460%323270709911
PushDownProject33044757%422638%30496216941501
RewriteSimpleAggToConstantRule3276817%6357%394380985901
InApplyToJoin3233%380%212355582401
PushDownLimit3167819%240%2123527181001
PushDownVectorTopNIntoOlapScan309339%500%303272795701
PushDownExpressionsInHashCondition3055615%13318%23286378152001
PushDownEncodeSlot304257%424%273058665801
ColumnPruning30267168%396963%35816421572701
EliminateJoinByFK2984%280%2224556081001
PushDownEncodeSlot.PushDownContext2920%300%212156566611
EliminateGroupBy2807621%332%192444702701
EliminateEmptyRelation27539659%584242%40675714631701
CTEInline2733812%28412%2227516271101
RewriteCteChildren24534558%311329%22364611831401
SimplifyWindowExpression2442910%340%212454614701
AdjustNullable2421,17782%4413275%341144227622601
MaxMinFilterPushDown2425%480%293144485701
MultiJoin2364816%200%1925395091501
PruneOlapScanPartition23525051%512734%37495211911001
VariantSubPathPruning.Context2353211%253%202248587901
PushDownFilterIntoSchemaScan234218%440%283147526901
SplitMultiDistinctStrategy22645466%152764%13313411421001
SetPreAggStatus.SetOlapScanPreAgg22150869%476758%3463381470601
PushDownTopNThroughWindow2032510%300%192150564601
VariantSubPathPruning.VariantSubPathCollector18711738%211338%162539634801
OperativeColumnDerive18419651%282244%2036347131101
EliminateGroupByKeyByUniform18013943%241436%142436661501
PruneFileScanPartition1687129%209%1621324951001
PullUpProjectUnderTopN165189%160%121427334601
RewriteSearchToSlots16131766%253155%2539309941101
ReduceAggregateChildOutputRows1611910%293%161925311401
UnCorrelatedApplyAggregateFilter1533518%100%6830401301
LogicalResultSinkToShortCircuitPointQuery1527332%29719%242727496901
PushDownLimitDistinctThroughUnion1471911%100%101223295701
SetPreAggStatus14020259%322240%2339277131201
PullUpCorrelatedFilterUnderApplyAggregateProject1403921%120%81028352401
PullUpProjectBetweenTopNAndAgg1402113%220%141728333601
InitJoinOrder1400%240%171732325511
PushDownTopNDistinctThroughJoin13837873%323250%24453210501201
PushDownFilterThroughSetOperation13336773%213763%17392611121001
PushDownTopNDistinctThroughUnion1321912%100%91120264601
EliminateSort1319%175%141627305701
DistinctWindowExpression1317%240%141633372401
EliminateGroupByKey12137875%163870%1436291033901
UnCorrelatedApplyProjectFilter1212014%40%5723293501
InferSetOperatorDistinct12025968%453342%284722690801
PushDownTopNThroughUnion12011%100%81020253501
PullUpJoinFromUnionAll.LogicalPlanComparator11811950%262043%182921422601
MergeSetOperations1169845%17729%131924482701
PullUpProjectUnderLimit1161813%100%91116214601
ScalarApplyToJoin11510%120%111323265701
DistinctAggStrategySelector11415056%241741%182723581601
MergeOneRowRelationIntoUnion1122216%120%71025291401
SetPreAggStatus.PreAggInfoContext10816860%12633%1019378341001
PushDownFilterThroughPartitionTopN10610%140%81024271301
QueryPartitionCollector1042016%118%6925320301
DecoupleEncodeDecode1032116%1810%111422281401
VariantSubPathPruning1022217%195%121527332501
ForeignKeyContext.new DefaultPlanVisitor() {...}1000%80%101022226611
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker9915260%192960%1736134231201
CountLiteralRewrite9610852%181240%132222431701
InferInPredicateFromOr945737%11321%91322383601
PushDownFilterThroughWindow9411%120%81021242401
SkewJoin8917065%152360%122520600601
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker8911456%15937%1528214261601
PushDownFilterThroughProject8322873%151753%1126207121001
PullUpProjectUnderApply812221%120%81010172401
PullUpCteAnchor806444%6440%71115302601
PushDownVirtualColumnsIntoOlapScan7969589%288875%25841715602601
PushDownFilterThroughRepeat7714%80%6819222401
ReorderJoin7475391%247475%25621617531301
CollectPredicateOnScan742323%80%6822282401
InferPredicateByReplace.ReplaceAnalyzer732424%1016%6812180201
PushProjectIntoUnion6918272%161650%122111501501
UnequalPredicateInfer.InferenceGraph631,51896%2522389%241472226302301
CheckPrivileges6216272%81463%81914522801
AddDefaultLimit627354%15525%131917294901
UnCorrelatedApplyFilter6220%0%2414171301
PruneEmptyPartition607254%15937%111715321501
AdjustConjunctsReturnType595447%60%61012253701
MergePercentileToArray.DistinctAndExpr590%100%9913134411
MergeSetOperationsExcept582429%0%359142401
EliminateOuterJoin5528583%124277%153876431101
PruneOlapScanTablet5515774%151550%122012430501
ForeignKeyContext.QualifiedColumn550%80%7711113311
AddProjectForVolatileExpression.OneRowRelationRewrite542934%516%3612200301
ConstantPropagation521,29796%2717786%241251629702301
EliminateOrderByKey5229284%122466%102515810701
EliminateAggregate5220%80%7910133501
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}525%80%6716172301
EliminateSortUnderApply502735%n/a2410162401
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
SkipSimpleExprs4512172%111557%8176331401
CheckDataTypes.ExpressionChecker445656%5758%4108230401
MergeProjects430%0%5510104411
EliminateSemiJoin422436%80%61011181501
RecordPlanForMvPreRewrite421830%50%3613192501
CheckScoreUsage4110772%10637%112094031201
PushDownUnnestInProject3927287%141856%10227560601
ConvertInnerOrCrossJoin382741%118%9121123601
SimplifyEncodeDecode374655%4660%387210301
EliminateJoinByUnique3727%40%467122401
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
AddProjectForVolatileExpression.GenerateRewrite3628%0%24691301
PullUpProjectExprUnderTopN3585496%2113786%20100918702101
ExtractAndNormalizeWindowExpression3427789%91967%112847131401
LimitSortToTopN344154%n/a147201401
AccessPathInfo330%n/a7714147711
EliminateConstHashJoinCondition3212078%111557%9197360601
TransposeSemiJoinLogicalJoinProject3122888%161852%142964501201
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker310%40%66444411
EliminateSortUnderSubqueryOrView302141%n/a24082401
AddProjectForVolatileExpression.FilterRewrite3031%0%247101301
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
PushProjectThroughUnion2834692%33391%4273791901
EliminateNotNull2715785%31986%3177471601
NormalizeToSlot.NormalizeWithoutWindowFunction2510180%71161%6126300301
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer255669%3770%4104161501
CollectCteConsumerOutput2528%n/a24472401
EliminateNullAwareLeftAntiJoin2528%0%357102401
CheckDataTypes248277%1083%2114250501
CreatePartitionTopNFromWindow246974%6650%493180301
EliminateLimitUnderApply2436%0%247101301
PullUpProjectExprUnderTopN.Rewriter235971%3562%475161301
PushDownAliasThroughJoin2227792%91967%93035501601
TransposeSemiJoinLogicalJoin2215687%131350%11204290701
EliminateAssertNumRows2211583%132060%11226330501
ConvertOuterJoinToAntiJoin2135494%114379%93827301101
DistinctAggregateRewriter.Strategy210%n/a11221111
MultiDistinctFunctionStrategy210%0%44773311
PushDownFilterThroughJoin1824593%82877%8237610501
AccessPathExpressionCollector.AccessPathBuilder182760%n/a385143801
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree1821%0%23561201
PushDownAggThroughJoinOnPkFk.PrimaryForeignInfo170%n/a11661111
ProjectOtherJoinConditionForNestedLoopJoin13089%51372%5133320401
CTEInliner.InlineResult0%n/a33663311
CountDistinctRewrite11790%91765%7192280601
PushFilterInsideJoin9888%3562%493261501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
ExprIdRewriter.ReplaceRule5983%100%172191601
PushDownJoinOnAssertNumRows36397%84885%7374860901
PushDownProject.PushdownProjectHelper20995%52180%5183540501
MergeTopNs8989%3562%373230301
UnequalPredicateInfer8288%4450%575241301
AccessPathExpressionCollector.CollectAccessPathResult7086%5550%6122151701
SetPreAggStatus.SetOlapScanPreAgg.KeySlotAggChecker3173%100%17181601
SumLiteralRewrite53198%95385%942311001101
CheckMatchExpression10491%1593%2130211501
EliminateFilter18595%32187%3182400601
MergeLimits8390%3770%3112170601
DistinctAggregateRewriter.DistinctDistributionInfo0%n/a11441111
InferPredicateByReplace33797%75989%74337911001
InferPredicateByReplace.PredicatesCollector18895%61875%72643311401
SumLiteralRewrite.SumInfo6288%5550%584160301
EliminateLimit5687%466%281120501
EliminateOrderByConstant4985%3562%372160301
EliminateUnnecessaryProject9192%1392%1121210501
CheckRestorePartition3884%466%262100301
OperativeColumnDerive.DeriveContext2477%100%152101401
NormalizeToSlot.NormalizeToSlotContext23397%32589%32535501101
AccessPathExpressionCollector.CollectorContext2177%n/a242102401
PushDownMatchProjectionAsVirtualColumn21897%42284%4221480901
SplitLimit4790%375%161100401
PullUpProjectExprUnderTopN.ProjectSimplifier4690%675%271110301
CheckMultiDistinct2180%50%15150401
InferAggNotNull18097%32990%3231440701
EliminateAggCaseWhen11196%31381%3112260301
AddProjectForVolatileExpression42899%53988%5311980901
ExtractSingleTableExpressionFromDisjunction38899%3895%23129001101
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
SimplifyAggGroupBy18598%3597%1261510801
AddProjectForVolatileExpression.JoinRewrite12898%583%161310301
PushDownJoinOtherCondition15199%1995%1170320701
InferFilterNotNull11999%41275%4130270501
CollectLimitAboveConsumer7598%50%161180501
InferJoinNotNull185100%1890%2150340501
ExistsApplyToJoin179100%787%1110310701
EliminateJoinCondition165100%52180%5220340801
PushDownFilterThroughAggregation135100%1593%1120300401
TransposeSemiJoinAgg122100%16100%01802101001
NormalizeSort117100%8100%080320401
TransposeSemiJoinAggProject90100%100%080140701
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%675%290200501
MergeGenerates70100%100%060130501
ExprIdRewriter65100%8100%060150201
CollectFilterAboveConsumer64100%6100%070160401
CheckAndStandardizeWindowFunctionAndFrame63100%n/a040150401
EliminateDedupJoinCondition62100%466%260150301
PullUpProjectExprUnderTopN.PullUpInfo61100%100%050140401
PushDownFilterThroughSort60100%100%06080501
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
SemiJoinCommute48100%4100%08080601
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
BuildAggForUnion33100%100%05050401
MergeFilters31100%n/a03070301
MergeProjectable30100%n/a03060301
UnequalPredicateInfer.InferenceGraph.Relation27100%n/a01050101
TransposeSemiJoinLogicalJoinProject.ContainsType27100%n/a01020101
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext24100%n/a01070101
AddProjectForJoin23100%n/a03040301
OrExpansion.OrExpandsionContext17100%n/a01050101
ColumnPruning.PruneContext100%n/a01060101
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
AddProjectForVolatileExpression.JoinRewriteResult100%n/a01050101
EliminateGroupByKey.EliminateResult100%n/a01050101
InlineLogicalView100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
ClearContextStatus100%n/a02030201
StatsDerive.DeriveContext100%n/a01020101
EliminateGroupByKey.FindResult100%n/a01040101
PullUpProjectExprUnderTopN.RewriteContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101