Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Sep 29, 2023
1 parent 0f15f46 commit 42b1868
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static Optional<CaseFolding> map(final String name) {
* Parse the identifier mapping from a string.
*
* @param name string describing the mapping
* @return PosgreSQL identifier mapping
* @return PostgreSQL identifier mapping
* @throws IllegalArgumentException if the given string contains a mapping name that is unknown or
* <code>null</code>.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

import static com.exasol.dbbuilder.dialects.exasol.AdapterScript.Language.JAVA;

import java.io.*;
import java.io.Closeable;
import java.io.FileNotFoundException;
import java.nio.file.Path;
import java.sql.*;
import java.util.HashMap;
Expand Down Expand Up @@ -39,8 +40,8 @@ public class PostgresVirtualSchemaIntegrationTestSetup implements Closeable {
POSTGRES_CONTAINER_NAME);
private final ExasolContainer<? extends ExasolContainer<?>> exasolContainer = new ExasolContainer<>(
EXASOL_DOCKER_IMAGE_REFERENCE).withRequiredServices(ExasolService.BUCKETFS, ExasolService.UDF)
.withReuse(true);
private final Connection exasolConection;
.withReuse(true);
private final Connection exasolConnection;
private final Statement exasolStatement;
private final AdapterScript adapterScript;
private final ConnectionDefinition connectionDefinition;
Expand All @@ -56,14 +57,14 @@ public class PostgresVirtualSchemaIntegrationTestSetup implements Closeable {
final Bucket bucket = this.exasolContainer.getDefaultBucket();
uploadDriverToBucket(bucket);
uploadVsJarToBucket(bucket);
this.exasolConection = this.exasolContainer.createConnection("");
this.exasolStatement = this.exasolConection.createStatement();
this.exasolConnection = this.exasolContainer.createConnection("");
this.exasolStatement = this.exasolConnection.createStatement();
this.postgresConnection = this.postgresqlContainer.createConnection("");
this.postgresStatement = this.postgresConnection.createStatement();
final String hostIpAddress = getTestHostIpFromInsideExasol();
assert(hostIpAddress != null);
final UdfTestSetup udfTestSetup = new UdfTestSetup(hostIpAddress,
this.exasolContainer.getDefaultBucket(), this.exasolConection);
assert (hostIpAddress != null);
final UdfTestSetup udfTestSetup = new UdfTestSetup(hostIpAddress, this.exasolContainer.getDefaultBucket(),
this.exasolConnection);
this.exasolFactory = new ExasolObjectFactory(this.exasolContainer.createConnection(""),
ExasolObjectConfiguration.builder().withJvmOptions(udfTestSetup.getJvmOptions()).build());
final ExasolSchema exasolSchema = this.exasolFactory.createSchema(SCHEMA_EXASOL);
Expand Down Expand Up @@ -146,7 +147,7 @@ public ExasolObjectFactory getExasolFactory() {
public void close() {
try {
this.exasolStatement.close();
this.exasolConection.close();
this.exasolConnection.close();
this.postgresStatement.close();
this.postgresConnection.close();
this.exasolContainer.stop();
Expand Down

0 comments on commit 42b1868

Please sign in to comment.