Skip to content

feat: validate MatrixOne TPC-H Substrait plans - #4

Merged
aunjgr merged 4 commits into
tae-scan-supportfrom
feature/26155-tpch-substrait
Aug 12, 2026
Merged

aunjgr merged 4 commits into
tae-scan-supportfrom
feature/26155-tpch-substrait

Conversation

@aunjgr

@aunjgr aunjgr commented Aug 11, 2026 •

Copy link
Copy Markdown

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue matrixorigin/matrixone#26155

Refs matrixorigin/matrixone#26154

What this PR does / why we need it:

Extends the Sirius Substrait execution boundary to the exact MatrixOne TPC-H subset.

  • validates inner, left outer, right outer, left/right semi, and left/right anti joins;
  • validates decimal values, CASE (IfThen), IN lists (SingularOrList), TPC-H scalar functions, and aggregate functions;
  • accepts backward-only top-level ReferenceRel producers as a bounded contract feature; MatrixOne's canonical TPC-H Q15 is already inlined, and this PR does not change CTE planning;
  • authenticates the database ID carried by TaeRead wire field 12; and
  • pins feat: import Substrait anti joins duckdb-substrait#2 for anti-join import support.

Unsupported capabilities remain fallback eligible. Malformed plans, forward/self references, missing database identity, and authenticated metadata mismatches remain terminal.

Validation:

  • sirius_substrait_contract_unittest --abort passed (7 cases, 60 assertions);
  • the exact repository clang-format hook passes on every C/C++ file changed by this PR;
  • git diff --check passed.

The focused target was built in the release configuration. The full GPU suite was not run on this host because it requires CUDA hardware.

The standalone target branch has pre-existing CI failures: its root duckdb checkout was intentionally removed for parent-sidecar builds, so standalone make fails before compilation, and its all-files lint rewrites files outside this PR. The same failures are present on the already-merged base PR #3; this PR does not expand into that repository-wide build/lint repair.

Depends on matrixorigin/duckdb-substrait#2. Consumed by matrixorigin/mo-sirius-sidecar#6 and matrixorigin/matrixone#26981.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant