Skip to content

Disable function deprecation checks on workers#18804

Merged
dain merged 1 commit intotrinodb:masterfrom
dain:function-deprecation-checks
Aug 25, 2023
Merged

Disable function deprecation checks on workers#18804
dain merged 1 commit intotrinodb:masterfrom
dain:function-deprecation-checks

Conversation

@dain
Copy link
Copy Markdown
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