org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total14,619 of 61,20476%2,169 of 6,76367%1,7405,2752,77412,4852511,8823233
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
SlotTypeReplacer1,01677243%1057942%78130214377163801
SaltJoin912394%9366%6369172179141801
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
VariantSubPathPruning.VariantSubPathReplacer67792057%648657%429511929752001
PushDownAggThroughJoin653415%880%6567107127212301
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
AccessPathExpressionCollector42847452%623435%47798218263101
AccessPathPlanCollector37650857%485653%30678118541501
PushDownLimitDistinctThroughJoin3253710%360%242641525701
NestedColumnPruning.DataTypeAccessTree30553663%275366%26555816971501
PushDownEncodeSlot.PushDownContext2980%300%212156566611
PushDownUnnestInProject2704113%2939%172249562601
MultiJoin2364816%200%1925395091501
PushDownEncodeSlot21811133%251943%153042661801
PushDownVectorTopNIntoOlapScan18514844%331531%183146770701
ReduceAggregateChildOutputRows1671910%293%161925311401
SplitMultiDistinctStrategy16454176%183264%13352412021001
PruneFileScanPartition161158%120%111333375701
PushDownLimit15523960%111354%1123267141001
StatsDerive15161980%404452%35733117373101
PushDownDistinctThroughJoin1440%200%181827278811
DeferMaterializeTopNResult14387085%265467%29932720985301
PullUpJoinFromUnionAll1371,02988%3310175%27833524201601
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PushDownLimitDistinctThroughUnion1292918%712%71121273701
EliminateGroupBy12423365%122264%92417700701
JoinExtractOrFromCaseWhen12158482%328472%24702615611201
PushDownTopNDistinctThroughJoin12132672%202656%1435238801101
SetPreAggStatus.SetOlapScanPreAgg12040477%155979%1444201050701
OrExpansion11892188%145479%16621116542801
ReorderJoin11869985%207278%19592317321301
PushDownProject11761083%184872%16472615811401
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker11711048%311532%2433183831001
ColumnPruning11294189%219782%17862623932701
PushDownTopNThroughWindow11110147%161038%131927521601
ConstantPropagation1021,23292%3716381%301232329312301
VariantSubPathPruning.Context9916862%91765%92220582901
RewriteSearchToSlots9827974%122870%1030187901001
AddProjectForUniqueFunction9811353%6857%41216420501
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
MaxMinFilterPushDown9516263%192960%133117480701
InferPredicateByReplace.ReplaceAnalyzer912420%1016%6812180201
PushDownVirtualColumnsIntoOlapScan8868788%348471%31862015912701
PushDownJoinOnAssertNumRows8832278%194168%1540229701001
PushDownFilterThroughProject8521071%161242%122321702901
SimplifyWindowExpression8316566%141246%101915571601
NestedColumnPruning8048085%83681%829161220701
PushDownAggThroughJoinOnPkFk7850486%196376%16551411711401
PushDownFilterThroughRepeat7714%80%6819222401
AdjustNullable701,38495%2215687%22116828002701
ForeignKeyContext7031181%132161%1141107122401
CollectPredicateOnScan702727%712%5820281401
PushDownFilterThroughSetOperation6934383%113173%931158601001
ExistsApplyToJoin6811162%675%3119311701
AddProjectForUniqueFunction.JoinRewrite686147%516%3617310301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
DistinctWindowExpression677452%121045%91512350401
PullUpPredicates591,19995%2011384%201151423024601
SkewJoin5818976%92976%82412530501
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5618877%141856%10219481501
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker5511166%71365%82153211101
AddProjectForUniqueFunction.OneRowRelationRewrite542934%516%3612190301
MergeGenerates541622%0%469133501
DistinctAggStrategySelector5321680%202353%172813580601
EliminateAggregate5220%80%7910133501
PushCountIntoUnionAll5141889%163870%1542129611501
AddProjectForUniqueFunction.AggregateRewrite494145%325%2510210301
SkipSimpleExprs4512172%111557%8176331401
QueryPartitionCollector438766%6650%4911320301
RewriteCteChildren4148792%3797%132310501301
EliminateAssertNumRows389972%141957%102210330501
AddProjectForUniqueFunction.HavingRewrite3727%0%24691301
EliminateSortUnderApply314659%n/a145161401
ExtractAndNormalizeWindowExpression3028790%52382%72827131401
SimplifyEncodeDecode305363%880%286210301
LogicalResultSinkToShortCircuitPointQuery2717586%42485%5234411901
PullUpProjectUnderTopN2612482%675%2103270601
InferPredicates2559395%116485%1053711901401
EliminateGroupByKeyByUniform2529492%33592%3245660501
UnequalPredicateInfer.InferenceGraph241,55198%1323394%141461026312301
DistinctAggregateRewriter2438194%154575%134158801101
PushDownTopNThroughJoin2430392%2893%22636301001
PullUpProjectUnderLimit247776%50%172150601
PullUpJoinFromUnionAll.LogicalPlanComparator2322290%133371%12298420601
SumLiteralRewrite2247695%54590%53539701001
CheckScoreUsage2113686%51168%62054021201
DecoupleEncodeDecode2110383%31785%3143280401
CheckDataTypes218580%1191%1113250501
MergeAggregate2050196%154374%1249511302001
PruneOlapScanPartition2035994%94583%7354970801
AddProjectForUniqueFunction.GenerateRewrite203060%50%14290301
PushDownExpressionsInHashCondition1934894%31381%42857822001
EliminateOrderByKey1929994%33191%3234750601
VariantSubPathPruning198080%61266%4137260401
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}193665%4450%376170301
EliminateLimitUnderApply191950%50%145100301
ConvertOuterJoinToAntiJoin1824493%32990%3252470901
PruneOlapScanTablet1819491%72376%6204430501
CheckMultiDistinct1811786%32790%3192270401
MergeOneRowRelationIntoUnion1811686%3975%3103280401
PushDownAliasThroughJoin1728294%32589%33025501601
UnCorrelatedApplyAggregateFilter1717190%880%280400301
PullUpCorrelatedFilterUnderApplyAggregateProject1716290%1083%2100350401
AccessPathExpressionCollector.CollectAccessPathResult175074%3562%4112141701
CTEInline1620992%1688%2162430701
EliminateSemiJoin165677%675%2102180501
OperativeColumnDerive1541196%36195%34238001001
CheckDataTypes.ExpressionChecker158585%1191%1103230401
CheckRestorePartition153871%466%262100301
AggScalarSubQueryToWindowFunction81798%216174%2182614804101
TransposeSemiJoinLogicalJoinProject24594%122264%122954501201
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
AddProjectForUniqueFunction.FilterRewrite3068%50%143100301
DecomposeRepeatWithPreAggregation1,09898%79192%771521202201
PushDownProject.PushdownProjectHelper20794%52180%5184540501
ScalarApplyToJoin11589%4866%5132261701
AddProjectForUniqueFunction.ProjectRewrite3069%50%14180301
PullUpCteAnchor13291%3770%3112300601
CheckMatchExpression7486%31178%3111170401
EliminateEmptyRelation58898%77191%655213201601
MergePercentileToArray45197%3597%1261890801
PushDownFilterThroughPartitionTopN10490%4866%493270301
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker3173%100%17181601
PushDownScoreTopNIntoOlapScan23095%32388%32325401001
EliminateOuterJoin31797%113173%93236401101
CountDistinctRewrite12193%62076%5192280601
PruneEmptyPartition10792%31583%3143290501
CreatePartitionTopNFromWindow8490%3975%391180301
PushDownFilterThroughSort5185%50%16180501
PushDownAggThroughJoinOnPkFk.InnerJoinCluster30197%4295%2311630901
SumLiteralRewrite.SumInfo6288%5550%584160301
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
EliminateJoinByFK30697%52382%52426001001
PushDownFilterThroughJoin25297%33391%3233610501
PushFilterInsideJoin11494%1083%2112270501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
TransposeSemiJoinLogicalJoin17296%71973%7203290701
EliminateNullAwareLeftAntiJoin2982%50%151100401
PushDownFilterIntoSchemaScan22297%33992%3292470801
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
InferPredicateByReplace27598%3694%3282661901
EliminateGroupByKey26298%2492%2212510801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
AddDefaultLimit12296%51575%6182281801
PullUpProjectUnderApply9996%3975%2100170401
NormalizeToSlot.NormalizeWithoutWindowFunction12397%1794%1121300301
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
AccessPathExpressionCollector.CollectorContext2488%n/a141101401
MultiDistinctFunctionStrategy1885%100%14171301
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder14198%2090%2161340501
EliminateJoinCondition8797%4866%4120180601
TransposeSemiJoinAgg7997%375%191160701
MergeTopNs5896%50%141160301
MergeProjects4195%50%151100401
LimitAggToTopNAgg59499%126885%1258012501801
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
InApplyToJoin326100%3294%2210560401
PushProjectThroughUnion316100%30100%0240640901
MergeSetOperations214100%2395%1190480701
SetPreAggStatus213100%22100%02204801101
CountLiteralRewrite204100%30100%0220430701
EliminateFilter194100%2291%2180400601
EliminateNotNull184100%22100%0170470601
CheckPrivileges181100%31583%3160420701
InferAggNotNull167100%2395%12403101201
ProjectOtherJoinConditionForNestedLoopJoin158100%2195%1160350501
EliminateConstHashJoinCondition147100%52180%5190330601
PushDownJoinOtherCondition145100%18100%0160300701
EliminateSort145100%18100%0160300701
InferJoinNotNull142100%12100%0100300401
UnCorrelatedApplyProjectFilter141100%4100%070290501
SetPreAggStatus.PreAggInfoContext140100%100%0100340901
PushDownFilterThroughAggregation135100%1487%2120300401
InferFilterNotNull120100%16100%0130270501
SimplifyAggGroupBy117100%22100%0170260601
NormalizeSort117100%8100%080320401
InferSetOperatorDistinct114100%1794%1180220901
PushDownFilterThroughWindow99100%8100%080230401
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
MergeLimits81100%787%1100150601
PushDownFilterThroughGenerate80100%583%180190501
UnCorrelatedApplyFilter78100%100%040170301
LimitSortToTopN75100%n/a040200401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer71100%787%180130401
ExprIdRewriter.ReplaceRule71100%100%070190601
CheckAndStandardizeWindowFunctionAndFrame68100%n/a050160501
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CollectFilterAboveConsumer60100%4100%060140401
EliminateOrderByConstant57100%8100%070160301
EliminateJoinByUnique51100%4100%060120401
EliminateSortUnderSubqueryOrView51100%n/a04080401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
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
PullUpJoinFromUnionAll.ExpressionOrIndex30100%n/a02080201
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.DistinctSelectorContext100%n/a01050101
InlineLogicalView100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
StatsDerive.DeriveContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101