org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total13,674 of 59,05076%2,062 of 6,55568%1,6655,1302,58612,0572391,8413230
PushDownEncodeSlot.EncodeSlotPushDownVisitor1,0350%1080%6767206206131311
SaltJoin912394%9366%6369172179141801
VariantSubPathPruning.VariantSubPathReplacer82976848%807046%489514629762001
SlotTypeReplacer7471,00557%7610658%64129159374133801
PushDownAggThroughJoinOneSide699334%1060%6870130143151701
PushDownAggThroughJoin653415%880%6567107127212301
PushDownAggWithDistinctThroughJoinOneSide489275%600%43458596131501
AccessPathExpressionCollector39151156%603637%46797718263101
PushDownLimitDistinctThroughJoin3253710%360%242641525701
PushDownProject31341456%333350%25477015841401
NestedColumnPruning.DataTypeAccessTree30553663%275366%26555816971501
PushDownEncodeSlot.PushDownContext2980%300%212156566611
MultiJoin2364816%200%1925395091501
PushDownEncodeSlot21811133%251943%153042661801
PushDownVectorTopNIntoOlapScan18514844%331531%183146770701
ReduceAggregateChildOutputRows1671910%293%161925311401
SplitMultiDistinctStrategy16454176%183264%13352412021001
PushDownDistinctThroughJoin1440%200%181827278811
PullUpJoinFromUnionAll1371,02988%3310175%27833524201601
StatsDerive13263882%335160%32732817373101
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
PushDownLimitDistinctThroughUnion1292918%712%71121273701
PushDownLimit12626868%101458%1023237141001
EliminateGroupBy12423365%122264%92417700701
PushDownTopNDistinctThroughJoin12132672%202656%1435238801101
JoinExtractOrFromCaseWhen11958683%318573%23702515611201
OrExpansion11892188%145479%16621116542801
ReorderJoin11869985%207278%19592317321301
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker11711048%311532%2433183831001
ColumnPruning11294189%219782%17862623932701
ConstantPropagation1001,23492%3616482%291232229312301
VariantSubPathPruning.Context9916862%91765%92220582901
RewriteSearchToSlots9827974%122870%1030187901001
AddProjectForUniqueFunction9811353%6857%41216420501
DeferMaterializeTopNResult9791690%275366%29932020965301
VariantSubPathPruning.VariantSubPathCollector9720768%92573%82518632801
MaxMinFilterPushDown9516263%192960%133117480701
PushDownAggThroughJoinOnPkFk9446783%265467%22541911111401
InferPredicateByReplace.ReplaceAnalyzer912420%1016%6812180201
SetPreAggStatus.SetOlapScanPreAgg8943583%136182%1244151050701
PushDownVirtualColumnsIntoOlapScan8868788%348471%31862015912701
PushDownJoinOnAssertNumRows8832278%194168%1540229701001
PushDownFilterThroughProject8521071%161242%122321702901
SimplifyWindowExpression8316566%141246%101915571601
PushCountIntoUnionAll7739283%223259%1842179611501
PushDownFilterThroughRepeat7714%80%6819222401
NestedColumnPruning7348786%83681%829131220701
AdjustNullable701,38495%2215687%22116828002701
ForeignKeyContext7031181%132161%1141107122401
CollectPredicateOnScan702727%712%5820281401
PushDownFilterThroughSetOperation6934383%113173%931158601001
AccessPathPlanCollector6831282%43890%535127431401
ExistsApplyToJoin6811162%675%3119311701
AddProjectForUniqueFunction.JoinRewrite686147%516%3617310301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
DistinctWindowExpression677452%121045%91512350401
PushDownTopNThroughWindow6115171%101661%81917521601
SkewJoin5818976%92976%82412530501
EliminateAggCaseWhen575348%41071%31011240301
TransposeSemiJoinAggProject573235%0%486143701
PushProjectIntoUnion5618877%141856%10219481501
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker5511166%61470%72153211101
AddProjectForUniqueFunction.OneRowRelationRewrite542934%516%3612190301
DistinctAggStrategySelector5321680%202353%172813580601
EliminateAggregate5220%80%7910133501
AddProjectForUniqueFunction.AggregateRewrite494145%325%2510210301
MergeGenerates4620%0%249121301
SkipSimpleExprs4512172%111557%8176331401
PullUpPredicates421,21696%2011384%181151323004601
RewriteCteChildren4148792%3797%132310501301
EliminateAssertNumRows389972%141957%102210330501
AddProjectForUniqueFunction.HavingRewrite3727%0%24691301
EliminateSortUnderApply314659%n/a145161401
ExtractAndNormalizeWindowExpression3028790%52382%72827131401
SimplifyEncodeDecode305363%880%286210301
InferPredicates2759195%136282%1253711901401
PullUpProjectUnderTopN2612482%675%2103270601
EliminateGroupByKeyByUniform2529392%33592%3245660501
LogicalResultSinkToShortCircuitPointQuery2517787%32589%4233411901
UnequalPredicateInfer.InferenceGraph241,55198%1323394%141461026312301
DistinctAggregateRewriter2438194%154575%134158801101
PushDownTopNThroughJoin2430392%2893%22636301001
PruneOlapScanTablet2418888%92170%7205430501
PullUpProjectUnderLimit247776%50%172150601
PullUpJoinFromUnionAll.LogicalPlanComparator2322290%133371%12298420601
SumLiteralRewrite2247695%54590%53539701001
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
EliminateSemiJoin165677%675%2102180501
OperativeColumnDerive1541196%36195%34238001001
CheckDataTypes.ExpressionChecker158585%1191%1103230401
CheckRestorePartition153871%466%262100301
AggScalarSubQueryToWindowFunction81798%216174%2182614804101
MergeAggregate49697%124679%1048311201901
TransposeSemiJoinLogicalJoinProject24594%122264%122954501201
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
AddProjectForUniqueFunction.FilterRewrite3068%50%143100301
QueryPartitionCollector11790%1083%293320301
ScalarApplyToJoin11589%4866%5132261701
AddProjectForUniqueFunction.ProjectRewrite3069%50%14180301
PullUpCteAnchor13291%3770%3112300601
CheckMatchExpression7486%31178%3111170401
EliminateEmptyRelation58898%77191%655213201601
MergePercentileToArray45197%3597%1261890801
PushDownProject.PushdownProjectHelper20995%32388%3183540501
PushDownFilterThroughPartitionTopN10490%4866%493270301
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker3173%100%17181601
AccessPathExpressionCollector.AccessPathBuilder2165%n/a263102601
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
AccessPathExpressionCollector.CollectorContext1770%n/a23392301
TransposeSemiJoinLogicalJoin17296%71973%7203290701
EliminateNullAwareLeftAntiJoin2982%50%151100401
PushDownFilterIntoSchemaScan22297%33992%3292470801
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
InferPredicateByReplace27598%3694%3282661901
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
MultiDistinctFunctionStrategy1885%100%14171301
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder14198%2090%2161340501
EliminateJoinCondition8797%4866%4120180601
TransposeSemiJoinAgg7997%375%191160701
MergeTopNs5896%50%141160301
MergeProjects4195%50%151100401
LimitAggToTopNAgg59499%126885%1258012501801
PruneFileScanPartition17599%3975%3130370701
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
InApplyToJoin326100%3294%2210560401
PushProjectThroughUnion316100%30100%0240640901
EliminateGroupByKey257100%26100%0200490701
MergeSetOperations214100%2395%1190480701
SetPreAggStatus213100%22100%02204801101
CountLiteralRewrite204100%30100%0220430701
CTEInline197100%1593%1150390701
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
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
ExprIdRewriter.ReplaceRule32100%n/a04090401
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