Skip to content

Commit

Permalink
Merge pull request #326 from joker1007/fix-timestamp-casting
Browse files Browse the repository at this point in the history
fix: fix double casting on `getTimestamp`
  • Loading branch information
joker1007 authored Oct 3, 2023
2 parents ecec67b + 318f97f commit c2acb83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public String getString(Column column)

public Instant getTimestamp(Column column)
{
return ((org.embulk.spi.time.Timestamp) getValue(column)).getInstant();
return (Instant)getValue(column);
}

public Value getJson(Column column)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class PageReaderRecord implements Record
public PageReaderRecord(PageReader pageReader)
{
this.pageReader = pageReader;
readRecords = new ArrayList<MemoryRecord>();
readRecords = new ArrayList<>();
}

public void setPage(Page page)
Expand Down

0 comments on commit c2acb83

Please sign in to comment.