OmniSciDB
a5dc49c757
|
#include "WindowExpressionRewrite.h"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{WindowExpressionRewrite.cpp} | |
Functions | |
bool | anonymous_namespace{WindowExpressionRewrite.cpp}::matches_else_null (const Analyzer::CaseExpr *case_expr) |
bool | anonymous_namespace{WindowExpressionRewrite.cpp}::matches_gt_bigint_zero (const Analyzer::BinOper *window_gt_zero) |
bool | anonymous_namespace{WindowExpressionRewrite.cpp}::window_sum_and_count_match (const Analyzer::WindowFunction *sum_window_expr, const Analyzer::WindowFunction *count_window_expr) |
bool | anonymous_namespace{WindowExpressionRewrite.cpp}::is_sum_kind (const SqlWindowFunctionKind kind) |
std::shared_ptr < Analyzer::WindowFunction > | rewrite_sum_window (const Analyzer::Expr *expr) |
std::shared_ptr < Analyzer::WindowFunction > | rewrite_avg_window (const Analyzer::Expr *expr) |
std::shared_ptr<Analyzer::WindowFunction> rewrite_avg_window | ( | const Analyzer::Expr * | expr | ) |
Definition at line 101 of file WindowExpressionRewrite.cpp.
References AVG, CHECK_EQ, COUNT, expr_list_match(), kBIGINT, kCAST, kDIVIDE, kDOUBLE, and rewrite_sum_window().
Referenced by rewrite_expr().
std::shared_ptr<Analyzer::WindowFunction> rewrite_sum_window | ( | const Analyzer::Expr * | expr | ) |
Definition at line 54 of file WindowExpressionRewrite.cpp.
References CHECK, COUNT, Analyzer::CaseExpr::get_expr_pair_list(), anonymous_namespace{WindowExpressionRewrite.cpp}::is_sum_kind(), kBIGINT, anonymous_namespace{WindowExpressionRewrite.cpp}::matches_else_null(), anonymous_namespace{WindowExpressionRewrite.cpp}::matches_gt_bigint_zero(), remove_cast(), SUM, and anonymous_namespace{WindowExpressionRewrite.cpp}::window_sum_and_count_match().
Referenced by rewrite_avg_window(), and rewrite_expr().