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