Repository navigation
Description
Branch and revision
Official main at 6540533196711f09e6b1279066063cb90043ebd8; runtime git_version() matched the full SHA.
An isolated MatrixOne service was compared with a separately initialized MySQL 8.0.45 instance. Every round used a fresh table and the exact same bytes.
Summary
LOAD DATA ... IGNORE 1 LINES PARALLEL 'true' removes U+FEFF from the beginning of the first retained data row. The character is after the ignored header, not at file offset zero, so it is data rather than a file BOM. The sequential MatrixOne path and MySQL preserve it.
This is the byte-preservation component formerly consolidated into #31232.
Reproduction
Create an exact 18-byte file:
from pathlib import Path
Path('/test-owned/bom.csv').write_bytes(
b'header\n\xef\xbb\xbfaaa\nbbb\n'
)Run MatrixOne sequential and parallel loads into separate tables:
CREATE TABLE bom_dst(s VARCHAR(32));
LOAD DATA INFILE '/test-owned/bom.csv' INTO TABLE bom_dst
FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'
IGNORE 1 LINES
PARALLEL 'true' STRICT 'false';
SELECT HEX(s) FROM bom_dst ORDER BY HEX(s);Use PARALLEL 'false' as the MatrixOne sequential control. For MySQL, use standard LOAD DATA LOCAL INFILE with the same fields/lines and IGNORE 1 LINES clauses.
Actual results
| Loader | HEX row set, all 3 rounds | Result |
|---|---|---|
MatrixOne PARALLEL 'false' |
626262, EFBBBF616161 |
preserves U+FEFF |
MatrixOne PARALLEL 'true' |
616161, 626262 |
drops U+FEFF |
| MySQL 8.0.45 | 626262, EFBBBF616161 |
preserves U+FEFF |
The parallel statement reports success, both row counts remain two, and SELECT 42 succeeds afterward. The defect is therefore silent byte loss, not a row-count or connection failure.
Expected behavior
After ignoring the header, both data values must be preserved byte-for-byte: bbb and U+FEFF followed by aaa. BOM handling at file offset zero must not delete U+FEFF from a later data record or from a real parallel shard boundary.
Scope
The small-file failure is deterministic 3/3. This report does not claim that the original 268,435,463-byte sharded case or every external-table/replanning path has been rerun; those are not needed to establish the byte-loss counterexample.
Split from the consolidated #31232 tracker so the fixed INLINE option propagation can be closed independently of the remaining parallel-loader defect.
Activity