From 45a1576ca13833d5d62f3bceed3c35b11e6d14a1 Mon Sep 17 00:00:00 2001 From: Runji Wang Date: Tue, 12 Mar 2024 21:20:24 +0800 Subject: [PATCH] feat(expr): implement dummy `pg_stat_get_numscans` function (#15642) Signed-off-by: Runji Wang --- src/frontend/src/binder/expr/function.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontend/src/binder/expr/function.rs b/src/frontend/src/binder/expr/function.rs index d7631f11bf626..cc7d5df602e5d 100644 --- a/src/frontend/src/binder/expr/function.rs +++ b/src/frontend/src/binder/expr/function.rs @@ -1300,6 +1300,7 @@ impl Binder { ("pg_get_partkeydef", raw_literal(ExprImpl::literal_null(DataType::Varchar))), ("pg_encoding_to_char", raw_literal(ExprImpl::literal_varchar("UTF8".into()))), ("has_database_privilege", raw_literal(ExprImpl::literal_bool(true))), + ("pg_stat_get_numscans", raw_literal(ExprImpl::literal_bigint(0))), ("pg_backend_pid", raw(|binder, _inputs| { // FIXME: the session id is not global unique in multi-frontend env. Ok(ExprImpl::literal_int(binder.session_id.0))