From 6ee21f6600dad9b677335ce68ffbc420afdbdb32 Mon Sep 17 00:00:00 2001 From: Eric Lam Date: Wed, 31 Jul 2024 11:19:03 +0000 Subject: [PATCH] Stage READ/WRITE support and restrict URL format (#17820) --- pkg/sql/plan/function/stage_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sql/plan/function/stage_util.go b/pkg/sql/plan/function/stage_util.go index af4ad42b2439..916fee05d876 100644 --- a/pkg/sql/plan/function/stage_util.go +++ b/pkg/sql/plan/function/stage_util.go @@ -159,7 +159,7 @@ func getS3ServiceFromProvider(provider string) (string, error) { } func runSql(proc *process.Process, sql string) (executor.Result, error) { - v, ok := moruntime.ProcessLevelRuntime().GetGlobalVariables(moruntime.InternalSQLExecutor) + v, ok := moruntime.ServiceRuntime(proc.GetService()).GetGlobalVariables(moruntime.InternalSQLExecutor) if !ok { panic("missing lock service") }