Skip to content

[GLUTEN-12457][FLINK] configure FLINK preset before Velox4j.initialize#12458

Open
ggjh-159 wants to merge 1 commit into
apache:mainfrom
ggjh-159:feat/configure-flink-preset
Open

[GLUTEN-12457][FLINK] configure FLINK preset before Velox4j.initialize#12458
ggjh-159 wants to merge 1 commit into
apache:mainfrom
ggjh-159:feat/configure-flink-preset

Conversation

@ggjh-159

@ggjh-159 ggjh-159 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

related issue: #12457

What changes are proposed in this pull request?

Configures the velox4j FLINK preset before Velox4j.initialize() in both the production TaskManager and the gluten-flink UT harness.

Background: velox4j is adding a FLINK preset (sibling to the default SPARK) so Flink-flavored SQL function registrations stay isolated from Spark's. The default remains SPARK, so any caller that wants the Flink behavior must Velox4j.configure(Preset.KEY, Preset.FLINK) before initialize(). gluten-flink is that caller.

Changes

  • TaskManagerRunner.javaVelox4j.configure(Preset.KEY, Preset.FLINK) immediately before Velox4j.initialize() in the Gluten-specific block.
  • Velox4jEnvironment.java — same call in the UT harness constructor.

Depends on the upstream velox4j change(bigo-sg/velox4j#54) that introduces the Preset enum and the io.github.zhztheplayer.velox4j.config.Preset class.

How was this patch tested?

Existing gluten-flink UTs (Velox4jEnvironment is the UT init wrapper). End-to-end behavior is verified on the velox4j side by RegexpExtractTest running under the FLINK preset.

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