Skip to content

[Bug]: load parquet file report 'internal error: convert go error to mo error reading parquet file metadata'. #23598

Closed

Description

@Ariznawlll

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

9df85e1

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

Image

Expected Behavior

No response

Steps to Reproduce

CREATE TABLE `parquet_massive_conversions` (
`row_id` bigint DEFAULT NULL,
`int8_str` bigint DEFAULT NULL,
`int16_str` bigint DEFAULT NULL,
`int32_str` bigint DEFAULT NULL,
`int64_str` bigint DEFAULT NULL,
`uint8_str` bigint DEFAULT NULL,
`uint16_str` bigint DEFAULT NULL,
`uint32_str` bigint DEFAULT NULL,
`uint64_str` bigint DEFAULT NULL,
`decimal64_str` decimal(18,6) DEFAULT NULL,
`decimal128_str` decimal(38,12) DEFAULT NULL,
`float32_str` float DEFAULT NULL,
`float64_str` double DEFAULT NULL,
`date_str` date DEFAULT NULL,
`time_str` time DEFAULT NULL,
`time6_str` time(6) DEFAULT NULL,
`timestamp_str` timestamp NULL DEFAULT NULL,
`timestamp6_str` timestamp(6) NULL DEFAULT NULL,
`int32_widen` bigint DEFAULT NULL,
`uint32_widen` bigint DEFAULT NULL,
`float32_widen` double DEFAULT NULL,
`parquet_int8` tinyint DEFAULT NULL,
`parquet_int16` smallint DEFAULT NULL,
`parquet_binary` blob DEFAULT NULL,
`parquet_decimal` decimal(10,2) DEFAULT NULL,
`parquet_large_string` text DEFAULT NULL
);

load data infile {'filepath'='test_small.parquet', 'format'='parquet'} into table big_data_test.parquet_massive_conversions;

please contact me privately

Additional information

No response

Activity

  1. added this to the MO-202601 milestone on Jan 26, 2026
  2. added theissue type on Jan 26, 2026
  3. added
    kind/bug
    severity/s0
    on Jan 26, 2026
  4. modified the milestones: MO-202601, MO-202602 on Feb 3, 2026
  5. daviszhen commented on May 12, 2026

    @daviszhen
    Contributor

    原始数据丢失

  6. daviszhen commented on May 12, 2026

    @daviszhen
    Contributor

    未复现.
    可能是生成的parquet文件本身就有问题.

    按要求用ai生成了新的 数据文件 并且 导入成功. parquet_massive_conversions_3_17mb.parquet.tar.gz

    • 已生成 Parquet 文件:
    
      mo-big-data/parquet_massive_conversions_3_17mb.parquet
    
      校验结果:
    
      - 文件大小:3,169,863 bytes,约 3.17 MB
      - 行数:30,970
      - 已按给定 schema 写入 26 列
      - decimal64_str 为 DECIMAL(18,6)
      - decimal128_str 为 DECIMAL(38,12)
      - parquet_decimal 为 DECIMAL(10,2)
      - parquet_binary 为 BLOB
      - parquet_large_string 读取为 VARCHAR,对应 MySQL TEXT 类型语义
    
    
    

    issue的commit: 9df85e1 加载成功

    :~/Documents/mo-big-data$ mysql -h 127.0.0.1 -u dump -P 6001 -p111
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MySQL connection id is 11
    Server version: 8.0.30-MatrixOne-v1.3.0 MatrixOne
    
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MySQL [(none)]> load data infile {'filepath'='/home/pengzhen/Documents/mo-big-data/parquet_massive_conversions_3_17mb.parquet', 'format'='parquet'}  into table big_data_test.parquet_massive_conversions;
    Query OK, 30970 rows affected (0.254 sec)
    
    MySQL [(none)]> load data infile {'filepath'='/home/pengzhen/Documents/mo-big-data/parquet_massive_conversions_3_17mb.parquet', 'format'='parquet'}  into table big_data_test.parquet_massive_conversions;
    Query OK, 30970 rows affected (0.227 sec)
    
    MySQL [(none)]> load data infile {'filepath'='/home/pengzhen/Documents/mo-big-data/parquet_massive_conversions_3_17mb.parquet', 'format'='parquet'}  into table big_data_test.parquet_massive_conversions;
    Query OK, 30970 rows affected (0.214 sec)
    
    MySQL [(none)]> load data infile {'filepath'='/home/pengzhen/Documents/mo-big-data/parquet_massive_conversions_3_17mb.parquet', 'format'='parquet'}  into table big_data_test.parquet_massive_conversions;
    Query OK, 30970 rows affected (0.203 sec)
    
    

    比较新的commit: 95f7584 加载成功.

    :~/Documents/mo-big-data$ mysql -h 127.0.0.1 -u dump -P 6001 -p111
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MySQL connection id is 1616
    Server version: 8.0.30-MatrixOne-v MatrixOne
    
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MySQL [(none)]> load data infile {'filepath'='/home/pengzhen/Documents/mo-big-data/parquet_massive_conversions_3_17mb.parquet', 'format'='parquet'} 
        -> into table big_data_test.parquet_massive_conversions;
    Query OK, 30970 rows affected (0.135 sec)
    
    MySQL [(none)]> load data infile {'filepath'='/home/pengzhen/Documents/mo-big-data/parquet_massive_conversions_3_17mb.parquet', 'format'='parquet'}  into table big_data_test.parquet_massive_conversions;
    Query OK, 30970 rows affected (0.125 sec)
    
    MySQL [(none)]> load data infile {'filepath'='/home/pengzhen/Documents/mo-big-data/parquet_massive_conversions_3_17mb.parquet', 'format'='parquet'}  into table big_data_test.parquet_massive_conversions;
    Query OK, 30970 rows affected (0.127 sec)
    
    
  7. Ariznawlll commented on May 15, 2026

    @Ariznawlll
    CollaboratorAuthor

    Verification

    Tested on main branch, commit 20346cae7 (2026-05-15, "perf(replace): reduce allocations and vector copies in REPLACE INTO hot path").

    Test file: parquet_massive_conversions_3_17mb.parquet (3.17 MB, 30,970 rows, 26 columns) from the attachment above.

    LOAD DATA INFILE {'filepath'='/tmp/parquet_massive_conversions_3_17mb.parquet', 'format'='parquet'} INTO TABLE parquet_massive_conversions;
    -- Result: 30970 rows loaded, no error

    Cannot reproduce. Load succeeded without any internal error: convert go error to mo error reading parquet file metadata error. The original issue was likely caused by a malformed parquet file.

  8. Ariznawlll commented on May 15, 2026

    @Ariznawlll
    CollaboratorAuthor

    先关闭,后面出现再跟踪。

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

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s0

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions