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

Disable function deprecation checks on workers #18804

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

dain
Copy link
Member

@dain dain commented Aug 25, 2023

Description

FunctionMetadata should only be fetched on the coordinator, as workers do not have FunctionMetadata for all functions. The ExpressionAnalyzer issues warnings for deprecated functions, but this creates problems since the expression analyzer is also run on worker. The PR works around this problem by only checking for deprecation when the WarningCollector is not the NOOP implementation. Since the worker exclusively uses the NOOP collector, this effectively disables the code on workers.

Fixes #17661

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Aug 25, 2023
@dain dain requested a review from martint August 25, 2023 00:57
@dain dain merged commit fef4d74 into trinodb:master Aug 25, 2023
@dain dain deleted the function-deprecation-checks branch August 25, 2023 17:19
@github-actions github-actions bot added this to the 426 milestone Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants