From 5d57e0fc5a624ae0692e02594883174a4d2cd06b Mon Sep 17 00:00:00 2001
From: Saad Ur Rahman
Date: Tue, 7 Jun 2022 18:45:35 -0400
Subject: [PATCH] sql: removed redundant parameter in method to schedule sql
stats compaction
Release note (sql change):
The byte string parameter in the crdb_internal.schedule_sql_stats_compaction function has been removed.
---
docs/generated/sql/functions.md | 2 +-
pkg/sql/sem/builtins/builtins.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/generated/sql/functions.md b/docs/generated/sql/functions.md
index a90da524db84..8da02df7bbc4 100644
--- a/docs/generated/sql/functions.md
+++ b/docs/generated/sql/functions.md
@@ -3103,7 +3103,7 @@ table. Returns an error if validation fails.
crdb_internal.round_decimal_values(val: decimal[], scale: int) → decimal[] | This function is used internally to round decimal array values during mutations.
|
-crdb_internal.schedule_sql_stats_compaction(session: bytes) → bool | This function is used to start a SQL stats compaction job.
+crdb_internal.schedule_sql_stats_compaction() → bool | This function is used to start a SQL stats compaction job.
|
crdb_internal.serialize_session() → bytes | This function serializes the variables in the current session.
|
diff --git a/pkg/sql/sem/builtins/builtins.go b/pkg/sql/sem/builtins/builtins.go
index 3d27fcaad6ee..b0f7738d78a3 100644
--- a/pkg/sql/sem/builtins/builtins.go
+++ b/pkg/sql/sem/builtins/builtins.go
@@ -6535,7 +6535,7 @@ table's zone configuration this will return NULL.`,
Category: categorySystemInfo,
},
tree.Overload{
- Types: tree.ArgTypes{{"session", types.Bytes}},
+ Types: tree.ArgTypes{},
ReturnType: tree.FixedReturnType(types.Bool),
Fn: func(evalCtx *eval.Context, args tree.Datums) (tree.Datum, error) {
if evalCtx.SQLStatsController == nil {
|