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

[PLUGIN-1742] Fix EmptyInputFormat failure outside of Core Plugins #1843

Merged

Conversation

psainics
Copy link
Contributor

Fix EmptyInputFormat failure outside of Core Plugins

Description

Plugins that extend from AbstractFileSource (link) which are outside of the Core Plugins module will not correctly export the EmptyInputFormat that is required when we need to handle the case where the source input is empty.

Patch Description

  • This PR adds a method getEmptyInputFormatClassName that class can override to provide their own implementation for an emptyInputFormat.

  • Renamed EmptyInputFormat to AbstractEmptyInputFormat so this can be extended by other classes as their own EmptyInputFormat to reduce code duplication.

@psainics psainics force-pushed the patch_AbstractEmptyInputFormat branch 4 times, most recently from d01aa45 to 784b648 Compare February 12, 2024 08:55
@psainics psainics force-pushed the patch_AbstractEmptyInputFormat branch from 784b648 to dbd5473 Compare February 12, 2024 09:56
@vikasrathee-cs vikasrathee-cs added the build Trigger unit test build label Feb 12, 2024
@vikasrathee-cs vikasrathee-cs merged commit badc4b0 into cdapio:develop Mar 1, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Trigger unit test build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants