OmniSciDB
a5dc49c757
|
#include "../Analyzer/Analyzer.h"
Go to the source code of this file.
Functions | |
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().