org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total18,676 of 62,26070%2,670 of 6,93961%2,0875,3943,55612,7193291,9126235
PullUpJoinFromUnionAll1,03812810%1161813%7183213242101601
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
SlotTypeReplacer93685647%1008646%75131195379133801
SaltJoin912394%9366%6369172179141801
VariantSubPathPruning.VariantSubPathReplacer82976848%807046%489514629762001
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
PushDownAggThroughJoin6940%880%6767127127232311
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
PushDownAggThroughJoinOnPkFk42415827%681417%41558511741401
AccessPathPlanCollector39653257%516154%33728519241601
AccessPathExpressionCollector35965764%565850%48886820553101
PushDownLimitDistinctThroughJoin3253710%360%242641525701
PushDownProject31341456%333350%25477015841401
SumLiteralRewrite31318537%292142%2035559741001
PushDownJoinOnAssertNumRows30210826%392135%2740699741001
PushDownEncodeSlot.PushDownContext2980%300%212156566611
StatsDerive29647461%552934%467363173123101
NestedColumnPruning.DataTypeAccessTree27356867%235771%24555216961501
PushDownScoreTopNIntoOlapScan27322845%621822%45586011581801
PushDownUnnestInProject2704113%2939%172249562601
PushDownLimit25314135%19520%1723347141001
PullUpJoinFromUnionAll.LogicalPlanComparator2450%460%292942426611
EliminateJoinByFK2367724%22621%1724446051001
MultiJoin2364816%200%1925395091501
PushDownEncodeSlot21811133%251943%153042661801
PushDownVectorTopNIntoOlapScan18614844%331531%183146770701
ForeignKeyContext16921255%161852%20412971112401
ReduceAggregateChildOutputRows1671910%293%161925311401
SplitMultiDistinctStrategy16454176%183264%13352412021001
PruneFileScanPartition161158%120%111333375701
PushDownTopNDistinctThroughJoin15529265%232350%1635258801101
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15415550%182659%123133632901
SimplifyWindowExpression1509839%20623%121931571601
DeferMaterializeTopNResult14886585%305062%33932820985301
PushDownDistinctThroughJoin1440%200%181827278811
OrExpansion13998687%206075%21681518142801
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PushDownLimitDistinctThroughUnion1292918%712%71121273701
EliminateGroupBy12423365%122264%92417700701
JoinExtractOrFromCaseWhen12158482%348270%26702615611201
ReorderJoin11869985%227076%21592317321301
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker11711048%311532%2433183831001
ConstantPropagation1151,21991%3916180%321232629312301
InferPredicates11450481%225370%16532011901401
PushDownTopNThroughWindow1139946%17934%141928521601
ColumnPruning11293389%219982%17872623432701
InferPredicateByReplace.ReplaceAnalyzer1076%120%7816181201
PullUpPredicates1001,15892%2410981%231152023024601
AdjustNullable991,32893%2615085%251141527602601
VariantSubPathPruning.Context9916862%91765%92220582901
AddProjectForUniqueFunction9811353%6857%41216420501
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
PushDownFilterThroughSetOperation9531776%132969%1231208611001
MaxMinFilterPushDown9516263%192960%133117480701
SetPreAggStatus.SetOlapScanPreAgg8943583%136182%1244151050701
PushDownVirtualColumnsIntoOlapScan8868788%348471%31862015912701
PushDownFilterThroughProject8521071%161242%122321702901
PushCountIntoUnionAll7939083%233157%1942189611501
PullUpProjectUnderLimit792221%0%4710153601
PushDownFilterThroughRepeat7714%80%6819222401
DecomposeRepeatWithPreAggregation711,34194%2411883%22981827102601
CollectPredicateOnScan702727%712%5820281401
ExistsApplyToJoin6811162%675%3119311701
AddProjectForUniqueFunction.JoinRewrite686147%516%3617310301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
DistinctWindowExpression677452%121045%91512350401
DistinctAggregateRewriter6434184%213965%1641138801101
RewriteCteChildren6146788%63284%632610501301
SkewJoin5818976%92976%82412530501
PruneEmptyPartition585850%12633%81414291501
SumLiteralRewrite.SumInfo5817%100%7811162301
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5618877%141856%10219481501
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker5511166%61470%72153211101
RewriteSearchToSlots5432385%93177%93087901001
AddProjectForUniqueFunction.OneRowRelationRewrite542934%516%3612190301
MergeGenerates541622%0%469133501
DistinctAggStrategySelector5321680%202353%172813580601
PullUpCteAnchor529263%6440%41111301601
EliminateAggregate5220%80%7910133501
AddProjectForUniqueFunction.AggregateRewrite494145%325%2510210301
PushDownTopNThroughJoin4827985%32790%32666301001
PushDownFilterThroughSort4721%0%46583501
NestedColumnPruning4656292%54790%5371013601101
UnequalPredicateInfer.InferenceGraph451,53097%2022691%181461026312301
SkipSimpleExprs4512172%111557%8176331401
QueryPartitionCollector438766%6650%4911320301
EliminateAssertNumRows389972%161751%122210330501
MergePercentileToArray3742591%63083%6265890801
AddProjectForUniqueFunction.HavingRewrite3727%0%24691301
VariantSubPathPruning338371%101254%6159300401
EliminateSemiJoin324055%5337%4107180501
EliminateSortUnderApply314659%n/a145161401
ExtractAndNormalizeWindowExpression3028790%52382%72827131401
SimplifyEncodeDecode305363%880%286210301
PullUpJoinFromUnionAll.ExpressionOrIndex300%n/a22882211
AggScalarSubQueryToWindowFunction2780496%216174%2382614824101
LimitAggToTopNAgg2756895%156581%1558512501801
MergeAggregate2749494%174170%1349711302001
LogicalResultSinkToShortCircuitPointQuery2717586%42485%5234411901
PullUpProjectUnderTopN2612482%675%2103270601
EliminateGroupByKeyByUniform2529492%33592%3245660501
ConvertOuterJoinToAntiJoin2423890%92371%7252470901
PruneOlapScanTablet2418888%92170%7205430501
PruneOlapScanPartition2235794%104481%8354970801
DecoupleEncodeDecode2110383%31785%3143280401
CheckDataTypes218580%1191%1113250501
CheckScoreUsage2013787%7956%82044021201
AddProjectForUniqueFunction.GenerateRewrite203060%50%14290301
PushDownExpressionsInHashCondition1934894%31381%42857822001
EliminateOrderByKey1929994%33191%3234750601
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}193665%4450%376170301
EliminateLimitUnderApply191950%50%145100301
CheckMultiDistinct1811786%32790%3192270401
MergeOneRowRelationIntoUnion1811686%3975%3103280401
PushDownAliasThroughJoin1728294%32589%33025501601
UnCorrelatedApplyAggregateFilter1717190%880%280400301
PullUpCorrelatedFilterUnderApplyAggregateProject1716290%1083%2100350401
AccessPathExpressionCollector.CollectAccessPathResult175074%3562%4112141701
CTEInline1620992%1688%2162430701
OperativeColumnDerive1541196%36195%34238001001
CheckDataTypes.ExpressionChecker158585%1191%1103230401
CheckRestorePartition153871%466%262100301
EliminateSortUnderSubqueryOrView153670%n/a14081401
TransposeSemiJoinLogicalJoinProject24594%122264%122954501201
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
AddProjectForUniqueFunction.FilterRewrite3068%50%143100301
PushDownProject.PushdownProjectHelper20794%52180%5184540501
ScalarApplyToJoin11589%4866%5132261701
PushFilterInsideJoin10889%3975%4113271501
AddProjectForUniqueFunction.ProjectRewrite3069%50%14180301
NormalizeToSlot.NormalizeWithoutWindowFunction11490%31583%3123300301
CheckMatchExpression7085%880%2101180501
AccessPathInfo2163%n/a376143701
EliminateEmptyRelation58898%77191%655213201601
PushDownFilterThroughPartitionTopN10490%4866%493270301
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker3173%100%17181601
InferPredicateByReplace26996%63284%6283661901
TransposeSemiJoinLogicalJoin16894%91765%9203290701
EliminateOuterJoin31797%113173%93236401101
CountDistinctRewrite12193%62076%5192280601
CreatePartitionTopNFromWindow8490%3975%391180301
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
PushDownFilterThroughJoin25297%43288%4233610501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
PushDownFilterIntoSchemaScan22197%43890%4293470801
EliminateSort13995%1794%1161300701
MergeLimits7592%3562%2100150601
EliminateNullAwareLeftAntiJoin2982%50%151100401
PushDownMatchProjectionAsVirtualColumn18197%42686%4211420601
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
EliminateGroupByKey26298%2492%2212510801
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
AddDefaultLimit12296%51575%6182281801
PullUpProjectUnderApply9996%3975%2100170401
TransposeSemiJoinAgg7795%50%292160701
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
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%62076%6190330601
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
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
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
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