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

[Bug]: JSON Output step only consumes rows equal to its bloc size setting or greater #2839

Closed
bobcortera opened this issue Apr 21, 2023 · 3 comments
Assignees
Labels
bug P2 Default Priority Transforms
Milestone

Comments

@bobcortera
Copy link

Apache Hop version?

2.4 Release

Java version?

OJDK 11

Operating system

Windows

What happened?

While trying to feed a web service with batches of JSON formatted rows and the bloc size set to 500 the pipeline transformation only processed batches of rows where the number of rows left were >= to the bloc size. Thus for an input of 600 blocks to above JSON Output step, only 500 were processed, the rest were ignored. The transform works fine as long as the number of input rows is a multiple of the bloc size (such as the default of 1).

Issue Priority

Priority: 2

Issue Component

Component: Transforms

@bobcortera
Copy link
Author

I've also found that it won't write any data if the number of input rows is less than the bloc size.

@bobcortera
Copy link
Author

broken_json_output.txt

@bobcortera bobcortera changed the title [Bug]: JSON Output step only consumes rows equal to it's bloc size setting or greater [Bug]: JSON Output step only consumes rows equal to its bloc size setting or greater Apr 24, 2023
@hansva
Copy link
Contributor

hansva commented Apr 27, 2023

.take-issue

@hansva hansva added this to the 2.5 milestone Apr 27, 2023
@hansva hansva closed this as completed in 19e68b0 Apr 27, 2023
hansva added a commit that referenced this issue Apr 27, 2023
fix json input transform error #2870, update snowflake jdbc driver #2871, Json output fix #2839
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P2 Default Priority Transforms
Projects
None yet
Development

No branches or pull requests

2 participants