53 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /**
 | |
|  * Copyright (c) 2021 OceanBase
 | |
|  * OceanBase CE is licensed under Mulan PubL v2.
 | |
|  * You can use this software according to the terms and conditions of the Mulan PubL v2.
 | |
|  * You may obtain a copy of Mulan PubL v2 at:
 | |
|  *          http://license.coscl.org.cn/MulanPubL-2.0
 | |
|  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 | |
|  * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 | |
|  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 | |
|  * See the Mulan PubL v2 for more details.
 | |
|  */
 | |
| 
 | |
| #ifndef _OB_RAW_EXPR_RESOLVER_H
 | |
| #define _OB_RAW_EXPR_RESOLVER_H
 | |
| #include "lib/oblog/ob_log.h"
 | |
| #include "sql/parser/parse_node.h"
 | |
| #include "sql/resolver/expr/ob_raw_expr.h"
 | |
| #include "sql/resolver/ob_stmt_resolver.h"
 | |
| 
 | |
| namespace oceanbase
 | |
| {
 | |
| namespace sql
 | |
| {
 | |
| class ObRawExprResolver
 | |
| {
 | |
| public:
 | |
|   ObRawExprResolver() {}
 | |
| 
 | |
|   virtual ~ObRawExprResolver() {}
 | |
| 
 | |
|   virtual int resolve(const ParseNode *node,
 | |
|                       ObRawExpr *&expr,
 | |
|                       common::ObIArray<ObQualifiedName> &columns,
 | |
|                       common::ObIArray<ObVarInfo> &sys_vars,
 | |
|                       common::ObIArray<ObSubQueryInfo> &sub_query_info,
 | |
|                       common::ObIArray<ObAggFunRawExpr*> &aggr_exprs,
 | |
|                       common::ObIArray<ObWinFunRawExpr*> &win_exprs,
 | |
|                       common::ObIArray<ObUDFInfo> &udf_exprs,
 | |
|                       common::ObIArray<ObOpRawExpr*> &op_exprs,
 | |
|                       common::ObIArray<ObUserVarIdentRawExpr*> &user_var_exprs) = 0;
 | |
| private:
 | |
|   // disallow copy
 | |
|   DISALLOW_COPY_AND_ASSIGN(ObRawExprResolver);
 | |
|   // function members
 | |
| private:
 | |
|   // data members
 | |
| };
 | |
| 
 | |
| } // end namespace sql
 | |
| } // end namespace oceanbase
 | |
| 
 | |
| #endif /* _OB_RAW_EXPR_RESOLVER_H */
 |