Repository navigation
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
[P1] Keep the streamed schema aligned with the native MO vector type
The new StreamRead schema path calls namedStructFromTypes, which reuses substraitType. That helper maps T_uint32 to Substrait I64 for the existing result-decoding path:
matrixone/pkg/sql/plan/substrait/export.go
Lines 1291 to 1304 in af20802
matrixone/pkg/sql/plan/substrait/export.go
Lines 1428 to 1431 in af20802
matrixone/pkg/sql/compile/sirius_stream.go
Lines 227 to 232 in af20802
This makes a reachable hinted query over an INT UNSIGNED column pass export and Prepare, become externally visible, and then deterministically fail on its first DoPut batch; stream mode cannot fall back at that point. I reproduced it on af20802: a T_uint32 table scan is admitted and its StreamSchema is I64 while the producer type remains T_uint32.
Please separate output-transport type restoration from native-input schema mapping. Either reject T_uint32 before Prepare, convert the producer vector to int64 with null/const/split coverage, or define and implement an explicit uint32 wire mapping on both sides. Add a cross-boundary regression using an actual T_uint32 native batch so the result-only uint32 coverage cannot mask this mismatch.
|
Thanks — confirmed. The review is correct: Fixed in
Validation after merging newest main:
Please take another look. |
Retain at most 128 frames and 64 MiB of payload per input, preserve native reader backpressure, and drain or release retained frames on terminal outcomes. Align capability identity with the pooled Sirius source and record SF10 correctness, timings, dependency commits, and the remaining performance gap.
Route streamed producers through the shared initializer owner so materialized source generations close on all terminal paths. Record the new Sirius and sidecar PR pins while keeping pre-merge SF10 measurements distinct from publication validation.
What type of PR is this?
Which issue(s) this PR fixes:
issue #27586
What this PR does / why we need it:
Streams eligible local MatrixOne scans to Sirius as MatrixOne-native batches and returns MatrixOne-native result batches. Explicit
/*+ SIDECAR STREAM */keeps snapshot visibility, filtering, and projection in the ordinary MO reader; it never silently substitutes direct TAE or native execution.gpu_stream=2with independent pipelines running concurrently. Tasks within one physical pipeline remain serialized, includingPARTITION; the earlier same-pipeline concurrency claim is superseded.runPipelineAttemptwrapper so streamed producers preserve materialized-source cleanup on success, error, and panic.Design and delivery identity
Design version 1, review iteration 7. Review iterations do not increment the version. Iteration 6's approval does not substitute for fresh review of iteration 7; production enablement remains pending that review and the acceptance evidence in sections 14–16.
747ace3ec0e8021eecb31b24ed9077c9318964b7; includes authoritative main4fdb9e91615f9fc37703039ae28a47849206d1d6.902af81f4f906a2672bb3c75b36438bb79da6ce2.73889951c15f4346f7aa38b0600f07a8ef76c49b, pinned to that Sirius commit.Merge Sirius #12 first, then update sidecar #20 to the upstream merged Sirius commit before merging it. These PRs must use the matching capability contract.
Validation
Post-main-merge MatrixOne validation:
sidecarflightnormal and race suites passed.substraitpackage passed.pkg/sql/compilenormal (3.826s) and race (5.339s) suites passed.Recorded integrated validation before the later main merge:
GPU_MO_SCAN,gpu_stream=2: 34.158730s total. DirectGPU_TAE_SCANcontrol: 15.501565s. Q9: 3.255576s versus 0.798354s.Full 22-query table, source revisions, profiling, and remaining work. Earlier benchmark comments are preserved as historical records; they are not substituted for this explicit stream/control comparison.