org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total18,733 of 52,12664%2,571 of 5,77955%1,9594,5793,48410,5743591,6807218
PullUpJoinFromUnionAll1,087796%121139%7383221242101601
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
SaltJoin912394%9366%6369172179141801
VariantSubPathPruning.VariantSubPathReplacer88870944%866442%529515829772001
OrExpansion86616916%541420%5061127164212701
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
PushDownVirtualColumnsIntoOlapScan66111414%11443%8186140159222701
PushDownAggThroughJoin653415%880%6567107127212301
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
PushDownAggThroughJoinOnPkFk43512622%691113%44548011171401
MergePercentileToArray4125010%32411%212675894801
DeferMaterializeTopNResult39561861%404050%419372209135301
PushDownTopNDistinctThroughJoin386419%380%2931728491101
PushDownLimitDistinctThroughJoin3213710%320%222440515701
SumLiteralRewrite31318537%292142%2035559741001
PushDownJoinOnAssertNumRows3127619%411526%2738729351001
PushDownEncodeSlot304257%424%273058665801
PushDownEncodeSlot.PushDownContext2980%300%212156566611
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
MergeAggregate23629255%332946%29544810982301
EliminateJoinByFK2367724%22621%1724446051001
MultiJoin2364816%200%1925395091501
StatsDerive22454670%493541%41734817393101
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker205229%460%3033343871001
DistinctAggregateRewriter18720051%362440%2441418811101
PushDownVectorTopNIntoOlapScan18514844%331531%183146770701
PushDownScoreTopNIntoOlapScan1796125%23311%1623375441001
ForeignKeyContext16921255%161852%20412971112401
SetPreAggStatus.SetOlapScanPreAgg16835667%264864%2344251050701
ReduceAggregateChildOutputRows1671910%293%161925311401
SplitMultiDistinctStrategy16454176%183264%13352412021001
PullUpPredicates16195585%318573%261043219844501
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15415550%182659%123133632901
SimplifyWindowExpression1509839%20623%121931571601
PushDownDistinctThroughJoin1440%200%181827278811
AdjustNullable1351,31990%3014883%271162028002701
PushDownLimit13426065%121250%1023227121001
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PushDownLimitDistinctThroughUnion1292918%712%71121273701
PushDownFilterThroughSetOperation12628669%162661%1231268601001
EliminateGroupBy12423365%122264%92417700701
MaxMinFilterPushDown12113652%282041%173120480701
ColumnPruning11493989%219782%18862823932701
InApplyToJoin10721967%122264%92117560401
ConstantPropagation1051,22992%3916180%321232529312301
ReorderJoin10363986%175977%16512015621301
DecoupleEncodeDecode1032116%1810%111422281401
PushDownFilterThroughPartitionTopN10310%120%7924271301
VariantSubPathPruning.Context9916862%91765%92220582901
RewriteSearchToSlots9827974%122870%1030187901001
AddProjectForUniqueFunction9811353%6857%41216420501
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
InferPredicateByReplace.ReplaceAnalyzer912420%1016%6812180201
PushDownFilterThroughProject8521071%161242%122321702901
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker858148%91155%1021113211101
PushCountIntoUnionAll7939083%233157%1942189611501
PushDownFilterThroughRepeat7714%80%6819222401
PullUpProjectUnderTopN737751%4450%41010271601
CountDistinctRewrite715945%151142%111916282601
CollectPredicateOnScan702727%712%5820281401
ExistsApplyToJoin6811162%675%3119311701
AddProjectForUniqueFunction.JoinRewrite686147%516%3617310301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
DistinctWindowExpression677452%121045%91512350401
PushDownTopNThroughWindow6314970%111557%91918521601
PushDownFilterIntoSchemaScan5916874%251740%15299471801
MergePercentileToArray.DistinctAndExpr590%100%9913134411
SumLiteralRewrite.SumInfo5817%100%7811162301
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5618877%141856%10219481501
AddProjectForUniqueFunction.OneRowRelationRewrite542934%516%3612190301
LimitAggToTopNAgg5354291%176378%1758912501801
DistinctAggStrategySelector5321680%202353%172813580601
EliminateAggregate5220%80%7910133501
TransposeSemiJoinLogicalJoinProject5120880%142058%132994501201
EliminateOrderByKey5026884%62882%52310750601
EliminateSortUnderApply502735%n/a2410162401
AddProjectForUniqueFunction.AggregateRewrite494145%325%2510210301
PushDownVirtualColumnsIntoOlapScan.SkipResult480%60%77884411
TransposeSemiJoinAgg463543%50%594164701
MergeGenerates4620%0%249121301
SkipSimpleExprs4512172%111557%8176331401
RewriteCteChildren4348591%43489%432410501301
MergeLimits433846%5337%5106151601
EliminateOuterJoin4028687%222047%163286421101
EliminateAssertNumRows389972%151854%112210330501
SimplifyEncodeDecode374655%4660%387210301
AddProjectForUniqueFunction.HavingRewrite371427%0%24691301
SkewJoin3218985%72980%7237480501
CheckScoreUsage3212579%8850%92074031201
EliminateSemiJoin324055%5337%4107180501
UnequalPredicateInfer.InferenceGraph311,54498%1523193%151461026312301
OperativeColumnDerive3039692%46093%44268001001
ExtractAndNormalizeWindowExpression3028790%62278%82827131401
AddDefaultLimit309676%11945%9188281801
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
LogicalResultSinkToShortCircuitPointQuery2717586%52382%6234411901
EliminateGroupByKeyByUniform2527591%33391%3235620501
PushDownFilterThroughAggregation2511081%31381%3124300401
ConvertOuterJoinToAntiJoin2423890%92371%7252470901
PruneOlapScanTablet2418888%92170%7205430501
PullUpProjectUnderLimit247776%50%172150601
PushDownExpressionsInHashCondition2334493%41275%52867822001
EliminateGroupByKey2123691%2492%2201490701
CheckMultiDistinct2111484%62480%6193270401
CheckDataTypes218580%1191%1113250501
AddProjectForUniqueFunction.GenerateRewrite203060%50%14290301
VariantSubPathPruning198080%61266%4137260401
EliminateLimitUnderApply191950%50%145100301
PruneOlapScanPartition1832694%84284%6334930801
MergeOneRowRelationIntoUnion1811686%3975%3103280401
PushDownAliasThroughJoin1728294%32589%33025501601
UnCorrelatedApplyAggregateFilter1717190%880%280400301
PullUpCorrelatedFilterUnderApplyAggregateProject1716290%1083%2100350401
EliminateEmptyRelation1561797%96788%855314001701
SimplifyAggGroupBy1510287%71568%5171260601
CheckDataTypes.ExpressionChecker158585%1191%1103230401
CheckRestorePartition153871%466%262100301
AggScalarSubQueryToWindowFunction1481798%216174%2182614804101
AddProjectForUniqueFunction.FilterRewrite143068%50%143100301
NormalizeToSlot.NormalizeToSlotContext22694%2692%32535511101
QueryPartitionCollector11790%1083%293320301
ScalarApplyToJoin11589%4866%5132261701
PruneEmptyPartition10388%41477%4144290501
AddProjectForUniqueFunction.ProjectRewrite3069%50%14180301
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker2969%50%27281601
PullUpCteAnchor13291%3770%3112300601
CheckMatchExpression7486%31178%3111170401
PullUpProjectUnderApply9289%4866%3101170401
TransposeSemiJoinLogicalJoin16894%101661%10203290701
PruneFileScanPartition15794%787%1113360701
NormalizeToSlot.NormalizeWithoutWindowFunction11792%1688%2122300301
CreatePartitionTopNFromWindow8490%3975%391180301
PushDownFilterThroughSort5185%50%16180501
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
InferPredicates37598%33191%32927001101
InferPredicateByReplace27397%43489%5282661901
PushFilterInsideJoin7692%583%281171501
EliminateNullAwareLeftAntiJoin2982%50%151100401
ExtractSingleTableExpressionFromDisjunction38798%3997%13119001101
InferPredicateByReplace.PredicatesCollector16697%41881%42322901201
EliminateOrderByConstant5392%787%171160301
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule4593%375%151150301
MultiDistinctFunctionStrategy1885%100%14171301
ProjectOtherJoinConditionForNestedLoopJoin15698%2090%2160350501
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder14198%51777%5161340501
UnCorrelatedApplyProjectFilter13998%375%171290501
EliminateJoinCondition8797%4866%4120180601
MergeTopNs5896%50%141160301
MergeProjects4195%50%151100401
PushDownTopNThroughJoin31699%2492%22405501001
SetPreAggStatus18999%2090%22204301101
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
PushProjectThroughUnion316100%30100%0240640901
PushDownFilterThroughJoin246100%32990%3210560501
MergeSetOperations214100%2395%1190480701
CountLiteralRewrite204100%30100%0220430701
CTEInline197100%1593%1150390701
EliminateFilter194100%2291%2180400601
EliminateNotNull184100%22100%0170470601
CheckPrivileges181100%31583%3160420701
InferAggNotNull167100%2395%12403101201
EliminateConstHashJoinCondition147100%52180%5190330601
EliminateSort145100%18100%0160300701
PushDownJoinOtherCondition142100%18100%0150280601
InferJoinNotNull142100%12100%0100300401
InferFilterNotNull120100%16100%0130270501
SetPreAggStatus.PreAggInfoContext117100%100%080280701
NormalizeSort117100%8100%080320401
InferSetOperatorDistinct114100%1794%1180220901
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
PushDownFilterThroughWindow95100%8100%070220301
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate80100%583%180190501
UnCorrelatedApplyFilter78100%100%040170301
LimitSortToTopN75100%n/a040200401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer71100%787%180130401
CheckAndStandardizeWindowFunctionAndFrame68100%n/a050160501
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CollectFilterAboveConsumer60100%4100%060140401
EliminateJoinByUnique51100%4100%060120401
EliminateSortUnderSubqueryOrView51100%n/a04080401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
SemiJoinCommute48100%4100%08080601
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
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree23100%100%03060201
AddProjectForJoin23100%n/a03040301
OrExpansion.OrExpandsionContext17100%n/a01050101
ColumnPruning.PruneContext16100%n/a01060101
DistinctAggStrategySelector.DistinctSelectorContext14100%n/a01050101
InlineLogicalView100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
StatsDerive.DeriveContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101