Repository navigation
Conversation
Parquet LIST<FLOAT/DOUBLE> -> VECF32/VECF64 accepted NaN and Inf, and VECF16/VECBF16 silently narrowed out-of-range finite values to +Inf, while the SQL input path rejects both. Check every element (after narrowing) with the same "vector element cannot be NaN or Inf" error. Fixes matrixorigin#31508
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? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 77bf276b4322c962ec7877371589c25867069c3a
Assessment: approve
The fix rejects non-finite vector elements after conversion, including narrowing overflow, while preserving finite values and existing rollback paths. No actionable findings remain.
Model: gpt-6-astra / xhigh
Session: 01a1869d-820c-7212-9788-aecfb86a4141 · slot 0 · generation 2
Validation:
-
All 11 focused tests passed, including 12 new rejection cases and finite-value controls.
-
Owning external-package tests passed; changed Go files are gofmt-clean.
-
Independently decoded and verified all five Parquet fixtures.
-
Reused frozen exact-head CI evidence. Receipts and logs reconciled in validation-evidence.json; source unchanged and discussion assessment complete.
Limitations:
-
No local service BVT run; individual CI case logs were unavailable.
-
An unrelated MinIO-dependent Arrow integration test was skipped.
🚫 Left the queue24 min in the queue, with no time running CI. So far
Reason Pull request #31831 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
Hint You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Merge conditions: 2 of 3 metThis pull request
The batch, tested in place
Tick the box to put this pull request back in the merge queue (same as
Times in UTC · dashboard · how the merge queue works |
…error parquet_vector_nonfinite (main matrixorigin#31831) expects main's message for a vecf16 and a vecbf16 element above the type's range. This PR rejects such an element as out of range, naming the type and the input value, as the scalar float16/bf16 types do; both inserts are still rejected. Co-Authored-By: Claude Opus 5.5 <[email protected]>
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #31508
What this PR does / why we need it:
LOAD DATA ... format 'parquet'into a vector column tookLIST<FLOAT/DOUBLE>elements without the vector NaN/Inf check: VECF32/VECF64 stored NaN and ±Inf, and VECF16/VECBF16 narrowed out-of-range finite values (e.g. 100000 → f16, 3.4e38 → bf16) to +Inf. The same values through SQL (insert ... '[NaN,1]') fail withvector element cannot be NaN or Inf.Cause: the element converters in
getNestedListMapper(parquet.go) only converted the value; nothing checked the result is finite.Fix (
parquet.go+31/-11): new helperparquetVectorElemFinitewith the same error text astypes/array_str.go. Every float vector converter calls it; F16/BF16 check the narrowed value, so overflow to Inf is caught as in the SQL path. The existing DOUBLE → FLOAT overflow error is kept.Tests
parquet_list_vector_finite_test.go: 12 NaN/Inf/overflow cases across VECF32/F64/BF16/F16 rejected (RED on main, all 12 fail), finite values still load.go test ./pkg/sql/colexec/external/passes.load_data/parquet_vector_nonfinite.sqlwith 5 small Parquet files built with PyArrow, as in the issue: main 14/24 (the 4 loads succeed and store the rows), PR 24/24.load_data: PR 1705/1710 passed, 5 ignored, 0 failed.Merge Danger
Low. Parquet loads that contain NaN/Inf (or values outside the F16/BF16 range) into vector columns now fail with the SQL path's error instead of storing those values. Finite data is unchanged.