File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1+ connector.name =hive
2+ hive.metastore =file
3+ hive.metastore.catalog.dir =/tmp/metastore
4+ hive.security =sql-standard
Original file line number Diff line number Diff line change @@ -144,8 +144,12 @@ func TestMain(m *testing.M) {
144144 wd + "/etc/password-authenticator.properties:/etc/trino/password-authenticator.properties" ,
145145 }
146146
147+ version , err := strconv .Atoi (* trinoImageTagFlag )
148+ if (err != nil && * trinoImageTagFlag != "latest" ) || (err == nil && version < 458 ) {
149+ mounts = append (mounts , wd + "/etc/catalog/hive-pre-458version.properties:/etc/trino/catalog/hive.properties" )
150+ }
151+
147152 if spoolingProtocolSupported {
148- version , err := strconv .Atoi (* trinoImageTagFlag )
149153 if (err != nil && * trinoImageTagFlag != "latest" ) || (err == nil && version < 477 ) {
150154 mounts = append (mounts , wd + "/etc/config-pre-477version.properties:/etc/trino/config.properties" )
151155 } else {
@@ -185,7 +189,7 @@ func TestMain(m *testing.M) {
185189
186190 err = grantAdminRoleToTestUser ()
187191 if err != nil {
188- log .Printf ("Warning: Failed to grant admin role to test user: %s" , err )
192+ log .Fatalf ("Warning: Failed to grant admin role to test user: %s" , err )
189193 }
190194
191195 * integrationServerFlag = "http://test@localhost:" + trinoResource .GetPort ("8080/tcp" )
You can’t perform that action at this time.
0 commit comments