System\Data\Query\PlanCompiler\TransformationRules.cs (237)
1061new PatternMatchRule(new Node(ComparisonOp.PatternEq,
1062new Node(InternalConstantOp.Pattern),
1063new Node(InternalConstantOp.Pattern)),
1124new PatternMatchRule(new Node(LikeOp.Pattern,
1125new Node(InternalConstantOp.Pattern),
1126new Node(InternalConstantOp.Pattern),
1127new Node(NullOp.Pattern)),
1153new PatternMatchRule(new Node(ConditionalOp.PatternAnd,
1154new Node(LeafOp.Pattern),
1155new Node(ConstantPredicateOp.Pattern)),
1158new PatternMatchRule(new Node(ConditionalOp.PatternAnd,
1159new Node(ConstantPredicateOp.Pattern),
1160new Node(LeafOp.Pattern)),
1163new PatternMatchRule(new Node(ConditionalOp.PatternOr,
1164new Node(LeafOp.Pattern),
1165new Node(ConstantPredicateOp.Pattern)),
1168new PatternMatchRule(new Node(ConditionalOp.PatternOr,
1169new Node(ConstantPredicateOp.Pattern),
1170new Node(LeafOp.Pattern)),
1173new PatternMatchRule(new Node(ConditionalOp.PatternNot,
1174new Node(ConstantPredicateOp.Pattern)),
1241new PatternMatchRule(new Node(ConditionalOp.PatternIsNull,
1242new Node(InternalConstantOp.Pattern)),
1245new PatternMatchRule(new Node(ConditionalOp.PatternIsNull,
1246new Node(NullSentinelOp.Pattern)),
1265new PatternMatchRule(new Node(ConditionalOp.PatternIsNull,
1266new Node(NullOp.Pattern)),
1284new Node(CastOp.Pattern,
1285new Node(NullOp.Pattern)),
1305new PatternMatchRule(new Node(ConditionalOp.PatternIsNull,
1306new Node(VarRefOp.Pattern)),
1418new PatternMatchRule(new Node(FilterOp.Pattern,
1419new Node(FilterOp.Pattern,
1420new Node(LeafOp.Pattern),
1421new Node(LeafOp.Pattern)),
1422new Node(LeafOp.Pattern)),
1444new PatternMatchRule(new Node(FilterOp.Pattern,
1445new Node(ProjectOp.Pattern,
1446new Node(LeafOp.Pattern),
1447new Node(LeafOp.Pattern)),
1448new Node(LeafOp.Pattern)),
1509new PatternMatchRule(new Node(FilterOp.Pattern,
1510new Node(UnionAllOp.Pattern,
1511new Node(LeafOp.Pattern),
1512new Node(LeafOp.Pattern)),
1513new Node(LeafOp.Pattern)),
1516new PatternMatchRule(new Node(FilterOp.Pattern,
1517new Node(IntersectOp.Pattern,
1518new Node(LeafOp.Pattern),
1519new Node(LeafOp.Pattern)),
1520new Node(LeafOp.Pattern)),
1523new PatternMatchRule(new Node(FilterOp.Pattern,
1524new Node(ExceptOp.Pattern,
1525new Node(LeafOp.Pattern),
1526new Node(LeafOp.Pattern)),
1527new Node(LeafOp.Pattern)),
1627new PatternMatchRule(new Node(FilterOp.Pattern,
1628new Node(DistinctOp.Pattern,
1629new Node(LeafOp.Pattern)),
1630new Node(LeafOp.Pattern)),
1681new PatternMatchRule(new Node(FilterOp.Pattern,
1682new Node(GroupByOp.Pattern,
1683new Node(LeafOp.Pattern),
1684new Node(LeafOp.Pattern),
1685new Node(LeafOp.Pattern)),
1686new Node(LeafOp.Pattern)),
1764new PatternMatchRule(new Node(FilterOp.Pattern,
1765new Node(CrossJoinOp.Pattern,
1766new Node(LeafOp.Pattern),
1767new Node(LeafOp.Pattern)),
1768new Node(LeafOp.Pattern)),
1771new PatternMatchRule(new Node(FilterOp.Pattern,
1772new Node(InnerJoinOp.Pattern,
1773new Node(LeafOp.Pattern),
1774new Node(LeafOp.Pattern),
1775new Node(LeafOp.Pattern)),
1776new Node(LeafOp.Pattern)),
1779new PatternMatchRule(new Node(FilterOp.Pattern,
1780new Node(LeftOuterJoinOp.Pattern,
1781new Node(LeafOp.Pattern),
1782new Node(LeafOp.Pattern),
1783new Node(LeafOp.Pattern)),
1784new Node(LeafOp.Pattern)),
1941new PatternMatchRule(new Node(FilterOp.Pattern,
1942new Node(OuterApplyOp.Pattern,
1943new Node(LeafOp.Pattern),
1944new Node(LeafOp.Pattern)),
1945new Node(LeafOp.Pattern)),
1986new PatternMatchRule(new Node(FilterOp.Pattern,
1987new Node(LeafOp.Pattern),
1988new Node(ConstantPredicateOp.Pattern)),
2095new PatternMatchRule(new Node(ProjectOp.Pattern,
2096new Node(ProjectOp.Pattern,
2097new Node(LeafOp.Pattern),
2098new Node(LeafOp.Pattern)),
2099new Node(LeafOp.Pattern)),
2171new PatternMatchRule(new Node(ProjectOp.Pattern,
2172new Node(LeafOp.Pattern),
2173new Node(VarDefListOp.Pattern)),
2411new PatternMatchRule(new Node(CrossApplyOp.Pattern,
2412new Node(LeafOp.Pattern),
2413new Node(FilterOp.Pattern,
2414new Node(LeafOp.Pattern),
2415new Node(LeafOp.Pattern))),
2418new PatternMatchRule(new Node(OuterApplyOp.Pattern,
2419new Node(LeafOp.Pattern),
2420new Node(FilterOp.Pattern,
2421new Node(LeafOp.Pattern),
2422new Node(LeafOp.Pattern))),
2473new PatternMatchRule(new Node(OuterApplyOp.Pattern,
2474new Node(LeafOp.Pattern),
2475new Node(ProjectOp.Pattern,
2476new Node(FilterOp.Pattern,
2477new Node(LeafOp.Pattern),
2478new Node(LeafOp.Pattern)),
2479new Node(VarDefListOp.Pattern,
2480new Node(VarDefOp.Pattern,
2481new Node(InternalConstantOp.Pattern))))),
2485new PatternMatchRule(new Node(OuterApplyOp.Pattern,
2486new Node(LeafOp.Pattern),
2487new Node(ProjectOp.Pattern,
2488new Node(FilterOp.Pattern,
2489new Node(LeafOp.Pattern),
2490new Node(LeafOp.Pattern)),
2491new Node(VarDefListOp.Pattern,
2492new Node(VarDefOp.Pattern,
2493new Node(NullSentinelOp.Pattern))))),
2623new PatternMatchRule(new Node(CrossApplyOp.Pattern,
2624new Node(LeafOp.Pattern),
2625new Node(ProjectOp.Pattern,
2626new Node(LeafOp.Pattern),
2627new Node(LeafOp.Pattern))),
2662new PatternMatchRule(new Node(OuterApplyOp.Pattern,
2663new Node(LeafOp.Pattern),
2664new Node(ProjectOp.Pattern,
2665new Node(LeafOp.Pattern),
2666new Node(LeafOp.Pattern))),
2807new PatternMatchRule(new Node(CrossApplyOp.Pattern,
2808new Node(LeafOp.Pattern),
2809new Node(LeafOp.Pattern)),
2812new PatternMatchRule(new Node(OuterApplyOp.Pattern,
2813new Node(LeafOp.Pattern),
2814new Node(LeafOp.Pattern)),
2895new PatternMatchRule(new Node(CrossApplyOp.Pattern,
2896new Node(LeafOp.Pattern),
2897new Node(LeafOp.Pattern)),
2900new PatternMatchRule(new Node(OuterApplyOp.Pattern,
2901new Node(LeafOp.Pattern),
2902new Node(LeafOp.Pattern)),
3285new PatternMatchRule(new Node(CrossApplyOp.Pattern,
3286new Node(LeafOp.Pattern),
3287new Node(LeftOuterJoinOp.Pattern,
3288new Node(SingleRowTableOp.Pattern),
3289new Node(LeafOp.Pattern),
3290new Node(ConstantPredicateOp.Pattern))),
3344new PatternMatchRule(new Node(CrossJoinOp.Pattern,
3345new Node(LeafOp.Pattern),
3346new Node(ProjectOp.Pattern,
3347new Node(LeafOp.Pattern),
3348new Node(LeafOp.Pattern))),
3351new PatternMatchRule(new Node(CrossJoinOp.Pattern,
3352new Node(ProjectOp.Pattern,
3353new Node(LeafOp.Pattern),
3354new Node(LeafOp.Pattern)),
3355new Node(LeafOp.Pattern)),
3358new PatternMatchRule(new Node(InnerJoinOp.Pattern,
3359new Node(LeafOp.Pattern),
3360new Node(ProjectOp.Pattern,
3361new Node(LeafOp.Pattern),
3362new Node(LeafOp.Pattern)),
3363new Node(LeafOp.Pattern)),
3366new PatternMatchRule(new Node(InnerJoinOp.Pattern,
3367new Node(ProjectOp.Pattern,
3368new Node(LeafOp.Pattern),
3369new Node(LeafOp.Pattern)),
3370new Node(LeafOp.Pattern),
3371new Node(LeafOp.Pattern)),
3374new PatternMatchRule(new Node(LeftOuterJoinOp.Pattern,
3375new Node(ProjectOp.Pattern,
3376new Node(LeafOp.Pattern),
3377new Node(LeafOp.Pattern)),
3378new Node(LeafOp.Pattern),
3379new Node(LeafOp.Pattern)),
3497new PatternMatchRule(new Node(CrossJoinOp.Pattern,
3498new Node(LeafOp.Pattern),
3499new Node(FilterOp.Pattern,
3500new Node(LeafOp.Pattern),
3501new Node(LeafOp.Pattern))),
3504new PatternMatchRule(new Node(CrossJoinOp.Pattern,
3505new Node(FilterOp.Pattern,
3506new Node(LeafOp.Pattern),
3507new Node(LeafOp.Pattern)),
3508new Node(LeafOp.Pattern)),
3511new PatternMatchRule(new Node(InnerJoinOp.Pattern,
3512new Node(LeafOp.Pattern),
3513new Node(FilterOp.Pattern,
3514new Node(LeafOp.Pattern),
3515new Node(LeafOp.Pattern)),
3516new Node(LeafOp.Pattern)),
3519new PatternMatchRule(new Node(InnerJoinOp.Pattern,
3520new Node(FilterOp.Pattern,
3521new Node(LeafOp.Pattern),
3522new Node(LeafOp.Pattern)),
3523new Node(LeafOp.Pattern),
3524new Node(LeafOp.Pattern)),
3527new PatternMatchRule(new Node(LeftOuterJoinOp.Pattern,
3528new Node(FilterOp.Pattern,
3529new Node(LeafOp.Pattern),
3530new Node(LeafOp.Pattern)),
3531new Node(LeafOp.Pattern),
3532new Node(LeafOp.Pattern)),
3619new PatternMatchRule(new Node(CrossJoinOp.Pattern,
3620new Node(SingleRowTableOp.Pattern),
3621new Node(LeafOp.Pattern)),
3624new PatternMatchRule(new Node(CrossJoinOp.Pattern,
3625new Node(LeafOp.Pattern),
3626new Node(SingleRowTableOp.Pattern)),
3630new PatternMatchRule(new Node(LeftOuterJoinOp.Pattern,
3631new Node(LeafOp.Pattern),
3632new Node(SingleRowTableOp.Pattern),
3633new Node(LeafOp.Pattern)),
3692new PatternMatchRule(new Node(SingleRowOp.Pattern,
3693new Node(LeafOp.Pattern)),
3738new PatternMatchRule(new Node(SingleRowOp.Pattern,
3739new Node(ProjectOp.Pattern,
3740new Node(LeafOp.Pattern), new Node(LeafOp.Pattern))),
3953new PatternMatchRule(new Node(GroupByOp.Pattern,
3954new Node(ProjectOp.Pattern,
3955new Node(LeafOp.Pattern),
3956new Node(LeafOp.Pattern)),
3957new Node(LeafOp.Pattern),
3958new Node(LeafOp.Pattern)),
4156new PatternMatchRule(new Node(GroupByOp.Pattern,
4157new Node(LeafOp.Pattern),
4158new Node(LeafOp.Pattern),
4159new Node(VarDefListOp.Pattern)),