Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #61 from tiki/release/fix-iceberg-init
Browse files Browse the repository at this point in the history
fix: iceberg initialization
  • Loading branch information
mike-audi committed Oct 27, 2023
2 parents a93f7fd + 7e8d797 commit 3fabf73
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion infra/sar/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Metadata:
ReadmeUrl: ../../README.md
Labels: [ 'iceberg' ]
HomePageUrl: https://github.com/tiki/core-iceberg-metadata
SemanticVersion: 0.1.8
SemanticVersion: 0.1.9
SourceCodeUrl: https://github.com/tiki/core-iceberg-metadata

Resources:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.mytiki</groupId>
<artifactId>core-iceberg-metadata</artifactId>
<version>0.1.8</version>
<version>0.1.9</version>
<packaging>jar</packaging>
<name>Iceberg Metadata</name>
<properties>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/mytiki/core/iceberg/metadata/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@

public class App implements RequestHandler<SQSEvent, SQSBatchResponse> {
protected static final Logger logger = Initialize.logger(App.class);
private final Iceberg iceberg = Iceberg.load();

public SQSBatchResponse handleRequest(final SQSEvent event, final Context context) {
try {
WriteHandler handler = new WriteHandler(Iceberg.load());
iceberg.initialize();
WriteHandler handler = new WriteHandler(iceberg);
return handler.handleRequest(event, context);
} catch (Exception ex) {
logger.error(ex, ex.fillInStackTrace());
Expand Down

0 comments on commit 3fabf73

Please sign in to comment.