Skip to content

Commit

Permalink
fix using memory db for duckdb tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edigonzales committed Jan 16, 2024
1 parent 0b54c45 commit 8c1252e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 5 additions & 3 deletions gretl/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,20 @@ configurations {
exclude module: 'osdt_core'
exclude module: 'osdt_cert'
exclude module: 'orai18n'
exclude group: 'org.apache.hadoop', module: 'hadoop-core'
exclude group: 'org.apache.hadoop', module: 'hadoop-core'
exclude group: 'org.slf4j', module: 'slf4j-reload4j'
}

testImplementation {
// Konflikt zwischen "core" und "client". Siehe iox-parquet.
exclude group: 'org.apache.hadoop', module: 'hadoop-core'
exclude group: 'org.apache.hadoop', module: 'hadoop-core' // Konflikt zwischen "core" und "client". Siehe iox-parquet.
exclude group: 'org.slf4j', module: 'slf4j-reload4j'
}

all*.exclude module: 'spring-boot-starter-logging'

all*.exclude group: 'org.slf4j', module: 'slf4j-simple'
all*.exclude group: 'ch.qos.logback', module: 'logback-classic'
//all*.exclude group: 'org.slf4j', module: 'slf4j-reload4j'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ task ili2pgimport(dependsOn:ili2pgschemaimport, type: Ili2pgReplace){
dbschema = "Beispiel2"
dataFile = ['Beispiel2a.xtf']
dataset = ['A_Dataset']
}
}
3 changes: 1 addition & 2 deletions gretl/src/main/java/ch/so/agi/gretl/tasks/Ili2pgReplace.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public void replaceData() {
}

// Liste mit saemtlicheen Dateipfaeden oder ilidata-Ids.
List<String> files = new ArrayList<String>();

List<String> files = new ArrayList<String>();
FileCollection dataFilesCollection = null;
if(dataFile instanceof FileCollection) {
dataFilesCollection = (FileCollection) dataFile;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void executePositiveTest() throws Exception {
@Test
public void executeDuckDB_Ok() throws Exception {
SqlExecutorStep x = new SqlExecutorStep();
Connector sourceDb = new Connector("jdbc:duckdb::memory", null, null);
Connector sourceDb = new Connector("jdbc:duckdb::memory:", null, null);

List<File> sqlListe = createSelectSqlFile();

Expand All @@ -188,7 +188,7 @@ public void executeDuckDB_Ok() throws Exception {
@Test
public void executeDuckDB_Fail() throws Exception {
SqlExecutorStep x = new SqlExecutorStep();
Connector sourceDb = new Connector("jdbc:duckdb::memory", null, null);
Connector sourceDb = new Connector("jdbc:duckdb::memory:", null, null);

List<File> sqlListe = createFailingSelectSqlFile();

Expand Down

0 comments on commit 8c1252e

Please sign in to comment.