org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total67,011 of 67,0110%7,939 of 7,9390%5,9695,96913,85113,8511,9881,988248248
NestedColumnPruning2,0250%3260%196196481481333311
SlotTypeReplacer1,6760%1840%128128357357363611
VariantSubPathPruning.VariantSubPathReplacer1,5990%1500%9595295295202011
UnequalPredicateInfer.InferenceGraph1,5740%2460%146146263263232311
AccessPathExpressionCollector1,4790%1840%130130279279383811
AdjustNullable1,4190%1760%114114276276262611
DecomposeRepeatWithPreAggregation1,4180%1440%9999274274262611
ConstantPropagation1,3400%2020%124124295295232311
PullUpPredicates1,2870%1430%120120237237464611
PullUpJoinFromUnionAll1,1610%1340%8383242242161611
PullUpProjectExprUnderTopN1,1560%1780%116116235235272711
OrExpansion1,1310%800%6868183183282811
NestedColumnPruning.DataTypeAccessTree1,1030%1660%101101223223181811
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0290%1080%6767206206131311
AccessPathPlanCollector1,0190%1280%8383212212191911
ColumnPruning9730%1080%8181215215272711
AggScalarSubQueryToWindowFunction8310%820%8282148148414111
ReorderJoin8210%960%6161174174131311
SaltJoin8180%1010%6767159159161611
PushDownProject7770%680%4949169169151511
PushDownVirtualColumnsIntoOlapScan7660%1160%8484156156262611
StatsDerive7610%860%7272170170292911
PushDownAggThroughJoinOneSide7320%1060%7070143143171711
JoinExtractOrFromCaseWhen7110%1180%7171158158121211
SplitMultiDistinctStrategy6700%420%30301131139911
PushDownAggThroughJoin6700%880%6767127127232311
DistinctAggregateRewriter6570%1080%6767154154131311
InferPredicates6390%810%5656125125141411
EliminateEmptyRelation6190%880%6060134134161611
LimitAggToTopNAgg5950%800%5858125125181811
RewriteCteChildren5900%440%3636118118141411
PushDownAggThroughJoinOnPkFk5820%820%5555117117141411
SumLiteralRewrite5370%600%4141108108111111
SetPreAggStatus.SetOlapScanPreAgg5240%740%44441051057711
MergeAggregate5210%580%4949113113202011
PushDownTopNThroughJoin5040%460%3939104104151511
PushDownFilterThroughSetOperation5000%580%3939111111101011
PushDownAggWithDistinctThroughJoinOneSide4920%600%45459696151511
PushDownScoreTopNIntoOlapScan4870%840%6060116116181811
RewriteSearchToSlots4780%560%39399999111111
PruneOlapScanPartition4720%740%4747116116101011
PushCountIntoUnionAll4690%540%42429696151511
MergePercentileToArray4620%360%262689898811
PushDownTopNDistinctThroughJoin4470%460%35358888111111
AddProjectForVolatileExpression4310%440%313198989911
CTEInliner4130%500%40408888151511
ForeignKeyContext4050%420%43437979222211
RewriteSimpleAggToConstantRule3950%680%434398989911
PushDownLimit3940%240%23237171101011
ExtractSingleTableExpressionFromDisjunction3910%400%31319090111111
OperativeColumnDerive3800%500%36367171111111
PushDownJoinOnAssertNumRows3740%560%373786869911
PushDownLimitDistinctThroughJoin3620%360%262652527711
PushDownExpressionsInHashCondition3610%160%28287878202011
EliminateGroupBy3570%340%242470707711
EliminateOuterJoin3510%560%39396868111111
PushDownVectorTopNIntoOlapScan3340%480%313177777711
PushDownEncodeSlot3290%440%303066668811
InApplyToJoin3260%340%212156564411
PushProjectThroughUnion3200%300%242465659911
EliminateGroupByKeyByUniform3190%380%242466665511
EliminateOrderByKey3180%340%232375756611
EliminateJoinByFK3130%280%24246060101011
ExtractAndNormalizeWindowExpression3110%280%28287171141411
PushDownUnnestInProject3110%320%222256566611
PushDownAggThroughJoinOnPkFk.InnerJoinCluster3090%440%313163639911
VariantSubPathPruning.VariantSubPathCollector3040%340%252563638811
PushDownAliasThroughJoin2990%280%30305555161611
PushDownFilterThroughProject2950%280%232370709911
PushDownEncodeSlot.PushDownContext2920%300%212156566611
MultiJoin2840%200%25255050151511
InferPredicateByReplace2780%380%282866669911
DistinctAggStrategySelector2690%430%282858586611
SkewJoin2690%460%282860605511
VariantSubPathPruning.Context2670%260%222258589911
ConvertOuterJoinToAntiJoin2660%340%262648489911
EliminateGroupByKey2660%260%212151518811
PushDownFilterThroughJoin2630%360%232361615511
TransposeSemiJoinLogicalJoinProject2590%340%29294545121211
MaxMinFilterPushDown2570%480%313148487711
PushProjectIntoUnion2510%320%212150505511
SimplifyWindowExpression2480%260%191957576611
CTEInline2470%220%191948488811
SetPreAggStatus2460%320%27275757111111
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
NormalizeToSlot.NormalizeToSlotContext2390%280%25255555111111
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker2270%460%33333838101011
PushDownFilterIntoSchemaScan2270%420%292947478811
CheckPrivileges2240%220%191952528811
PushDownMatchProjectionAsVirtualColumn2230%260%222248489911
NormalizeOlapTableStreamScan.OlapTableStreamScanReplacer2220%380%232345454411
PushDownProject.PushdownProjectHelper2200%260%181854545511
MergeSetOperations2140%240%191948487711
PruneOlapScanTablet2120%300%202043435511
PushDownTopNThroughWindow2120%260%191952526611
InferAggNotNull2080%440%303045458811
CountLiteralRewrite2040%300%222243437711
LogicalResultSinkToShortCircuitPointQuery2020%280%232341419911
InferPredicateByReplace.PredicatesCollector1960%240%26263333141411
EliminateFilter1940%240%181840406611
UnCorrelatedApplyAggregateFilter1880%100%8840403311
InferJoinNotNull1850%200%151534345511
EliminateNotNull1840%220%171747476611
PullUpProjectUnderTopN1830%160%141433336611
ReduceAggregateChildOutputRows1800%300%191931314411
ExistsApplyToJoin1790%80%111131317711
PullUpCorrelatedFilterUnderApplyAggregateProject1790%120%101035354411
TransposeSemiJoinLogicalJoin1780%260%202029297711
PruneFileScanPartition1770%120%131337377711
SkipSimpleExprs1660%260%171733334411
PullUpProjectBetweenTopNAndAgg1610%220%171733336611
PushDownLimitDistinctThroughUnion1580%80%111127277711
PushDownJoinOtherCondition1530%200%171732327711
InferInPredicateFromOr1510%140%131338386611
CheckScoreUsage1480%160%20204040121211
ProjectOtherJoinConditionForNestedLoopJoin1450%180%131332324411
EliminateSort1450%180%161630307711
PushDownDistinctThroughJoin1440%200%181827278811
PullUpCteAnchor1440%100%111130306611
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1420%200%21213232111111
PushDownTopNDistinctThroughUnion1410%80%101024246611
DistinctWindowExpression1410%220%151535354411
UnCorrelatedApplyProjectFilter1410%40%7729295511
SetPreAggStatus.PreAggInfoContext1400%0%101034349911
InitJoinOrder1400%240%171732325511
EliminateConstHashJoinCondition1380%260%191933336611
EliminateAssertNumRows1370%330%222233335511
PushDownFilterThroughAggregation1350%160%121230304411
PullUpProjectUnderLimit1340%100%111121216611
MergeOneRowRelationIntoUnion1340%120%101028284411
AddProjectForVolatileExpression.JoinRewrite1300%60%6631313311
CountDistinctRewrite1300%260%191928286611
PruneEmptyPartition1300%240%171732325511
CheckMultiDistinct1290%300%191927274411
ScalarApplyToJoin1280%120%131326267711
AddDefaultLimit1260%200%181828288811
NormalizeToSlot.NormalizeWithoutWindowFunction1260%180%121230303311
PushDownTopNThroughUnion1250%80%9923235511
QueryPartitionCollector1240%120%9932323311
DecoupleEncodeDecode1240%200%141428284411
InferFilterNotNull1200%160%131327275511
PushDownFilterThroughPartitionTopN1180%140%101027273311
SimplifyAggGroupBy1170%220%171726266611
NormalizeSort1170%80%8832324411
VariantSubPathPruning1150%220%151530304411
AdjustConjunctsReturnType1130%60%101025257711
CheckMatchExpression1120%180%141422225511
PushFilterInsideJoin1110%80%9926265511
EliminateAggCaseWhen1100%140%101024243311
PushDownFilterThroughWindow1060%120%101024244411
CheckDataTypes1060%120%111125255511
PullUpProjectUnderApply1030%120%101017174411
CheckDataTypes.ExpressionChecker1000%120%101023234411
EliminateUnnecessaryProject980%140%121221215511
ForeignKeyContext.new DefaultPlanVisitor() {...}970%80%9921215511
CollectPredicateOnScan970%80%8828284411
InferPredicateByReplace.ReplaceAnalyzer970%120%8818182211
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker940%140%151513138811
CreatePartitionTopNFromWindow930%120%9918183311
UnequalPredicateInfer920%80%7724243311
AddProjectForVolatileExpression.AggregateRewrite900%40%5521213311
PushDownFilterThroughRepeat900%80%8822224411
PullUpProjectExprUnderTopN.Collector890%100%8819193311
EliminateJoinCondition890%120%121218186611
TransposeSemiJoinAggProject890%0%8814147711
InferSetOperatorDistinct840%140%141415157711
FindHashConditionForJoin840%60%6624243311
AddProjectForVolatileExpression.OneRowRelationRewrite830%60%6620203311
PushDownFilterThroughGenerate830%80%9920205511
SimplifyEncodeDecode830%100%8821213311
MergeSetOperationsExcept820%0%5514144411
MergeLimits810%80%101015156611
TransposeSemiJoinAgg810%40%9916167711
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer790%100%9915154411
UnCorrelatedApplyFilter780%0%4417173311
EliminateSortUnderApply770%n/a4416164411
LimitSortToTopN750%n/a4420204411
ExprIdRewriter.ReplaceRule710%0%7719196611
SumLiteralRewrite.SumInfo700%100%8816163311
MergeGenerates700%0%6613135511
CollectLimitAboveConsumer690%n/a5516165511
PullUpProjectExprUnderTopN.Replacer680%140%101017173311
PullUpProjectExprUnderTopN.PullUpInfo670%n/a4414144411
ColumnPruning.KeyColumnCollector660%100%8817173311
EliminateSemiJoin660%80%101018185511
ExprIdRewriter650%80%6615152211
ConvertInnerOrCrossJoin650%120%121212126611
EliminateAggregate650%80%9913135511
MergeTopNs640%0%4416163311
CollectFilterAboveConsumer640%60%7716164411
EliminateLimit640%60%8812125511
CheckAndStandardizeWindowFunctionAndFrame630%n/a4415154411
PullUpProjectExprUnderTopN.CollectorContext620%0%6614145511
EliminateDedupJoinCondition620%60%6615153311
PushDownFilterThroughSort600%0%66885511
AccessPathExpressionCollector.CollectAccessPathResult600%80%111114147711
MergePercentileToArray.DistinctAndExpr590%100%9913134411
EliminateOrderByConstant570%80%7716163311
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}550%80%7717173311
RecordPlanForMvPreRewrite550%0%6618185511
EliminateJoinByUnique510%40%6612124411
AddProjectForVolatileExpression.HavingRewrite510%0%44993311
EliminateSortUnderSubqueryOrView510%n/a44884411
AddProjectForVolatileExpression.GenerateRewrite500%0%44993311
NormalizeToSlot.NormalizeToSlotTriplet490%40%4412122211
PushDownVirtualColumnsIntoOlapScan.SkipResult480%60%77884411
SemiJoinCommute480%40%88886611
CheckRestorePartition450%60%6610103311
AccessPathExpressionCollector.AccessPathBuilder450%n/a8814148811
AddProjectForVolatileExpression.FilterRewrite440%0%4410103311
SplitLimit430%0%55884411
AddProjectForVolatileExpression.ProjectRewrite430%0%44883311
MergeProjects430%0%5510104411
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker420%0%77886611
ExtractFilterFromCrossJoin420%n/a3312123311
PushDownProjectThroughLimit400%n/a33663311
NestedColumnPruning.OffsetPathRewrite390%n/a7711117711
EliminateLimitUnderApply380%0%4410103311
CollectCteConsumerOutput350%n/a44774411
EliminateNullAwareLeftAntiJoin350%0%5510104411
AccessPathInfo330%n/a7714147711
BuildAggForUnion330%0%55554411
OperativeColumnDerive.DeriveContext310%0%5510104411
MergeFilters310%n/a33773311
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
MergeProjectable300%n/a33663311
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}290%40%44992211
AccessPathExpressionCollector.CollectorContext270%n/a4410104411
UnequalPredicateInfer.InferenceGraph.Relation270%n/a11551111
TransposeSemiJoinLogicalJoinProject.ContainsType270%n/a11221111
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext240%n/a11771111
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree230%0%33662211
AddProjectForJoin230%n/a33443311
MultiDistinctFunctionStrategy210%0%44773311
OrExpansion.OrExpandsionContext170%n/a11551111
ColumnPruning.PruneContext0%n/a11661111
CTEInliner.InlineResult0%n/a33663311
DistinctAggStrategySelector.DistinctSelectorContext0%n/a11551111
AddProjectForVolatileExpression.JoinRewriteResult0%n/a11551111
InlineLogicalView0%n/a22222211
NormalizeOlapTableStreamScan0%n/a22222211
DistinctAggregateRewriter.DistinctDistributionInfo0%n/a11441111
UnequalPredicateInfer.InferenceGraph.PairAndRelation0%n/a11441111
SkipSimpleExprs.ExprFeature0%n/a11441111
ClearContextStatus0%n/a22332211
StatsDerive.DeriveContext0%n/a11221111
OneRewriteRuleFactory0%n/a11111111
RewriteRuleFactory0%n/a11111111