org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total17,613 of 61,07171%2,497 of 6,75163%1,9505,2643,34612,4493041,8775232
PullUpJoinFromUnionAll1,087796%121139%7383221242101601
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
SlotTypeReplacer1,01976943%1067842%79130215377163801
SaltJoin912394%9366%6369172179141801
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
VariantSubPathPruning.VariantSubPathReplacer67792057%648657%429511929752001
PushDownAggThroughJoin653415%880%6567107127212301
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
AccessPathExpressionCollector42847452%623435%47798218263101
PushDownAggThroughJoinOnPkFk42415827%681417%41558511741401
AccessPathPlanCollector37647055%495351%31668117641501
PushDownLimitDistinctThroughJoin3253710%360%242641525701
SumLiteralRewrite31318537%292142%2035559741001
NestedColumnPruning.DataTypeAccessTree30553663%275366%26555816971501
PushDownJoinOnAssertNumRows30410625%411931%2940709741001
PushDownEncodeSlot.PushDownContext2980%300%212156566611
PushDownUnnestInProject2704113%2939%172249562601
StatsDerive26450665%523238%447357173113101
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
EliminateJoinByFK2367724%22621%1724446051001
MultiJoin2364816%200%1925395091501
PushDownEncodeSlot21811133%251943%153042661801
PushDownVectorTopNIntoOlapScan18514844%331531%183146770701
PushDownLimit17322156%141041%1323277141001
ForeignKeyContext16921255%161852%20412971112401
ReduceAggregateChildOutputRows1671910%293%161925311401
SplitMultiDistinctStrategy16454176%183264%13352412021001
PruneFileScanPartition161158%120%111333375701
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15415550%182659%123133632901
SimplifyWindowExpression1509839%20623%121931571601
PushDownDistinctThroughJoin1440%200%181827278811
DeferMaterializeTopNResult14387085%265467%29932720985301
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PushDownLimitDistinctThroughUnion1292918%712%71121273701
EliminateGroupBy12423365%122264%92417700701
PushDownTopNDistinctThroughJoin12332472%212554%1535248801101
JoinExtractOrFromCaseWhen12158482%348270%26702615611201
OrExpansion11892188%145479%16621116542801
ReorderJoin11869985%227076%21592317321301
PushDownProject11761083%184872%16472615811401
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker11711048%311532%2433183831001
ConstantPropagation1131,22191%3816281%311232529312301
PushDownTopNThroughWindow1139946%17934%141928521601
ColumnPruning11294189%219782%17862623932701
VariantSubPathPruning.Context9916862%91765%92220582901
RewriteSearchToSlots9827974%122870%1030187901001
AddProjectForUniqueFunction9811353%6857%41216420501
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
PushDownFilterThroughSetOperation9531776%132969%1231208611001
MaxMinFilterPushDown9516263%192960%133117480701
InferPredicateByReplace.ReplaceAnalyzer912420%1016%6812180201
SetPreAggStatus.SetOlapScanPreAgg8943583%136182%1244151050701
PushDownVirtualColumnsIntoOlapScan8868788%348471%31862015912701
PushDownFilterThroughProject8521071%161242%122321702901
PushDownFilterThroughRepeat7714%80%6819222401
NestedColumnPruning7348786%83681%829131220701
AdjustNullable701,38495%2215687%22116828002701
CollectPredicateOnScan702727%712%5820281401
ExistsApplyToJoin6811162%675%3119311701
AddProjectForUniqueFunction.JoinRewrite686147%516%3617310301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
DistinctWindowExpression677452%121045%91512350401
DistinctAggregateRewriter6434184%213965%1641138801101
RewriteCteChildren6146788%63284%632610501301
PullUpPredicates591,19995%2011384%201151423024601
SkewJoin5818976%92976%82412530501
SumLiteralRewrite.SumInfo5817%100%7811162301
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5618877%141856%10219481501
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker5511166%61470%72153211101
AddProjectForUniqueFunction.OneRowRelationRewrite542934%516%3612190301
MergeGenerates541622%0%469133501
PushCountIntoUnionAll5341688%173768%1642139611501
DistinctAggStrategySelector5321680%202353%172813580601
EliminateAggregate5220%80%7910133501
AddProjectForUniqueFunction.AggregateRewrite494145%325%2510210301
PushDownTopNThroughJoin4827985%32790%32666301001
UnequalPredicateInfer.InferenceGraph451,53097%2022691%181461026312301
SkipSimpleExprs4512172%111557%8176331401
QueryPartitionCollector438766%6650%4911320301
EliminateAssertNumRows389972%161751%122210330501
MergePercentileToArray3742591%63083%6265890801
AddProjectForUniqueFunction.HavingRewrite3727%0%24691301
InferPredicates3258694%126384%1153811901401
DecomposeRepeatWithPreAggregation311,08097%98990%971821202201
EliminateSortUnderApply314659%n/a145161401
ExtractAndNormalizeWindowExpression3028790%52382%72827131401
SimplifyEncodeDecode305363%880%286210301
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
MergeAggregate2749494%174170%1349711302001
LogicalResultSinkToShortCircuitPointQuery2717586%42485%5234411901
LimitAggToTopNAgg2656995%146682%1458512501801
PullUpProjectUnderTopN2612482%675%2103270601
EliminateGroupByKeyByUniform2529392%33592%3245660501
PruneOlapScanTablet2418888%92170%7205430501
PullUpProjectUnderLimit247776%50%172150601
CheckScoreUsage2113686%51168%62054021201
DecoupleEncodeDecode2110383%31785%3143280401
CheckDataTypes218580%1191%1113250501
PruneOlapScanPartition2035994%94583%7354970801
AddProjectForUniqueFunction.GenerateRewrite203060%50%14290301
PushDownExpressionsInHashCondition1934894%31381%42857822001
EliminateOrderByKey1929994%33191%3234750601
VariantSubPathPruning198080%61266%4137260401
EliminateLimitUnderApply191950%50%145100301
ConvertOuterJoinToAntiJoin1824493%32990%3252470901
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
EliminateSortUnderSubqueryOrView153670%n/a14081401
AggScalarSubQueryToWindowFunction81798%216174%2182614804101
TransposeSemiJoinLogicalJoinProject24594%122264%122954501201
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
AddProjectForUniqueFunction.FilterRewrite3068%50%143100301
PushDownProject.PushdownProjectHelper20794%52180%5184540501
ScalarApplyToJoin11589%4866%5132261701
AddProjectForUniqueFunction.ProjectRewrite3069%50%14180301
PullUpCteAnchor13291%3770%3112300601
NormalizeToSlot.NormalizeWithoutWindowFunction11490%31583%3123300301
CheckMatchExpression7486%31178%3111170401
EliminateEmptyRelation58898%77191%655213201601
PushDownFilterThroughPartitionTopN10490%4866%493270301
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker3173%100%17181601
PushDownScoreTopNIntoOlapScan23095%32388%32325401001
TransposeSemiJoinLogicalJoin16894%91765%9203290701
EliminateOuterJoin31797%113173%93236401101
CountDistinctRewrite12193%62076%5192280601
PruneEmptyPartition10792%31583%3143290501
CreatePartitionTopNFromWindow8490%3975%391180301
PushDownFilterThroughSort5185%50%16180501
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
PushDownFilterThroughJoin25297%43288%4233610501
PushFilterInsideJoin11494%1083%2112270501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
EliminateSort13995%1794%1161300701
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
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
AccessPathExpressionCollector.CollectorContext2488%n/a141101401
MultiDistinctFunctionStrategy1885%100%14171301
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder14198%51777%5161340501
EliminateJoinCondition8797%4866%4120180601
TransposeSemiJoinAgg7997%375%191160701
MergeTopNs5896%50%141160301
MergeProjects4195%50%151100401
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
InApplyToJoin326100%33191%3210560401
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
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
CheckAndStandardizeWindowFunctionAndFrame68100%n/a050160501
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CollectFilterAboveConsumer60100%4100%060140401
EliminateOrderByConstant57100%8100%070160301
EliminateJoinByUnique51100%4100%060120401
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
ExprIdRewriter.ReplaceRule32100%n/a04090401
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.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