Skip to content

[GLUTEN-13458][FLINK] Support REPLACE, RIGHT, FROM_BASE64 and LIKE - #13459

Open
zhang-jianq wants to merge 1 commit into
apache:mainfrom
zhang-jianq:stringExpr
Open

zhang-jianq wants to merge 1 commit into
apache:mainfrom
zhang-jianq:stringExpr

Conversation

@zhang-jianq

@zhang-jianq zhang-jianq commented Oct 26, 2026 •

Copy link
Copy Markdown

What changes are proposed in this pull request?

Adds the planner-side wiring so Flink's REPLACE, RIGHT, FROM_BASE64 and LIKE offload to the velox flinksql replace/right/from_base64/like functions (bigo-sg/velox#91 adds the functions themselves):

  • RexCallConverterFactory: map the four RexCalls to replace/right/from_base64/like via the default name converter. Each takes fixed arguments, so a plain name mapping suffices.
  • Tests: ReplaceFunctionsTest, RightFunctionsTest, FromBase64FunctionsTest and LikeFunctionsTest cover end-to-end execution including NULL propagation.
  • CI routing: .github/workflows/flink.yml clones the pinned velox4j branch (bigo-sg/velox4j#70).
  • Docs: gluten-flink/docs/Flink.md build notes synced.

How was this patch tested?

  • gluten-flink/ut: ReplaceFunctionsTest, RightFunctionsTest, FromBase64FunctionsTest, LikeFunctionsTest execution tests pass.
  • End-to-end dual-run on Flink 1.19.2 (native vs gluten-offloaded, identical VALUES inputs, changelog multiset exact comparison): the REPLACE/RIGHT/FROM_BASE64/LIKE cases match native exactly.

Related issue: #13458

Issue: apache#13458

Signed-off-by: zhangjianqiu <1726110962@qq.com>
@zhang-jianq zhang-jianq changed the title [GLUTEN-13458][FLINK] Support REPLACE, RIGHT and FROM_BASE64 [GLUTEN-13458][FLINK] Support REPLACE, RIGHT, FROM_BASE64 and LIKE Oct 27, 2026

This branch has not been deployed

No deployments
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.

1 participant