From c29ae8339ad9af62d12ac74d1fe487ff0c111ec2 Mon Sep 17 00:00:00 2001 From: Marcus Gartner Date: Wed, 22 Mar 2023 14:30:40 +0000 Subject: [PATCH] sql: fix partitioned table format in statement bundle schema.sql Fixes #99026 Release note: None --- pkg/sql/delegate/show_table.go | 2 +- pkg/sql/partition_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/sql/delegate/show_table.go b/pkg/sql/delegate/show_table.go index 01e989ba58a8..6c0dab437639 100644 --- a/pkg/sql/delegate/show_table.go +++ b/pkg/sql/delegate/show_table.go @@ -87,7 +87,7 @@ SELECT WHEN NOT has_partitions THEN NULL ELSE - e'\n-- Warning: Partitioned table with no zone configurations.' + e'\n-- Warning: Partitioned table with no zone configurations.\n' END ) AS create_statement FROM diff --git a/pkg/sql/partition_test.go b/pkg/sql/partition_test.go index ec6452588afa..6da5104d9ae8 100644 --- a/pkg/sql/partition_test.go +++ b/pkg/sql/partition_test.go @@ -94,7 +94,8 @@ func TestRemovePartitioningOSS(t *testing.T) { ) PARTITION BY RANGE (k) ( PARTITION p1 VALUES FROM (1) TO (2) ) --- Warning: Partitioned table with no zone configurations.` +-- Warning: Partitioned table with no zone configurations. +` if a := sqlDB.QueryStr(t, "SHOW CREATE t.kv")[0][1]; exp != a { t.Fatalf("expected:\n%s\n\ngot:\n%s\n\n", exp, a) }