org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total65,098 of 65,0980%7,517 of 7,5170%5,7035,70313,41313,4131,9331,933237237
SlotTypeReplacer1,7960%1880%132132381381383811
AggScalarSubQueryToWindowFunction1,6230%2160%167167337337595911
VariantSubPathPruning.VariantSubPathReplacer1,6080%1500%9595298298202011
UnequalPredicateInfer.InferenceGraph1,5750%2460%146146263263232311
DecomposeRepeatWithPreAggregation1,4440%1460%101101276276272711
AdjustNullable1,4310%1760%115115277277272711
ConstantPropagation1,3400%2020%124124295295232311
PullUpPredicates1,2870%1430%120120237237464611
PullUpJoinFromUnionAll1,1660%1340%8383242242161611
OrExpansion1,1370%800%6868183183282811
ColumnPruning1,0450%1200%8787234234272711
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
AccessPathExpressionCollector1,0230%1160%8888207207303011
DeferMaterializeTopNResult1,0130%800%9393209209535311
AccessPathPlanCollector9870%1300%8181200200161611
SaltJoin8510%1010%6767160160161611
NestedColumnPruning.DataTypeAccessTree8420%820%5656171171151511
ReorderJoin8270%960%6161174174131311
StatsDerive7980%900%7676179179313111
PushDownProject7770%680%4949169169151511
PushDownVirtualColumnsIntoOlapScan7750%1180%8686159159272711
SetPreAggStatus.SetOlapScanPreAgg7290%1140%63631471476611
JoinExtractOrFromCaseWhen7050%1160%7070156156121211
SplitMultiDistinctStrategy6990%500%3535119119101011
PushDownAggThroughJoin6940%880%6767127127232311
EliminateEmptyRelation6710%1000%6767146146171711
DistinctAggregateRewriter6580%1080%6767154154131311
NestedColumnPruning6540%580%4141145145121211
InferPredicates6390%810%5656125125141411
LimitAggToTopNAgg5950%800%5858125125181811
RewriteCteChildren5900%440%3636118118141411
PushDownAggThroughJoinOnPkFk5860%840%5656118118141411
PushDownScoreTopNIntoOlapScan5860%1000%7272129129222211
SumLiteralRewrite5370%600%4141108108111111
MergeAggregate5210%540%4747117117202011
PushDownAggWithDistinctThroughJoinOneSide5160%600%45459696151511
PushDownFilterThroughSetOperation5000%580%3939111111101011
RewriteSearchToSlots4910%560%39399999111111
PushCountIntoUnionAll4690%540%42429696151511
MergePercentileToArray4620%360%262689898811
PruneOlapScanPartition4610%700%44441161169911
AddProjectForVolatileExpression4610%440%313198989911
PushDownTopNDistinctThroughJoin4470%460%35358888111111
OperativeColumnDerive4260%640%42428080101011
RewriteSimpleAggToConstantRule3950%680%434398989911
PushDownLimit3940%240%23237171101011
ExtractSingleTableExpressionFromDisjunction3910%400%31319090111111
ForeignKeyContext3810%340%41417171242411
InferSetOperatorDistinct3790%780%474769698811
PushProjectThroughUnion3740%360%272779799911
PushDownJoinOnAssertNumRows3740%560%373786869911
PushDownExpressionsInHashCondition3670%160%28287878202011
PushDownLimitDistinctThroughJoin3620%360%262652527711
EliminateGroupBy3560%340%242470707711
EliminateOuterJoin3510%560%39396868111111
SetPreAggStatus3420%540%39397171121211
InApplyToJoin3360%380%232358584411
PushDownAggThroughJoinOnPkFk.InnerJoinCluster3350%460%323270709911
PushDownVectorTopNIntoOlapScan3340%480%313177777711
PushDownEncodeSlot3290%440%303066668811
PushDownTopNThroughJoin3270%300%26266363101011
EliminateGroupByKeyByUniform3190%380%242466665511
EliminateOrderByKey3180%340%232375756611
ExtractAndNormalizeWindowExpression3170%280%28287171141411
EliminateJoinByFK3130%280%24246060101011
PushDownUnnestInProject3110%320%222256566611
VariantSubPathPruning.VariantSubPathCollector3040%340%252563638811
PushDownAliasThroughJoin2990%280%30305555161611
PushDownEncodeSlot.PushDownContext2980%300%212156566611
PushDownFilterThroughProject2950%280%232370709911
MultiJoin2840%200%25255050151511
InferPredicateByReplace2790%380%282866669911
SetPreAggStatus.PreAggInfoContext2760%180%19198383101011
SimplifyWindowExpression2730%340%242461617711
DistinctAggStrategySelector2690%430%282858586611
VariantSubPathPruning.Context2670%260%222258589911
ConvertOuterJoinToAntiJoin2660%340%262648489911
EliminateGroupByKey2660%260%212151518811
PushDownFilterThroughJoin2630%360%232361615511
SkewJoin2590%380%252560606611
TransposeSemiJoinLogicalJoinProject2590%340%29294545121211
MaxMinFilterPushDown2570%480%313148487711
PushProjectIntoUnion2510%320%212150505511
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker2410%480%34344040101011
NormalizeToSlot.NormalizeToSlotContext2390%280%25255555111111
PullUpJoinFromUnionAll.LogicalPlanComparator2370%460%292942426611
PushDownFilterIntoSchemaScan2270%420%292947478811
CTEInline2250%180%161643437711
CheckPrivileges2240%220%191952528811
PushDownMatchProjectionAsVirtualColumn2230%260%222248489911
PushDownProject.PushdownProjectHelper2200%260%181854545511
MergeSetOperations2140%240%191948487711
PushDownTopNThroughWindow2120%260%191952526611
PruneOlapScanTablet2120%300%202043435511
LogicalResultSinkToShortCircuitPointQuery2100%300%242444449911
InferAggNotNull2080%440%303045458811
CountLiteralRewrite2040%300%222243437711
InferPredicateByReplace.PredicatesCollector1960%240%26263333141411
EliminateFilter1940%240%181840406611
UnCorrelatedApplyAggregateFilter1880%100%8840403311
SimplifyAggGroupBy1870%360%262651518811
ReduceAggregateChildOutputRows1860%300%191931314411
InferJoinNotNull1850%200%151534345511
EliminateNotNull1840%220%171747476611
ExistsApplyToJoin1790%80%111131317711
PullUpCorrelatedFilterUnderApplyAggregateProject1790%120%101035354411
TransposeSemiJoinLogicalJoin1780%260%202029297711
PruneFileScanPartition1760%120%141437378811
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker1660%200%21213232111111
SkipSimpleExprs1660%260%171733334411
PullUpProjectBetweenTopNAndAgg1610%220%171733336611
PushDownLimitDistinctThroughUnion1580%80%111127277711
PullUpProjectUnderTopN1580%120%121228286611
CheckScoreUsage1570%160%20204040121211
PushDownJoinOtherCondition1520%200%171732327711
InferInPredicateFromOr1510%140%131338386611
EliminateConstHashJoinCondition1470%260%191933336611
ProjectOtherJoinConditionForNestedLoopJoin1450%180%131332324411
EliminateSort1450%180%161630307711
PullUpCteAnchor1440%100%111130306611
DistinctWindowExpression1420%240%161637374411
PushDownTopNDistinctThroughUnion1410%80%101023236611
UnCorrelatedApplyProjectFilter1410%40%7729295511
InitJoinOrder1400%240%171732325511
EliminateAssertNumRows1370%330%222233335511
PushDownFilterThroughAggregation1350%160%121230304411
CheckMultiDistinct1350%300%191927274411
QueryPartitionCollector1300%120%9932323311
CountDistinctRewrite1300%260%191928286611
PruneEmptyPartition1300%240%171732325511
AddProjectForVolatileExpression.JoinRewrite1300%60%6631313311
MergeOneRowRelationIntoUnion1290%120%101028284411
ScalarApplyToJoin1280%120%131326267711
AddDefaultLimit1260%200%181828288811
NormalizeToSlot.NormalizeWithoutWindowFunction1260%180%121230303311
PushDownTopNThroughUnion1250%80%9923235511
DecoupleEncodeDecode1240%200%141428284411
InferFilterNotNull1200%160%131327275511
PushDownFilterThroughPartitionTopN1180%140%101027273311
NormalizeSort1170%80%8832324411
VariantSubPathPruning1160%220%151530304411
InferPredicateByReplace.ReplaceAnalyzer1150%120%8818182211
CheckMatchExpression1140%160%131321215511
AdjustConjunctsReturnType1130%60%101025257711
PushFilterInsideJoin1110%80%9926265511
EliminateAggCaseWhen1100%140%101024243311
PullUpProjectUnderLimit1090%60%9916166611
PushDownFilterThroughWindow1060%120%101024244411
CheckDataTypes1060%120%111125255511
PullUpProjectUnderApply1030%120%101017174411
CheckDataTypes.ExpressionChecker1000%120%101023234411
EliminateUnnecessaryProject980%140%121221215511
CollectPredicateOnScan970%80%8828284411
ForeignKeyContext.new DefaultPlanVisitor() {...}970%80%9921215511
CreatePartitionTopNFromWindow930%120%9918183311
UnequalPredicateInfer920%80%7724243311
AddProjectForVolatileExpression.AggregateRewrite900%40%5521213311
MergeTopNs900%60%6622223311
PushDownFilterThroughRepeat900%80%8822224411
EliminateJoinCondition890%120%121218186611
TransposeSemiJoinAggProject890%0%8814147711
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
EliminateSemiJoin720%80%101018185511
ExprIdRewriter.ReplaceRule710%0%7719196611
SumLiteralRewrite.SumInfo700%100%8816163311
MergeGenerates700%0%6613135511
CollectLimitAboveConsumer690%n/a5516165511
CheckAndStandardizeWindowFunctionAndFrame680%n/a5516165511
AccessPathExpressionCollector.CollectAccessPathResult670%80%111114147711
ColumnPruning.KeyColumnCollector660%100%8817173311
ConvertInnerOrCrossJoin650%120%121212126611
ExprIdRewriter650%80%6615152211
EliminateAggregate650%80%9913135511
EliminateLimit640%60%8812125511
CollectFilterAboveConsumer640%60%7716164411
EliminateDedupJoinCondition620%60%6615153311
PushDownFilterThroughSort600%0%66885511
MergePercentileToArray.DistinctAndExpr590%100%9913134411
EliminateOrderByConstant570%80%7716163311
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}550%80%7717173311
RecordPlanForMvPreRewrite550%0%6618185511
PushDownFilterThroughVectorSearchTopN530%40%5512123311
CheckRestorePartition530%60%6610103311
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
AccessPathExpressionCollector.AccessPathBuilder450%n/a8814148811
AddProjectForVolatileExpression.FilterRewrite440%0%4410103311
AddProjectForVolatileExpression.ProjectRewrite430%0%44883311
SplitLimit430%0%55884411
MergeProjects430%0%5510104411
SetPreAggStatus.SetOlapScanPreAgg.KeySlotAggChecker420%0%77886611
ExtractFilterFromCrossJoin420%n/a3312123311
PushDownProjectThroughLimit400%n/a33663311
EliminateLimitUnderApply380%0%4410103311
CollectCteConsumerOutput350%n/a44774411
EliminateNullAwareLeftAntiJoin350%0%5510104411
BuildAggForUnion330%0%55554411
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker310%40%66444411
OperativeColumnDerive.DeriveContext310%0%5510104411
MergeFilters310%n/a33773311
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
MergeProjectable300%n/a33663311
ClearContextStatus300%n/a22772211
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}290%40%44992211
AccessPathExpressionCollector.CollectorContext270%n/a4410104411
TransposeSemiJoinLogicalJoinProject.ContainsType270%n/a11221111
UnequalPredicateInfer.InferenceGraph.Relation270%n/a11551111
ProjectOtherJoinConditionForNestedLoopJoin.ReplacerContext240%n/a11771111
VariantSubPathPruning.VariantSubPathCollector.ExtractSlotToSubPathPairFromTree230%0%33662211
AddProjectForJoin230%n/a33443311
MultiDistinctFunctionStrategy210%0%44773311
OrExpansion.OrExpandsionContext170%n/a11551111
ColumnPruning.PruneContext160%n/a11661111
DistinctAggStrategySelector.DistinctSelectorContext0%n/a11551111
AddProjectForVolatileExpression.JoinRewriteResult0%n/a11551111
InlineLogicalView0%n/a22222211
UnequalPredicateInfer.InferenceGraph.PairAndRelation0%n/a11441111
SkipSimpleExprs.ExprFeature0%n/a11441111
StatsDerive.DeriveContext0%n/a11221111
DistinctAggregateRewriter.DistinctDistributionInfo0%n/a11441111
OneRewriteRuleFactory0%n/a11111111
RewriteRuleFactory0%n/a11111111