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

[HTTP-43] - Remove Encoding format from HttpLookupTableSource #44

Merged
merged 1 commit into from
Dec 21, 2022

Conversation

kristoffSC
Copy link
Collaborator

@kristoffSC kristoffSC commented Dec 21, 2022

Description

The 'HttpLookupTableSource' has unused reference to Encoding format. It is not needed, since concrete type of encoding format should be created by 'LookupQueryCreatorFactory' implementation.

This PR removes this reference.

Resolves #43

PR Checklist

Copy link
Contributor

@swtwsk swtwsk left a comment

Choose a reason for hiding this comment

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

Apart from the single comment I've made, LGTM :) Please fix it (if applicable) and merge

@@ -58,11 +55,6 @@ public DynamicTableSource createDynamicTableSource(Context context) {
LOOKUP_REQUEST_FORMAT.key()
);

EncodingFormat<SerializationSchema<RowData>> encodingFormat =
helper.discoverEncodingFormat(SerializationFormatFactory.class,
HttpLookupConnectorOptions.LOOKUP_REQUEST_FORMAT
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we remove this constant as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We do want to keep it. It is used in GenericJsonQueryCreatorFactory :)

We still want to have encodingFormat and LOOKUP_REQUEST_FORMAT but the problem is that it was a "zombie" reference here, a leftover from previous refactoring.

Signed-off-by: Krzysztof Chmielewski <krzysiek.chmielewski@gmail.com>
@github-actions
Copy link
Contributor

File Coverage [96.63%] 🍏
HttpLookupTableSourceFactory.java 100% 🍏
HttpLookupTableSource.java 95.37% 🍏
Total Project Coverage 94.26% 🍏

@kristoffSC kristoffSC merged commit 68ddd41 into main Dec 21, 2022
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.

Remove Encoding format from HttpLookupTableSource
2 participants