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]: Parquet Input fails if there are no files on input #4725

Closed
mattcasters opened this issue Dec 18, 2024 · 0 comments
Closed

[Bug]: Parquet Input fails if there are no files on input #4725

mattcasters opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@mattcasters
Copy link
Contributor

Apache Hop version?

2.11.0

Java version?

openjdk 17.0.13 2024-10-15 LTS

Operating system

Linux

What happened?

Just provide 0 file rows as input for the Parquet Input transform and you get this error:

2024/12/18 10:07:55 - Read a parquet.5 - ERROR: Unexpected error
2024/12/18 10:07:55 - Read a parquet.5 - ERROR: java.lang.NullPointerException: Cannot invoke "org.apache.parquet.hadoop.ParquetReader.close()" because "this.data.reader" is null
2024/12/18 10:07:55 - Read a parquet.5 - 	at org.apache.hop.parquet.transforms.input.ParquetInput.closeFile(ParquetInput.java:107)
2024/12/18 10:07:55 - Read a parquet.5 - 	at org.apache.hop.parquet.transforms.input.ParquetInput.processRow(ParquetInput.java:50)
2024/12/18 10:07:55 - Read a parquet.5 - 	at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
2024/12/18 10:07:55 - Read a parquet.5 - 	at java.base/java.lang.Thread.run(Thread.java:840)

Issue Priority

Priority: 3

Issue Component

Component: Transforms

@mattcasters mattcasters self-assigned this Dec 18, 2024
@mattcasters mattcasters added this to the 2.12 milestone Dec 18, 2024
@github-actions github-actions bot added P3 Nice to have Transforms labels Dec 18, 2024
mattcasters pushed a commit to mattcasters/hop that referenced this issue Dec 18, 2024
mattcasters pushed a commit to mattcasters/hop that referenced this issue Dec 18, 2024
mattcasters pushed a commit to mattcasters/hop that referenced this issue Dec 18, 2024
mattcasters pushed a commit to mattcasters/hop that referenced this issue Dec 18, 2024
hansva added a commit that referenced this issue Dec 24, 2024
@hansva hansva closed this as completed Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants