-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Embulk 0.9 #1
Conversation
f95cfdd
to
e247db1
Compare
// Use toPlainString to avoid scientific notation | ||
String s = BigDecimal.valueOf(value).toPlainString(); | ||
// Remove the trailing zeros of the zero scale value | ||
// See: https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html#toPlainString-- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fetched from the following PRs.
trocco-io/embulk-parser-poi_excel#5
trocco-io/embulk-parser-poi_excel#6
@@ -300,7 +300,7 @@ private List<String> resolveSheetName(Workbook workbook, List<String> sheetNames | |||
protected void run(PluginTask task, Schema schema, FileInput input, Workbook workbook, List<String> sheetNames, PageOutput output) { | |||
final int flushCount = task.getFlushCount(); | |||
|
|||
try (PageBuilder pageBuilder = Exec.getPageBuilder(Exec.getBufferAllocator(), schema, output)) { | |||
try (PageBuilder pageBuilder = new PageBuilder(Exec.getBufferAllocator(), schema, output)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Embulk 0.9 does not have the org.embulk.spi.Exec.getPageBuilder
method.
No description provided.