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

Remove redundant classloader wrapper from table functions #20184

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

findepi
Copy link
Member

@findepi findepi commented Dec 20, 2023

Engine-provided functions do not need
ClassLoaderSafeConnectorTableFunction wrapper.

Engine-provided functions do not need
`ClassLoaderSafeConnectorTableFunction` wrapper.
Engine-provided functions do not need
`ClassLoaderSafeConnectorTableFunction` wrapper.
@findepi findepi added the no-release-notes This pull request does not require release notes entry label Dec 20, 2023
@cla-bot cla-bot bot added the cla-signed label Dec 20, 2023
import static java.util.Locale.ENGLISH;
import static java.util.stream.Collectors.joining;

public class ExcludeColumnsFunction
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not a new code. It just became a top level class (a rename from ExcludeColumns.ExcludeColumnsFunction to ExcludeColumnsFunction, no need for Provider).

{
return new ClassLoaderSafeConnectorTableFunction(new SequenceFunction(), getClass().getClassLoader());
super(
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not a new code. It just became a top level class (a rename from Sequence.SequenceFunction to SequenceFunction, no need for Provider).

Nice that github shows this as a rename. Review ignoring whitespace changes to see a small diff.

@findepi
Copy link
Member Author

findepi commented Dec 21, 2023

CI #16315

@findepi findepi merged commit a8ac255 into trinodb:master Dec 21, 2023
86 of 88 checks passed
@findepi findepi deleted the findepi/exclude-cl branch December 21, 2023 10:38
@github-actions github-actions bot added this to the 436 milestone Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

2 participants