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