Skip to content

Commit

Permalink
fix: try debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Mar 22, 2024
1 parent 8aaa17d commit e009489
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion arc-utils/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<executions>
<execution>
<id>download-files</id>
<phase>test</phase>
<phase>packaging</phase>
<goals>
<goal>run</goal>
</goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.apache.commons.compress.archivers.zip.ZipArchiveEntry;
import org.apache.commons.compress.archivers.zip.ZipArchiveInputStream;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.springframework.stereotype.Component;

import fr.insee.arc.utils.dao.GenericPreparedStatementBuilder;
import fr.insee.arc.utils.dao.SQL;
Expand All @@ -29,7 +28,6 @@
import fr.insee.arc.utils.ressourceUtils.PropertiesHandler;
import fr.insee.arc.utils.utils.FormatSQL;

@Component
public class ParquetDao {

private static final String ATTACHMENT_NAME_PREFIX = "pg";
Expand Down Expand Up @@ -139,11 +137,11 @@ private void attachPostgresDatabasesToDuckdb(Connection connection, ParquetEncry
}

private void unzipExtensions() throws IOException {
System.out.println("§§§§");
System.out.println("§§§§§§§§§§");
System.out.println(ParquetDao.class.getClassLoader());
System.out.println(ParquetDao.class.getClassLoader().getResource(DUCKDB_EXTENSION_PROVIDED_FILE));

System.out.println(UtilitaireDao.class.getClassLoader().getResource(DUCKDB_EXTENSION_PROVIDED_FILE));

try (InputStream is = UtilitaireDao.class.getClassLoader().getResourceAsStream(DUCKDB_EXTENSION_PROVIDED_FILE)) {
try (InputStream is = ParquetDao.class.getClassLoader().getResourceAsStream(DUCKDB_EXTENSION_PROVIDED_FILE)) {
try (ZipArchiveInputStream zis = new ZipArchiveInputStream(is)) {
ZipArchiveEntry zae = zis.getNextEntry();
while (zae != null) {
Expand Down

0 comments on commit e009489

Please sign in to comment.