org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total7,418 of 60,80687%1,473 of 6,70778%1,2555,2341,45612,3851121,8690231
SlotTypeReplacer80398555%919350%69130166377103801
PushDownAggThroughJoin59410014%8177%5367100127112301
AccessPathExpressionCollector33756562%573940%41796618223101
NestedColumnPruning.DataTypeAccessTree30553663%275366%26555816971501
PushDownJoinOnAssertNumRows30210826%392135%2640699741001
MultiJoin2364816%200%1925395091501
PushDownAggThroughJoinOnPkFk22136162%453745%32554011711401
PushDownAggThroughJoinOneSide19653673%584845%39703614331701
PruneFileScanPartition161158%120%111333375701
PushDownAggThroughJoinOnPkFk.InnerJoinCluster15415550%172761%113133632901
SaltJoin14980284%316868%28693417921801
ReduceAggregateChildOutputRows1444222%23723%141922310401
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
JoinExtractOrFromCaseWhen11958683%318573%23702515611201
PushDownLimitDistinctThroughJoin11924367%181850%122610520701
PullUpJoinFromUnionAll1181,04889%3110376%25833124201601
StatsDerive11165985%374755%32732217353101
PushDownEncodeSlot.EncodeSlotPushDownVisitor10992689%218780%20672320611301
PushDownAggWithDistinctThroughJoinOneSide10141580%263456%2145139601501
ColumnPruning9495991%209883%15862223922701
ConstantPropagation931,23693%3216683%261221929112301
InferPredicateByReplace.ReplaceAnalyzer912420%1016%6812180201
PushDownVirtualColumnsIntoOlapScan8668988%328672%29861915912701
VariantSubPathPruning.VariantSubPathReplacer841,51394%1213892%12951729722001
SetPreAggStatus.SetOlapScanPreAgg8244284%126283%1244131050701
ReorderJoin7674190%147884%15591517311301
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker7515266%192758%1533103821001
NestedColumnPruning7348786%83681%829131220701
PushDownEncodeSlot.PushDownContext7322575%102066%72113561601
OrExpansion7296793%115783%11621016502801
CollectPredicateOnScan702727%712%5820281401
PushDownFilterThroughSetOperation6934383%113173%931158601001
AddProjectForUniqueFunction.JoinRewrite686147%516%3617310301
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
AccessPathPlanCollector6678092%129088%9661317611501
PushDownProject6366491%165075%14471215801401
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker5511166%71365%82153211101
RewriteSearchToSlots5432385%93177%93087901001
EliminateAggregate5220%80%7910133501
AddProjectForUniqueFunction.AggregateRewrite494145%325%2510210301
SkipSimpleExprs4512172%111557%8176331401
QueryPartitionCollector438766%6650%4911320301
PullUpPredicates421,21696%1511888%161151023024601
MaxMinFilterPushDown4221583%143470%11316480701
RewriteCteChildren4148792%3797%132310501301
AdjustNullable391,41597%1915989%19116228002701
EliminateAssertNumRows389972%141957%102210330501
AddProjectForUniqueFunction.HavingRewrite3727%0%24691301
PushDownUnnestInProject3627588%141856%10227560601
PushDownEncodeSlot3529489%53988%4305660801
SplitMultiDistinctStrategy3367295%94182%735812021001
SimplifyEncodeDecode305363%880%286210301
PushDownLimit2936592%42083%42357101001
DeferMaterializeTopNResult2698797%176378%17931220905301
EliminateGroupByKeyByUniform2529392%33592%3245660501
LogicalResultSinkToShortCircuitPointQuery2517787%32589%4233411901
InferPredicates2459496%96688%853611901401
PushDownFilterThroughProject2427191%82071%7235700901
PullUpProjectUnderLimit247776%50%172150601
PullUpJoinFromUnionAll.LogicalPlanComparator2322290%133371%12298420601
SumLiteralRewrite2247695%54590%53539701001
PushDownTopNDistinctThroughJoin2242595%123473%113558801101
PushDownDistinctThroughJoin2112385%91155%9186270801
DecoupleEncodeDecode2110383%31785%3143280401
CheckDataTypes218580%1191%1113250501
AddProjectForUniqueFunction.GenerateRewrite203060%50%14290301
PushDownExpressionsInHashCondition1934894%1487%32857822001
VariantSubPathPruning198080%61266%4137260401
UnequalPredicateInfer.InferenceGraph181,55798%1223495%13146826312301
ExtractAndNormalizeWindowExpression1829994%32589%52817131401
ConvertOuterJoinToAntiJoin1824493%32990%3252470901
PruneOlapScanTablet1819491%72376%6204430501
CheckMultiDistinct1811786%32790%3192270401
MergeOneRowRelationIntoUnion1811686%3975%3103280401
PushDownAliasThroughJoin1728294%32589%33025501601
AccessPathExpressionCollector.CollectAccessPathResult175074%3562%4112141701
PushCountIntoUnionAll1645396%134175%134289601501
EliminateSemiJoin165677%675%2102180501
OperativeColumnDerive1541196%36195%34238001001
PushDownVectorTopNIntoOlapScan1531895%113777%11316770701
SkewJoin1523293%63284%6244530501
CheckDataTypes.ExpressionChecker158585%1191%1103230401
CheckRestorePartition153871%466%262100301
NormalizeToSlot.NormalizeToSlotContext22594%32589%42545511101
AddProjectForUniqueFunction.FilterRewrite3068%50%143100301
TransposeSemiJoinLogicalJoinProject24795%112367%112944501201
PullUpCteAnchor13291%3770%3112300601
CheckMatchExpression7486%31178%3111170401
EliminateEmptyRelation58898%77191%655213201601
MergePercentileToArray45197%3597%1261890801
PushDownProject.PushdownProjectHelper20995%32388%3183540501
PushDownFilterThroughPartitionTopN10490%4866%493270301
AccessPathExpressionCollector.AccessPathBuilder3475%n/a283142801
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker3173%100%17181601
DecomposeRepeatWithPreAggregation1,10299%59394%571321202201
PushProjectIntoUnion23596%32990%3211480501
CheckScoreUsage14894%41275%52024011201
CountDistinctRewrite12193%62076%5192280601
PruneEmptyPartition10792%31583%3143290501
CreatePartitionTopNFromWindow8490%3975%391180301
PushDownFilterThroughSort5185%50%16180501
AggScalarSubQueryToWindowFunction82399%146882%1482414804101
PushDownTopNThroughWindow20496%52180%5194520601
PushDownFilterThroughRepeat8291%3562%383220401
SumLiteralRewrite.SumInfo6288%5550%584160301
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
DistinctAggregateRewriter39898%55591%44118801101
ForeignKeyContext37498%72779%74147102401
DistinctAggStrategySelector26297%53888%4281580601
InferAggNotNull15595%1794%12102901201
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
MergeAggregate51598%65289%649311302001
VariantSubPathPruning.VariantSubPathCollector29898%3397%1251630801
ScalarApplyToJoin12295%3975%3131260701
EliminateNullAwareLeftAntiJoin2982%50%151100401
EliminateJoinByFK30898%32589%32426001001
VariantSubPathPruning.Context26298%32388%4222581901
PushDownScoreTopNIntoOlapScan23597%2492%22315401001
PushDownFilterIntoSchemaScan22297%33992%3292470801
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
InferPredicateByReplace27598%3694%3282661901
EliminateGroupByKey26298%2492%2212510801
SimplifyWindowExpression24498%2596%1191570601
InferPredicateByReplace.PredicatesCollector19297%42083%42623301401
AddDefaultLimit12296%51575%6182281801
PullUpProjectUnderApply9996%3975%2100170401
EliminateGroupBy35499%33191%3241700701
NormalizeToSlot.NormalizeWithoutWindowFunction12397%1794%1121300301
ColumnPruning.KeyColumnCollector6395%10100%181171301
ExprIdRewriter.ReplaceRule.new DefaultExpressionRewriter() {...}2689%375%14190201
AccessPathExpressionCollector.CollectorContext2488%n/a141101401
MultiDistinctFunctionStrategy1885%100%14171301
EliminateOuterJoin32199%73583%73216401101
EliminateOrderByKey31699%3397%1231750601
PushDownFilterThroughJoin25799%3494%2231610501
TransposeSemiJoinLogicalJoin17698%32388%3201290701
InferInPredicateFromOr14998%1285%2131380601
PullUpProjectUnderTopN14898%787%1101270601
InitJoinOrder14198%2090%2161340501
EliminateJoinCondition8797%4866%4120180601
TransposeSemiJoinAggProject8797%50%181140701
TransposeSemiJoinAgg7997%375%191160701
MergeGenerates6897%50%161130501
MergeTopNs5896%50%141160301
MergeProjects4195%50%151100401
PushDownLimitDistinctThroughUnion15799%787%1110270701
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
LimitAggToTopNAgg595100%116986%1158012501801
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
PruneOlapScanPartition379100%5398%1350970801
PushDownTopNThroughJoin327100%2996%12606301001
InApplyToJoin326100%3397%1210560401
PushProjectThroughUnion316100%30100%0240640901
CTEInline225100%1794%1160430701
MergeSetOperations214100%2395%1190480701
SetPreAggStatus213100%22100%02204801101
AddProjectForUniqueFunction211100%14100%0120420501
CountLiteralRewrite204100%30100%0220430701
EliminateFilter194100%2291%2180400601
UnCorrelatedApplyAggregateFilter188100%10100%080400301
CheckPrivileges181100%31583%3160420701
ExistsApplyToJoin179100%787%1110310701
PullUpCorrelatedFilterUnderApplyAggregateProject179100%12100%0100350401
ProjectOtherJoinConditionForNestedLoopJoin158100%2195%1160350501
EliminateConstHashJoinCondition147100%52180%5190330601
PushDownJoinOtherCondition145100%18100%0160300701
EliminateSort145100%18100%0160300701
InferJoinNotNull142100%12100%0100300401
DistinctWindowExpression141100%31986%3150350401
UnCorrelatedApplyProjectFilter141100%4100%070290501
SetPreAggStatus.PreAggInfoContext140100%100%0100340901
PushDownFilterThroughAggregation135100%1593%1120300401
PushFilterInsideJoin121100%12100%0110270501
SimplifyAggGroupBy117100%22100%0170260601
NormalizeSort117100%8100%080320401
InferSetOperatorDistinct114100%1794%1180220901
EliminateAggCaseWhen110100%1392%1100240301
PushDownFilterThroughWindow99100%8100%080230401
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
FindHashConditionForJoin84100%583%160240301
AddProjectForUniqueFunction.OneRowRelationRewrite83100%6100%060190301
MergeLimits81100%787%1100150601
PushDownFilterThroughGenerate80100%583%180190501
UnCorrelatedApplyFilter78100%100%040170301
EliminateSortUnderApply77100%n/a040160401
LimitSortToTopN75100%n/a040200401
ProjectOtherJoinConditionForNestedLoopJoin.AliasReplacer71100%8100%080130401
CheckAndStandardizeWindowFunctionAndFrame68100%n/a050160501
ExprIdRewriter65100%8100%060150201
ConvertInnerOrCrossJoin65100%3975%3120120601
CollectFilterAboveConsumer60100%4100%060140401
EliminateOrderByConstant57100%8100%070160301
InferFilterNotNull52100%100%040140301
EliminateJoinByUnique51100%4100%060120401
EliminateSortUnderSubqueryOrView51100%n/a04080401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
SemiJoinCommute48100%4100%08080601
SplitLimit43100%100%05080401
AddProjectForUniqueFunction.ProjectRewrite43100%100%04080301
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
EliminateLimitUnderApply38100%100%040100301
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