Beispiel #1
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALFUNCTIONSCAN)
     super().__init__(RuleType.LOGICAL_FUNCTION_SCAN_TO_PHYSICAL, pattern)
Beispiel #2
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)
Beispiel #3
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)
Beispiel #4
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALORDERBY)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_ORDERBY_TO_PHYSICAL, pattern)
Beispiel #5
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)
Beispiel #6
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALQUERYDERIVEDGET)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_DERIVED_GET_TO_PHYSICAL, pattern)
Beispiel #7
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALUPLOAD)
     super().__init__(RuleType.LOGICAL_UPLOAD_TO_PHYSICAL, pattern)
Beispiel #8
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALPROJECT)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_PROJECT_TO_PHYSICAL, pattern)
Beispiel #9
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALCREATEUDF)
     super().__init__(RuleType.LOGICAL_CREATE_UDF_TO_PHYSICAL, pattern)
Beispiel #10
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALINSERT)
     super().__init__(RuleType.LOGICAL_INSERT_TO_PHYSICAL, pattern)
Beispiel #11
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALRENAME)
     super().__init__(RuleType.LOGICAL_RENAME_TO_PHYSICAL, pattern)
Beispiel #12
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)
Beispiel #13
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)
Beispiel #14
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)
Beispiel #15
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALGET)
     super().__init__(RuleType.LOGICAL_GET_TO_SEQSCAN, pattern)
Beispiel #16
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)
Beispiel #17
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALSAMPLE)
     pattern.append_child(Pattern(OperatorType.DUMMY))
     super().__init__(RuleType.LOGICAL_SAMPLE_TO_UNIFORMSAMPLE, pattern)
Beispiel #18
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICAL_SHOW)
     super().__init__(RuleType.LOGICAL_SHOW_TO_PHYSICAL, pattern)
Beispiel #19
0
 def __init__(self):
     pattern = Pattern(OperatorType.LOGICALPROJECT)
     pattern.append_child(Pattern(OperatorType.LOGICALGET))
     super().__init__(RuleType.EMBED_PROJECT_INTO_GET, pattern)