Repository navigation
Document that a VALUES relation does not force fallback - #704
Draft
jaskaran27177 wants to merge 1 commit into
Draft
jaskaran27177 wants to merge 1 commit into
jaskaran27177 wants to merge 1 commit into
Conversation
The unsupported-operator page said any operator without a native matcher sends its whole query back to Flink. That holds for interior operators, but the island check only requires the operators between the host edges to be columnar: an input-less leaf is treated like a row-wise source. A constant VALUES relation is such a leaf, so it stays on Flink behind a row-to-Arrow transpose while the joins, unions, aggregates and Calcs above it run natively. Add SQL parity coverage for that boundary: VALUES joined with, unioned with and aggregated alongside a streaming input; a Calc directly over VALUES; widened DECIMAL, NULL, mixed-length string, BOOLEAN, DATE and TIMESTAMP literals; and VALUES filtered to zero rows. Each query must keep the Values node in its plan, route natively with no fallback reasons, and match stock Flink's changelog. No runtime behavior changes, so there is nothing to benchmark. Refs datafusion-contrib#239 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/operators/unsupported.mdsays every listed operator makes "a query containing one fall back to Flink entirely". That isn't true forValues. The island check treats any input-less leaf like a row-wise source, so a constantVALUESrelation stays on Flink behind a row-to-Arrow transpose, and the operators above it still run natively.This PR corrects the docs and adds runtime SQL parity coverage that pins the behavior down. There are no runtime changes.
Refs #239 (the "Reproduce host-valid unsupported … Values … shapes" checklist item).
Changes
docs/operators/unsupported.md: the page intro and theValuesrow now separate interior operators (whole query falls back) from an input-less leaf such asValues(stays on Flink; operators above it run natively).docs/operators/index.md: the all-or-nothing island rule names input-less leaves, includingVALUES, alongside row-wise sources.FlinkValuesLeafSqlHarnessTest: 12 streaming queries. For each one, the test asserts that:StreamPhysicalValuesnode is in the plan,+U/-Uchangelog)DECIMAL(13, 3), NULL,VARCHAR(6)(no CHAR padding), BOOLEAN, DATE,TIMESTAMP(3)Validation
The original triage ran these query shapes on an earlier main (c56ee9b) with every query native and matching Flink. This commit's test on current main:
mvn -pl streamfusion-runtime -am test -Dtest=FlinkValuesLeafSqlHarnessTest: ⏳ in progress (draft until both lines pass)mvn -Pflink-1.18 -pl streamfusion-runtime -am test -Dtest=FlinkValuesLeafSqlHarnessTest: ⏳ pendingBenchmarks
Not applicable: docs and test coverage only, with no change to planning or execution.
🤖 Generated with Claude Code