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

FLINK-36505 remove deprecated methods TableFunction #25538

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jbalchan
Copy link
Contributor

What is the purpose of the change

[FLINK-36505] https://issues.apache.org/jira/browse/FLINK-36505 Removed all deprecated methods - getResultType and getParameterTypes from TableFunction under table-common.

Brief change log

Removed all deprecated methods - getResultType and getParameterTypes from TableFunction under table-common.

Verifying this change

This change is already covered by existing tests

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API, i.e., is any changed class annotated with @Public(Evolving): no
  • The serializers: no
  • The runtime per-record code paths (performance sensitive): no
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
  • The S3 file system connector: no

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? not applicable

@flinkbot
Copy link
Collaborator

flinkbot commented Oct 16, 2024

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@jbalchan
Copy link
Contributor Author

@flinkbot run azure

public TypeInformation<Row> getResultType() {
return new RowTypeInfo(config.getSelectedFieldTypes(), config.getSelectedFieldNames());
}

@Override
public void open(FunctionContext context) throws Exception {
super.open(context);
Copy link
Contributor

Choose a reason for hiding this comment

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

TypeInformation<Row> rowType = getResultType();

this seems to be calling the removed function?

Copy link
Contributor

@superdiaodiao superdiaodiao left a comment

Choose a reason for hiding this comment

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

In the Azure compile log, it indicates that:

14:00:11.430 [ERROR] /__w/3/s/flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/UserDefinedFunctionHelper.java:[186,60] cannot find symbol
14:00:11.430 [ERROR]   symbol:   method getResultType()
14:00:11.430 [ERROR]   location: variable tableFunction of type org.apache.flink.table.functions.TableFunction<T>

So you also have to check here.

@xuyangzhong
Copy link
Contributor

Hi, @jbalchan is there any progress on the ci failure?

@jbalchan
Copy link
Contributor Author

jbalchan commented Jan 2, 2025

Re-Checking now. Will update by End of today.

@jbalchan jbalchan force-pushed the FLINK-36505-remove-deprecated-methods-TableFunction branch from eb12f82 to 772769a Compare January 2, 2025 07:59
@jbalchan jbalchan force-pushed the FLINK-36505-remove-deprecated-methods-TableFunction branch 2 times, most recently from 0222d40 to 0824c9e Compare January 2, 2025 15:46
@jbalchan jbalchan force-pushed the FLINK-36505-remove-deprecated-methods-TableFunction branch from 0824c9e to c707158 Compare January 2, 2025 15:56
@jbalchan
Copy link
Contributor Author

jbalchan commented Jan 2, 2025

@flinkbot run azure

@xuyangzhong
Copy link
Contributor

@jbalchan the ci failed again where compiling, can you take a look again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants