org.apache.doris.nereids.rules.rewrite

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total4,123 of 50,26091%932 of 5,56383%8474,42078910,154791,6290208
SumLiteralRewrite31518837%292344%2036559741001
PushDownAggThroughJoin25843662%454348%38674012772301
MultiJoin2364816%200%1925395091501
ReduceAggregateChildOutputRows1444222%22826%131922310401
PullUpProjectBetweenTopNAndAgg1322918%209%131727332601
StatsDerive13163982%275767%26732717373101
SaltJoin12582686%277272%26693017921801
PushDownLimitDistinctThroughJoin11824067%161650%112411510701
PushDownEncodeSlot.EncodeSlotPushDownVisitor10992689%218780%20672320611301
PushDownAggWithDistinctThroughJoinOneSide10141580%243660%1945139601501
ColumnPruning9495991%199983%16862423932701
PushDownAggThroughJoinOnPkFk9446783%265467%22541911111401
SetPreAggStatus.SetOlapScanPreAgg8244284%126283%1244131050701
ConstantPropagation801,22893%2516987%211201828812301
PullUpJoinFromUnionAll771,08993%1911585%17832024201601
VariantSubPathPruning.VariantSubPathReplacer751,52295%1014093%11951529722001
PushDownEncodeSlot.PushDownContext7322575%102066%72113561601
AdjustNullable721,25194%2214086%20104925502301
OrExpansion7296393%115783%11611016402701
AggScalarSubQueryToWindowFunction.ExpressionIdenticalChecker682627%10428%101510135801
PushDownAggThroughJoinOneSide6766590%297772%23701314331701
CollectPredicateOnScan663131%625%4818280401
PushDownVirtualColumnsIntoOlapScan6272892%129889%11801515312501
ReorderJoin5967891%86689%9501115411301
DistinctAggStrategySelector5816674%141754%82216490601
SumLiteralRewrite.SumInfo5817%100%7811162301
SetPreAggStatus.SetOlapScanPreAgg.OneValueSlotAggChecker5511166%71365%82153211101
SetPreAggStatus.SetOlapScanPreAgg.KeyAndValueSlotsAggChecker5317476%143269%123363811001
EliminateAggregate5220%80%7910133501
InferPredicateByReplace.ReplaceAnalyzer516455%8433%587180201
SkipSimpleExprs4512172%111557%8176331401
RewriteCteChildren4148792%3797%132310501301
EliminateAssertNumRows389972%141957%102210330501
PushDownEncodeSlot3529489%53988%4305660801
SplitMultiDistinctStrategy3366095%94182%735811821001
SimplifyEncodeDecode305363%880%286210301
DeferMaterializeTopNResult2798697%176378%17931320905301
PullUpProjectUnderTopN2612482%675%2103270601
EliminateGroupByKeyByUniform2528291%33592%3245630501
PullUpPredicates241,09297%1010691%12104519824501
PushDownFilterThroughProject2427191%72175%6235700901
PruneOlapScanTablet2418888%92170%7205430501
PullUpProjectUnderLimit247776%50%172150601
PushDownTopNDistinctThroughJoin2140695%73181%63158401101
LogicalResultSinkToShortCircuitPointQuery2118889%2893%3242421901
DecoupleEncodeDecode2110383%31785%3143280401
CheckDataTypes218580%1191%1113250501
PushDownExpressionsInHashCondition1934894%1487%32857822001
UnequalPredicateInfer.InferenceGraph181,55798%1223495%13146826312301
ExtractAndNormalizeWindowExpression1829994%32589%52817131401
ConvertOuterJoinToAntiJoin1824493%32990%3252470901
CheckMultiDistinct1811786%32790%3192270401
PushDownFilterThroughSetOperation1733695%43288%42847201001
PushDownVectorTopNIntoOlapScan1731694%123675%12317770701
MergeOneRowRelationIntoUnion1610686%787%182240401
EliminateSemiJoin165677%675%2102180501
EliminateEmptyRelation1561797%86889%755314001701
OperativeColumnDerive1538196%35795%3393740901
PushDownDistinctThroughJoin1512989%71365%7184270801
CheckDataTypes.ExpressionChecker158585%1191%1103230401
CheckRestorePartition153871%466%262100301
PushCountIntoUnionAll1445597%124277%124279601501
NormalizeToSlot.NormalizeToSlotContext22694%2692%32535511101
QueryPartitionCollector11790%1083%293320301
TransposeSemiJoinLogicalJoinProject24795%112367%112944501201
PullUpCteAnchor13291%3770%3112300601
CheckMatchExpression7486%31178%3111170401
MergePercentileToArray45197%3597%1261890801
PushDownFilterThroughPartitionTopN10490%4866%493270301
SetPreAggStatus.SetOlapScanPreAgg.OneKeySlotAggChecker3173%100%17181601
PushProjectIntoUnion15493%1285%2121300501
PruneFileScanPartition15794%787%1113360701
CheckScoreUsage14894%41275%52024011201
CountDistinctRewrite12193%62076%5192280601
PruneEmptyPartition10792%31583%3143290501
CreatePartitionTopNFromWindow8490%3975%391180301
PushDownFilterThroughSort5185%50%16180501
AggScalarSubQueryToWindowFunction82399%146882%1482414804101
PushDownAggThroughJoinOnPkFk.InnerJoinCluster30197%4295%2311630901
PushDownTopNThroughWindow20496%52180%5194520601
PushDownFilterThroughRepeat8291%3562%383220401
EliminateLimit5687%466%281120501
EliminateDedupJoinCondition5487%3350%362150301
RecordPlanForMvPreRewrite4785%100%063180501
AdjustConjunctsReturnType10693%466%2101250701
EliminateUnnecessaryProject9192%1392%1121210501
UnequalPredicateInfer8592%675%373241301
DistinctAggregateRewriter37398%55191%53928801101
VariantSubPathPruning.VariantSubPathCollector29898%3397%1251630801
PullUpJoinFromUnionAll.LogicalPlanComparator23997%73984%7292420601
ScalarApplyToJoin12295%3975%3131260701
EliminateNullAwareLeftAntiJoin2982%50%151100401
PushDownLimit38998%32187%32327101001
EliminateJoinByFK30898%32589%32426001001
PushDownScoreTopNIntoOlapScan23597%2492%22315401001
PushDownFilterIntoSchemaScan22197%33992%3292470801
MergePercentileToArray.DistinctAndExpr5491%5550%592130401
SimplifyWindowExpression24498%2596%1191570601
SkewJoin21798%53186%5232480501
InferPredicateByReplace.PredicatesCollector16697%41881%42322901201
AddDefaultLimit12296%51575%6182281801
PullUpProjectUnderApply9996%3975%2100170401
ForeignKeyContext37899%52985%54127102401
EliminateGroupBy35499%33191%3241700701
InferPredicateByReplace27698%3694%3281661901
ColumnPruning.KeyColumnCollector6395%10100%181171301
MultiDistinctFunctionStrategy1885%100%14171301
MergeAggregate52699%45893%554110912301
EliminateOuterJoin32499%73583%73216401101
EliminateOrderByKey31699%3397%1231750601
VariantSubPathPruning.Context22299%1794%2170451801
TransposeSemiJoinLogicalJoin17698%32388%3201290701
InferInPredicateFromOr14998%1285%2131380601
InitJoinOrder13998%2090%2161340501
EliminateJoinCondition8797%4866%4120180601
TransposeSemiJoinAggProject8797%50%181140701
TransposeSemiJoinAgg7997%375%191160701
VariantSubPathPruning7397%1191%191180301
MergeTopNs5896%50%141160301
MergeGenerates5696%50%141120301
MergeProjects4195%50%151100401
PushDownAliasThroughJoin29899%2692%23005501601
MaxMinFilterPushDown25699%54389%5310480701
PushDownLimitDistinctThroughUnion15799%787%1110270701
PushDownTopNDistinctThroughUnion14099%787%1100240601
PushDownTopNThroughUnion12499%787%190230501
MergeSetOperationsExcept8198%50%150140401
LimitAggToTopNAgg595100%97188%958012501801
ExtractSingleTableExpressionFromDisjunction391100%40100%03109001101
InferPredicates381100%3397%12907001101
PruneOlapScanPartition344100%50100%0330930801
InApplyToJoin326100%3397%1210560401
PushDownTopNThroughJoin317100%2596%12405501001
PushProjectThroughUnion316100%30100%0240640901
EliminateGroupByKey257100%26100%0200490701
PushDownFilterThroughJoin246100%3196%1210560501
EliminateFilter238100%2893%22505101001
MergeSetOperations214100%2395%1190480701
CountLiteralRewrite204100%30100%0220430701
CTEInline197100%1593%1150390701
SetPreAggStatus190100%22100%02204301101
UnCorrelatedApplyAggregateFilter188100%10100%080400301
EliminateNotNull184100%22100%0170470601
CheckPrivileges181100%31583%3160420701
ExistsApplyToJoin179100%787%1110310701
PullUpCorrelatedFilterUnderApplyAggregateProject179100%12100%0100350401
InferAggNotNull167100%2395%12403101201
ProjectOtherJoinConditionForNestedLoopJoin158100%2195%1160350501
EliminateConstHashJoinCondition147100%52180%5190330601
EliminateSort145100%18100%0160300701
PushDownJoinOtherCondition142100%18100%0150280601
InferJoinNotNull142100%12100%0100300401
DistinctWindowExpression141100%31986%3150350401
UnCorrelatedApplyProjectFilter141100%4100%070290501
PushDownFilterThroughAggregation135100%1593%1120300401
NormalizeToSlot.NormalizeWithoutWindowFunction126100%18100%0120300301
InferFilterNotNull120100%16100%0130270501
SimplifyAggGroupBy117100%22100%0170260601
SetPreAggStatus.PreAggInfoContext117100%100%080280701
NormalizeSort117100%8100%080320401
InferSetOperatorDistinct114100%1794%1180220901
EliminateAggCaseWhen110100%1392%1100240301
ForeignKeyContext.new DefaultPlanVisitor() {...}97100%8100%090210501
PushDownFilterThroughWindow95100%8100%070220301
FindHashConditionForJoin84100%583%160240301
PushFilterInsideJoin82100%6100%080170501
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
EliminateJoinByUnique51100%4100%060120401
EliminateSortUnderSubqueryOrView51100%n/a04080401
NormalizeToSlot.NormalizeToSlotTriplet49100%4100%040120201
PushDownVirtualColumnsIntoOlapScan.SkipResult48100%6100%07080401
ExprIdRewriter.ReplaceRule48100%4100%050150301
SemiJoinCommute48100%4100%08080601
SplitLimit43100%100%05080401
ExtractFilterFromCrossJoin42100%n/a030120301
PushDownProjectThroughLimit40100%n/a03060301
EliminateLimitUnderApply38100%100%040100301
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.DistinctSelectorContext14100%n/a01050101
InlineLogicalView100%n/a02020201
UnequalPredicateInfer.InferenceGraph.PairAndRelation100%n/a01040101
SkipSimpleExprs.ExprFeature100%n/a01040101
StatsDerive.DeriveContext100%n/a01020101
OneRewriteRuleFactory100%n/a01010101
RewriteRuleFactory100%n/a01010101