def __init__(self): pattern = Pattern(OperatorType.LOGICALFUNCTIONSCAN) super().__init__(RuleType.LOGICAL_FUNCTION_SCAN_TO_PHYSICAL, pattern)
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)
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)
def __init__(self): pattern = Pattern(OperatorType.LOGICALORDERBY) pattern.append_child(Pattern(OperatorType.DUMMY)) super().__init__(RuleType.LOGICAL_ORDERBY_TO_PHYSICAL, pattern)
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)
def __init__(self): pattern = Pattern(OperatorType.LOGICALQUERYDERIVEDGET) pattern.append_child(Pattern(OperatorType.DUMMY)) super().__init__(RuleType.LOGICAL_DERIVED_GET_TO_PHYSICAL, pattern)
def __init__(self): pattern = Pattern(OperatorType.LOGICALUPLOAD) super().__init__(RuleType.LOGICAL_UPLOAD_TO_PHYSICAL, pattern)
def __init__(self): pattern = Pattern(OperatorType.LOGICALPROJECT) pattern.append_child(Pattern(OperatorType.DUMMY)) super().__init__(RuleType.LOGICAL_PROJECT_TO_PHYSICAL, pattern)
def __init__(self): pattern = Pattern(OperatorType.LOGICALCREATEUDF) super().__init__(RuleType.LOGICAL_CREATE_UDF_TO_PHYSICAL, pattern)
def __init__(self): pattern = Pattern(OperatorType.LOGICALINSERT) super().__init__(RuleType.LOGICAL_INSERT_TO_PHYSICAL, pattern)
def __init__(self): pattern = Pattern(OperatorType.LOGICALRENAME) super().__init__(RuleType.LOGICAL_RENAME_TO_PHYSICAL, pattern)
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)
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)
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)
def __init__(self): pattern = Pattern(OperatorType.LOGICALGET) super().__init__(RuleType.LOGICAL_GET_TO_SEQSCAN, pattern)
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)
def __init__(self): pattern = Pattern(OperatorType.LOGICALSAMPLE) pattern.append_child(Pattern(OperatorType.DUMMY)) super().__init__(RuleType.LOGICAL_SAMPLE_TO_UNIFORMSAMPLE, pattern)
def __init__(self): pattern = Pattern(OperatorType.LOGICAL_SHOW) super().__init__(RuleType.LOGICAL_SHOW_TO_PHYSICAL, pattern)
def __init__(self): pattern = Pattern(OperatorType.LOGICALPROJECT) pattern.append_child(Pattern(OperatorType.LOGICALGET)) super().__init__(RuleType.EMBED_PROJECT_INTO_GET, pattern)