This is an automated email from the ASF dual-hosted git repository.
gfphoenix78 pushed a commit to branch sync-with-upstream
in repository https://gitbox.apache.org/repos/asf/cloudberry-gpbackup.git
The following commit(s) were added to refs/heads/sync-with-upstream by this
push:
new 285f5d33 fix(test): Exclude Cloudberry from gpdb6_objects.sql
execution (#39)
285f5d33 is described below
commit 285f5d33edee536539d8aeb14dd193af8985e974
Author: Robert Mu <[email protected]>
AuthorDate: Mon Sep 8 10:29:38 2025 +0800
fix(test): Exclude Cloudberry from gpdb6_objects.sql execution (#39)
Cloudberry database does not support enum types as distribution keys.
The gpdb6_objects.sql file contains a legacy_enum table that uses an
enum column as distribution key, causing test failures in Cloudberry
environments.
Updated plugin tests to only execute GPDB 6+ specific objects on
actual GPDB 6+ installations, while Cloudberry continues using GPDB
5+ compatible objects without enum distribution keys.
See: https://github.com/apache/cloudberry/issues/1300
---
end_to_end/plugin_test.go | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/end_to_end/plugin_test.go b/end_to_end/plugin_test.go
index 40eecc68..e2dc2c01 100644
--- a/end_to_end/plugin_test.go
+++ b/end_to_end/plugin_test.go
@@ -156,7 +156,9 @@ var _ = Describe("End to End plugin tests", func() {
if (backupConn.Version.IsGPDB() &&
backupConn.Version.AtLeast("5")) || backupConn.Version.IsCBDB() {
testutils.ExecuteSQLFile(backupConn,
"resources/gpdb5_objects.sql")
}
- if (backupConn.Version.IsGPDB() &&
backupConn.Version.AtLeast("6")) || backupConn.Version.IsCBDB() {
+ // Exclude Cloudberry from gpdb6_objects.sql because it
contains enum distribution keys
+ // which are not supported in Cloudberry database
+ if backupConn.Version.IsGPDB() &&
backupConn.Version.AtLeast("6") {
testutils.ExecuteSQLFile(backupConn,
"resources/gpdb6_objects.sql")
defer testhelper.AssertQueryRuns(backupConn,
"DROP FOREIGN DATA WRAPPER fdw
CASCADE;")
@@ -207,7 +209,9 @@ var _ = Describe("End to End plugin tests", func() {
if (backupConn.Version.IsGPDB() &&
backupConn.Version.AtLeast("5")) || backupConn.Version.IsCBDB() {
testutils.ExecuteSQLFile(backupConn,
"resources/gpdb5_objects.sql")
}
- if (backupConn.Version.IsGPDB() &&
backupConn.Version.AtLeast("6")) || backupConn.Version.IsCBDB() {
+ // Exclude Cloudberry from gpdb6_objects.sql because it
contains enum distribution keys
+ // which are not supported in Cloudberry database
+ if backupConn.Version.IsGPDB() &&
backupConn.Version.AtLeast("6") {
testutils.ExecuteSQLFile(backupConn,
"resources/gpdb6_objects.sql")
defer testhelper.AssertQueryRuns(backupConn,
"DROP FOREIGN DATA WRAPPER fdw
CASCADE;")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]