flink icon indicating copy to clipboard operation
flink copied to clipboard

[FLINK-35822] Introduce DESCRIBE FUNCTION

Open nateab opened this issue 1 year ago • 3 comments

What is the purpose of the change

This PR introduces DESCRIBE FUNCTION syntax, allowing users to describe the metadata of a given function. The design for this is covered under FLIP-465: https://cwiki.apache.org/confluence/display/FLINK/FLIP-465%3A+Introduce+DESCRIBE+FUNCTION

Brief change log

  • Add Parser support for the next syntax
  • Add FunctionDefinition as a new optional parameter for ContextResolvedFunction
  • The bulk of the implementation logic is in DescribeFunctionOperation

Verifying this change

This change added tests and can be verified as follows:

  • Added end to end tests in flink-table/flink-sql-client/src/test/resources/sql/function.q
  • Added unit tests in FlinkSqlParserImplTest and SqlOtherOperationConverterTest

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): yes
  • 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? yes
  • If yes, how is the feature documented? docs / JavaDocs

nateab avatar Jul 24 '24 03:07 nateab

CI report:

  • 5e4992105cd9ba4917c03a05af157548ad4396cf UNKNOWN
  • 86c0b0afad13fc1b6ec159e3274abd36eda3132b Azure: SUCCESS
Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

flinkbot avatar Jul 24 '24 03:07 flinkbot

@flinkbot run azure

nateab avatar Aug 06 '24 22:08 nateab

@flinkbot run azure

nateab avatar Aug 06 '24 23:08 nateab