org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total12,620 of 66,88981%2,355 of 8,00770%1,9235,9432,57013,8672101,9282240
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
VariantSubPathPruning.VariantSubPathReplacer1,00456235%875940%5693182293102001
JoinExtractOrFromCaseWhen60510014%981815%597013215681201
PushDownScoreTopNIntoOlapScan559223%1000%6972123129192201
SlotTypeReplacer4791,25072%6911963%561309936763601
AccessPathExpressionCollector4351,06571%6412065%6413088294183801
OrExpansion39674165%344657%316855183102801
PushDownEncodeSlot304257%424%273058665801
PushDownEncodeSlot.PushDownContext2980%300%212156566611
LimitAggToTopNAgg27834155%553337%41625412951801
PushDownVectorTopNIntoOlapScan2459728%42816%253259792701
MultiJoin2364816%200%1925395091501
NestedColumnPruning2022,01590%7727378%652126252003701
SetPreAggStatus.SetOlapScanPreAgg17755275%397565%3163311470601
SplitMultiDistinctStrategy17352675%173366%14353011931001
PushDownTopNThroughJoin16535368%232754%18413310711501
AdjustNullable1621,26988%3514180%281153027702701
RewriteSearchToSlots15134069%253155%2439309931101
NestedColumnPruning.DataTypeAccessTree14797486%5211669%411022722641801
ReduceAggregateChildOutputRows1444222%23723%141922310401
EliminateEmptyRelation14352878%267474%18672814601701
PushDownTopNDistinctThroughJoin13837873%323250%24453210501201
StatsDerive13762481%434350%36722717062901
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
InferSetOperatorDistinct11926068%433544%264722690801
ColumnPruning11792888%239780%18872523422701
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1135331%15525%1521213261101
EliminateGroupBy11124568%102470%72415700701
InferPredicates11052982%216074%16562712521401
PullUpProjectUnderTopN1067742%10637%81417331601
PullUpProjectUnderLimit1062820%820%81115213601
PushDownFilterThroughPartitionTopN10610%140%81024271301
PullUpPredicates1051,18291%2911479%311201923744601
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker10513656%192960%1734144031001
PruneFileScanPartition1057140%1016%81421372801
DecoupleEncodeDecode1032116%1810%111422281401
RewriteCteChildren9849283%103477%8361511811401
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
PushDownFilterThroughSetOperation9041082%114781%9391911101001
SkewJoin8617366%132565%102519600601
PushDownFilterThroughProject8521071%151346%112321702901
PushDownVirtualColumnsIntoOlapScan8469189%289076%25861815912701
SetPreAggStatus.PreAggInfoContext8019671%12633%719288311001
PushDownTopNThroughWindow7015869%151550%132119560601
PushDownFilterIntoSchemaScan6915869%301228%202914471801
SaltJoin6878392%297271%27671816001601
DistinctWindowExpression687452%141041%101614370401
PushProjectIntoUnion6718473%151753%112110501501
CollectPredicateOnScan663131%625%4818280401
DistinctAggregateRewriter6459490%258376%21671915401301
SimplifyWindowExpression6420976%171750%142412611701
PushDownProject6371491%204870%18491216901501
VariantSubPathPruning.Context6220576%62076%72212581901
OperativeColumnDerive6032084%64488%536127111101
ReorderJoin5876992%168083%15611217411301
PushDownLimit5833685%71770%823107131001
DistinctAggStrategySelector5821178%182558%152814580601
PruneEmptyPartition587255%141041%101714321501
MergeSetOperationsExcept582429%0%359142401
EliminateAggCaseWhen575348%41071%31011240301
AccessPathPlanCollector561,02294%1912786%16921322011901
AggScalarSubQueryToWindowFunction541,56996%4017681%391672033705901
UnequalPredicateInfer.InferenceGraph541,52196%2422290%211461226302301
AddProjectForVolatileExpression.OneRowRelationRewrite542934%516%3612200301
InferPredicateByReplace.ReplaceAnalyzer526354%9325%688180201
EliminateAggregate5220%80%7910133501
EliminateSortUnderApply502735%n/a2410162401
MergeAggregate4947290%173768%18471311722001
AddProjectForVolatileExpression.AggregateRewrite494145%325%2510210301
ConstantPropagation481,29296%2218089%191241429502301
SkipSimpleExprs4512172%111557%8176331401
PushDownAggThroughJoinOnPkFk4354392%156982%1456811801401
PushDownUnnestInProject3927287%141856%10227560601
PushDownFilterThroughVectorSearchTopN3926%40%358121301
SimplifyEncodeDecode374655%4660%387210301
AddProjectForVolatileExpression.HavingRewrite3727%0%24691301
ExtractAndNormalizeWindowExpression3628188%82071%102837131401
RewriteSimpleAggToConstantRule3536091%155377%184314983901
AddDefaultLimit3510074%11945%10199292901
PullUpJoinFromUnionAll321,13497%2111384%21831624201601
CheckScoreUsage3212579%8850%92074031201
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}292647%5337%479171301
LogicalResultSinkToShortCircuitPointQuery2819787%63083%7274491901
SetPreAggStatus2531792%124277%103957101201
EliminateLimitUnderApply2436%0%247101301
DecomposeRepeatWithPreAggregation221,46898%1113392%10100628202701
ConvertOuterJoinToAntiJoin2135494%114379%93827401101
PullUpJoinFromUnionAll.LogicalPlanComparator2121691%123473%11297420601
EliminateFilter2117389%42083%4184400601
CheckDataTypes218580%1191%1113250501
PullUpProjectExprUnderTopN.Rewriter216174%675%374161301
EliminateGroupByKeyByUniform2029993%3694%2243660501
MergeTopNs209081%3562%373240301
AddProjectForVolatileExpression.GenerateRewrite203060%50%14290301
PruneOlapScanTablet1919391%82273%7204430501
VariantSubPathPruning1910684%61470%4157330501
CheckMultiDistinct11786%42686%4192270401
ScalarApplyToJoin11085%5758%6133261701
PushDownAliasThroughJoin28294%42485%43025501601
UnCorrelatedApplyAggregateFilter17190%880%280400301
PullUpCorrelatedFilterUnderApplyAggregateProject16290%1083%2100350401
AccessPathExpressionCollector.CollectAccessPathResult5074%3562%4112141701
PullUpProjectExprUnderTopN87398%1514390%15100618702101
PushCountIntoUnionAll45396%134175%134289601501
MergeLimits8584%880%2111170601
CheckPrivileges20993%2090%3193521801
CheckDataTypes.ExpressionChecker8585%1191%1103230401
TransposeSemiJoinLogicalJoinProject24594%112367%112954501201
MaxMinFilterPushDown24394%93981%8312480701
EliminateAssertNumRows12389%82575%7224330501
AddProjectForVolatileExpression.FilterRewrite3068%50%143100301
MergePercentileToArray44997%3494%2261890801
InferInPredicateFromOr13891%41071%4133380601
EliminateSemiJoin5981%787%1101180501
AddProjectForVolatileExpression.ProjectRewrite3069%50%14180301
InApplyToJoin32496%73181%7232580401
PullUpCteAnchor13291%3770%3112300601
NormalizeToSlot.NormalizeWithoutWindowFunction11490%31583%3123300301
PruneOlapScanPartition46397%86689%84621190901
PushDownJoinOnAssertNumRows36397%84885%7374860901
InitJoinOrder12992%51979%4173320501
SetPreAggStatus.SetOlapScanPreAgg.KeySlotAggChecker3173%100%17181601
SumLiteralRewrite52798%75388%741310801101
TransposeSemiJoinLogicalJoin16894%101661%10203290701
PushDownProject.PushdownProjectHelper21195%42284%4183540501
CountDistinctRewrite12193%62076%5192280601
CreatePartitionTopNFromWindow8490%3975%391180301
PushDownFilterThroughRepeat8291%3562%383220401
SumLiteralRewrite.SumInfo6288%5550%584160301
EliminateLimit5687%466%281120501
RecordPlanForMvPreRewrite4785%100%063180501
ForeignKeyContext37498%62882%64147102401
EliminateOrderByKey33797%3494%2252810701
InferPredicateByReplace27297%43489%4282661901
PushDownFilterThroughJoin25697%43288%4233610501
AdjustConjunctsReturnType10693%466%2101250701
PushFilterInsideJoin10493%675%292260501
UnequalPredicateInfer8592%675%373241301
NormalizeToSlot.NormalizeToSlotContext23397%32589%32535501101
EliminateNullAwareLeftAntiJoin2982%50%151100401
PushDownLimitDistinctThroughJoin37198%93177%9282550701
PushDownMatchProjectionAsVirtualColumn21897%2492%2221480901
MergeSetOperations20997%61875%5190480701
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer7493%880%291150401
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
SplitLimit4790%375%161100401
PullUpProjectExprUnderTopN.ProjectSimplifier4690%675%271110301
AccessPathExpressionCollector.AccessPathBuilder4088%n/a181141801
PushDownExpressionsInHashCondition36398%1593%12817802001
EliminateOuterJoin33698%104481%103826401101
EliminateJoinByFK30998%2692%22426001001
EliminateGroupByKey26298%2492%2212510801
InferAggNotNull20098%33992%3291440801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
PullUpProjectUnderApply9996%3975%2100170401
EliminateOrderByConstant5392%787%171160301
ExtractSingleTableExpressionFromDisjunction38899%3895%23129001101
PushDownLimitDistinctThroughUnion16398%880%2121290701
PushDownTopNDistinctThroughUnion14898%880%2111260601
PushDownTopNThroughUnion13297%880%2101250501
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
AccessPathExpressionCollector.CollectorContext2488%n/a141101401
MultiDistinctFunctionStrategy85%100%14171301
AddProjectForVolatileExpression45999%44090%4310980901
PushDownAggThroughJoinOnPkFk.InnerJoinCluster33399%34393%3321700901
UnCorrelatedApplyProjectFilter13998%375%171290501
MergeOneRowRelationIntoUnion13298%1083%2101290401
AddProjectForVolatileExpression.JoinRewrite12898%583%161310301
TransposeSemiJoinAggProject8797%50%181140701
MergeProjects4195%50%151100401
EliminateJoinCondition8898%1083%2120180601
CollectLimitAboveConsumer7598%50%161180501
PushProjectThroughUnion374100%36100%0270790901
CTEInline225100%1794%1160430701
CountLiteralRewrite204100%30100%0220430701
SimplifyAggGroupBy187100%36100%0260510801
InferJoinNotNull185100%20100%0150340501
EliminateNotNull184100%22100%0170470601
ExistsApplyToJoin179100%787%1110310701
PushDownJoinOtherCondition152100%20100%0170320701
EliminateConstHashJoinCondition147100%42284%4190330601
ProjectOtherJoinConditionForNestedLoopJoin145100%18100%0130320401
EliminateSort145100%18100%0160300701
PushDownFilterThroughAggregation135100%1593%1120300401
QueryPartitionCollector130100%1083%290320301
InferFilterNotNull120100%16100%0130270501
NormalizeSort117100%8100%080320401
CheckMatchExpression114100%1593%1130210501
PushDownFilterThroughWindow106100%12100%0100240401
EliminateUnnecessaryProject98100%14100%0120210501
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
PushDownFilterThroughGenerate83100%787%190200501
TransposeSemiJoinAgg81100%4100%090160701
UnCorrelatedApplyFilter78100%100%040170301
LimitSortToTopN75100%n/a040200401
ExprIdRewriter.ReplaceRule71100%100%070190601
MergeGenerates70100%100%060130501
CheckAndStandardizeWindowFunctionAndFrame68100%n/a050160501
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CollectFilterAboveConsumer64100%6100%070160401
EliminateDedupJoinCondition62100%466%260150301
PullUpProjectExprUnderTopN.PullUpInfo61100%100%050140401
PushDownFilterThroughSort60100%100%06080501
CheckRestorePartition53100%583%160100301
EliminateJoinByUnique51100%4100%060120401
EliminateSortUnderSubqueryOrView51100%n/a04080401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
SemiJoinCommute48100%4100%08080601
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
NestedColumnPruning.OffsetPathRewrite39100%n/a070110701
CollectCteConsumerOutput35100%n/a04070401
BuildAggForUnion33100%100%05050401
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker31100%4100%06040401
OperativeColumnDerive.DeriveContext31100%100%050100401
MergeFilters31100%n/a03070301
PullUpJoinFromUnionAll.ExpressionOrIndex30100%n/a02080201
MergeProjectable30100%n/a03060301
ClearContextStatus30100%n/a02070201
UnequalPredicateInfer.InferenceGraph.Relation27100%n/a01050101
TransposeSemiJoinLogicalJoinProject.ContainsType27100%n/a01020101
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext24100%n/a01070101
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree23100%100%03060201
AddProjectForJoin23100%n/a03040301
OrExpansion.OrExpandsionContext100%n/a01050101
ColumnPruning.PruneContext100%n/a01060101
DistinctAggStrategySelector.DistinctSelectorContext100%n/a01050101
AddProjectForVolatileExpression.JoinRewriteResult100%n/a01050101
InlineLogicalView100%n/a02020201
DistinctAggregateRewriter.DistinctDistributionInfo100%n/a01040101
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
StatsDerive.DeriveContext100%n/a01020101
PullUpProjectExprUnderTopN.RewriteContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101