Example #1
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALPROJECT)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_PROJECT_TO_PHYSICAL, pattern)
Example #2
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALJOIN)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_JOIN_TO_PHYSICAL_HASH_JOIN, pattern)
Example #3
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICAL_CREATE_MATERIALIZED_VIEW)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_MATERIALIZED_VIEW_TO_PHYSICAL,
                      pattern)
Example #4
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALORDERBY)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_ORDERBY_TO_PHYSICAL, pattern)
Example #5
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALJOIN)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     pattern.append_child(Pattern(OperatorType.LOGICALFUNCTIONSCAN))
     super().__init__(RuleType.LOGICAL_LATERAL_JOIN_TO_PHYSICAL, pattern)
Example #6
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALQUERYDERIVEDGET)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_DERIVED_GET_TO_PHYSICAL, pattern)
Example #7
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALUNION)
     # add 2 dummy children
     pattern.append_child(Pattern(OperatorType.DUMMY))
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_UNION_TO_PHYSICAL, pattern)
Example #8
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALSAMPLE)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_SAMPLE_TO_UNIFORMSAMPLE, pattern)
Example #9
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALJOIN)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_INNER_JOIN_COMMUTATIVITY, pattern)
Example #10
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALPROJECT)
     pattern_sample = Pattern(OperatorType.LOGICALSAMPLE)
     pattern_sample.append_child(Pattern(OperatorType.LOGICALGET))
     pattern.append_child(pattern_sample)
     super().__init__(RuleType.PUSHDOWN_PROJECT_THROUGH_SAMPLE, pattern)
Example #11
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALPROJECT)
     pattern_get = Pattern(OperatorType.LOGICALQUERYDERIVEDGET)
     pattern_get.append_child(Pattern(OperatorType.DUMMY))
     pattern.append_child(pattern_get)
     super().__init__(RuleType.EMBED_PROJECT_INTO_DERIVED_GET, pattern)
Example #12
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALPROJECT)
     pattern.append_child(Pattern(OperatorType.LOGICALGET))
     super().__init__(RuleType.EMBED_PROJECT_INTO_GET, pattern)