MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
observer
sql
optimizer
comparison_simplification_rule.h
1
/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
2
miniob is licensed under Mulan PSL v2.
3
You can use this software according to the terms and conditions of the Mulan PSL v2.
4
You may obtain a copy of Mulan PSL v2 at:
5
http://license.coscl.org.cn/MulanPSL2
6
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
7
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
8
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9
See the Mulan PSL v2 for more details. */
10
11
//
12
// Created by Wangyunlai on 2022/12/13.
13
//
14
15
#pragma once
16
17
#include "common/rc.h"
18
#include "sql/optimizer/rewrite_rule.h"
19
20
class
LogicalOperator
;
21
28
class
ComparisonSimplificationRule
:
public
ExpressionRewriteRule
29
{
30
public
:
31
ComparisonSimplificationRule
() =
default
;
32
virtual
~ComparisonSimplificationRule
() =
default
;
33
34
RC rewrite(std::unique_ptr<Expression> &expr,
bool
&change_made)
override
;
35
36
private
:
37
};
ComparisonSimplificationRule
简单比较的重写规则
Definition:
comparison_simplification_rule.h:29
ExpressionRewriteRule
表达式的重写规则
Definition:
rewrite_rule.h:41
LogicalOperator
逻辑算子描述当前执行计划要做什么
Definition:
logical_operator.h:50
制作者
1.9.5