flink icon indicating copy to clipboard operation
flink copied to clipboard

[FLINK-34477][table] Support capture groups in REGEXP_REPLACE

Open jeyhunkarimov opened this issue 1 year ago • 2 comments

What is the purpose of the change

Support capture groups in REGEXP_REPLACE

Brief change log

  • Added support for capture groups by skipping the dollar sign
  • Adjusted some tests and added new ones

Verifying this change

Tests: org.apache.flink.table.planner.expressions.ScalarFunctionsTest::testRegexpReplace

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)

jeyhunkarimov avatar Feb 21 '24 20:02 jeyhunkarimov

CI report:

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

flinkbot avatar Feb 21 '24 20:02 flinkbot

Hi @JingGe could you please review this PR in your available time? Thanks!

jeyhunkarimov avatar Feb 22 '24 20:02 jeyhunkarimov