Skip to content

feat: add Substrait offload execution - #3

Merged
aunjgr merged 1 commit into
tae-scan-supportfrom
feature/26155-substrait-execution
Aug 5, 2026
Merged

aunjgr merged 1 commit into
tae-scan-supportfrom
feature/26155-substrait-execution

Conversation

@aunjgr

@aunjgr aunjgr commented Aug 5, 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:

Adds the Sirius-side Substrait execution boundary for MatrixOne query offload.

  • defines the versioned matrixone.sirius.v1.TaeRead capability contract
  • validates the supported Substrait operator, expression, function, and type subset before GPU execution starts
  • resolves authenticated TAE reads through a query-scoped resolver and rewrites them to resolver-owned named relations before delegating standard operators to DuckDB's Substrait importer
  • shares the Sirius logical-to-physical planning path between SQL and Substrait entry points
  • streams result chunks synchronously with bounded memory, callback backpressure, cancellation, and deterministic read-token release
  • adds a CPU-only contract test target so protocol validation can run without initializing CUDA

Only unsupported capabilities are fallback eligible. Malformed input, authentication, resolution, execution, and cancellation failures remain terminal.

Standalone Sirius builds now load the existing tae_scanner and substrait extensions; the configuration change is documented inline in extension_config.cmake.

Validation:

  • sirius_extension built successfully
  • sirius_unittest compiled and linked successfully
  • sirius_loadable_extension built and linked successfully
  • sirius_substrait_contract_unittest "[substrait_contract]" passed (4 cases, 32 assertions)
  • git diff --check passed

The full sirius_unittest runtime was not executed on this host because its global fixture eagerly initializes CUDA and no CUDA device is available.

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