Skip to content

Commit b36a42d

Browse files
committed
Not setup hive catalog for versions lower then 458
1 parent 2a56fe0 commit b36a42d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

trino/integration_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,16 @@ func TestMain(m *testing.M) {
137137
}
138138

139139
mounts := []string{
140-
wd + "/etc/catalog:/etc/trino/catalog",
141140
wd + "/etc/secrets:/etc/trino/secrets",
142141
wd + "/etc/jvm.config:/etc/trino/jvm.config",
143142
wd + "/etc/node.properties:/etc/trino/node.properties",
144143
wd + "/etc/password-authenticator.properties:/etc/trino/password-authenticator.properties",
144+
wd + "/etc/catalog/memory.properties:/etc/trino/catalog/memory.properties",
145+
wd + "/etc/catalog/tpch.properties:/etc/trino/catalog/tpch.properties",
146+
}
147+
version, err := strconv.Atoi(*trinoImageTagFlag)
148+
if err == nil && version >= 458 {
149+
mounts = append(mounts, wd+"/etc/catalog/hive.properties:/etc/trino/catalog/hive.properties")
145150
}
146151

147152
if spoolingProtocolSupported {

0 commit comments

Comments
 (0)