TimothyDing commented on code in PR #10364: URL: https://github.com/apache/gravitino/pull/10364#discussion_r2921589589
########## catalogs-contrib/catalog-jdbc-hologres/src/test/java/org/apache/gravitino/catalog/hologres/integration/test/service/HologresService.java: ########## @@ -0,0 +1,96 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.gravitino.catalog.hologres.integration.test.service; + +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.sql.Statement; +import java.util.ArrayList; +import java.util.List; +import org.apache.gravitino.NameIdentifier; +import org.apache.gravitino.Namespace; +import org.apache.gravitino.catalog.jdbc.JdbcSchema; +import org.apache.gravitino.exceptions.NoSuchSchemaException; +import org.apache.gravitino.meta.AuditInfo; + +/** + * A helper service that directly connects to Hologres via JDBC for verification in integration + * tests. + */ +public class HologresService { + + private final Connection connection; + + public HologresService(String jdbcUrl, String username, String password) { + try { + connection = DriverManager.getConnection(jdbcUrl, username, password); Review Comment: fix in 3790a2944f58aec0f1315b7a9a7ebb643f7a4cf1 ########## .gitignore: ########## @@ -63,3 +63,6 @@ web/.next .venv/ .worktrees/ + +# Agent +.qoder/ Review Comment: fix in 3790a2944f58aec0f1315b7a9a7ebb643f7a4cf1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
