Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ public void setHadoopConf(Configuration conf) {
this.hadoopConf = conf;
}

public Hive2ClientPool getClientPool() {
return clientPool;
}

@Override
public void initialize(Map<String, String> configProperties, BufferAllocator allocator) {
this.allocator = allocator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import static java.nio.file.attribute.PosixFilePermissions.fromString;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

Expand Down Expand Up @@ -103,6 +104,11 @@ public void cleanup() throws Exception {
metastore.reset();
}

@Test
public void testGetClientPool() {
assertNotNull(((Hive2Namespace) namespace).getClientPool());
}

@Test
public void testDescribeNonExistentTable() {
// Setup: Create database
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ public void setHadoopConf(Configuration conf) {
this.hadoopConf = conf;
}

public Hive3ClientPool getClientPool() {
return clientPool;
}

@Override
public void initialize(Map<String, String> configProperties, BufferAllocator allocator) {
this.allocator = allocator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import static java.nio.file.attribute.PosixFilePermissions.fromString;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

Expand Down Expand Up @@ -128,6 +129,11 @@ public void cleanup() throws Exception {
namespace.createNamespace(nsRequest);
}

@Test
public void testGetClientPool() {
assertNotNull(((Hive3Namespace) namespace).getClientPool());
}

@Test
public void testDescribeNonExistentTable() {
// Test: Describe non-existent table
Expand Down
Loading