Skip to content
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

Merged
merged 2 commits into from
Sep 11, 2024
Merged

Support Embulk 0.9 #1

merged 2 commits into from
Sep 11, 2024

Conversation

t3t5u
Copy link

@t3t5u t3t5u commented Sep 6, 2024

No description provided.

@t3t5u t3t5u force-pushed the support_embulk_0_9 branch from f95cfdd to e247db1 Compare September 6, 2024 08:20
// 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--
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@t3t5u t3t5u changed the title Support embulk 0 9 Support Embulk 0.9 Sep 6, 2024
@@ -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)) {
Copy link
Author

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.

@t3t5u t3t5u requested review from d-hrs and NamedPython September 6, 2024 08:32
@NamedPython NamedPython merged commit b90e808 into main Sep 11, 2024
1 check passed
@t3t5u t3t5u deleted the support_embulk_0_9 branch September 11, 2024 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants