Skip to content

[Subtask]: support parquet Dictionary encoding #22693

Closed

Description

@XuPeng-SH

Parent Issue

#22690

Detail of Subtask

support parquet Dictionary encoding

Describe implementation you've considered

support parquet Dictionary encoding

Additional information

No response

Activity

  1. added this to the MO-202510 milestone on Oct 28, 2025
  2. added
    priority/p0
    on Oct 28, 2025
  3. added theissue type on Oct 28, 2025
  4. modified the milestones: MO-202510, MO-202602 on Feb 3, 2026
  5. added
    ai-light
    on Sep 15, 2026
  6. Ariznawlll commented on Sep 16, 2026

    @Ariznawlll
    Collaborator

    测试版本

    • 分支:main
    • commit:b347a62a30719cf3f2c8ca5a2da0dcfb11639f8c
    • 部署方式:临时 2 CN 分布式验证环境;使用独立的 MinIO/Parquet fixture,验证结束后已清理。
    • 测试日期:2026-09-16

    原问题验证

    针对 Dictionary-encoded Parquet fixture 执行 LOAD DATA,fixture 同时包含 dictionary 编码的 INT64、DOUBLE、BOOLEAN 和 nullable BOOLEAN 列。输入文件 SHA-1 为 aeb9728e5ecc79c42a52fd4c9ba8375ce46176f6,共 4 行。相同加载和聚合断言独立重复 3 次。

    Happy Path 覆盖

    1. 全类型加载后统计为:COUNT(*)=4、整数 MIN/MAX=1/3、浮点 MIN/MAX=1.5/3.5、必填 BOOLEAN 的真值数为 3、nullable BOOLEAN 的非 NULL 行数为 3、真值数为 2。各列的 dictionary value、类型转换和 NULL 状态均正确。
    2. 按行读取结果为 (1,1.5,1,1)、(1,1.5,1,0)、(2,2.5,0,NULL)、(3,3.5,0,1);重复 dictionary value 1/1.5 没有丢失或串列。
    3. 两次独立目标表重复加载后的统计均为 4, 1, 3, 1.5, 3.5, 2, 3, 2,结果与首次一致。

    Unhappy Path 覆盖

    1. 将含 NULL 的 dictionary-encoded BOOLEAN 列加载到 NOT NULL 目标列被约束拒绝;失败后重新查询目标表为 0 行,证明拒绝没有部分写入。
    2. 3 轮正常加载和拒绝路径均未观察到 SQL 连接中断、CN 重启、panic 或资源残留;临时对象和 fixture 已删除。

    白盒验证

    不适用:本 issue 的可观察契约是 LOAD DATA 对 Dictionary-encoded Parquet 列的解码和原子写入,已由公开 SQL 接口直接覆盖;无需故障注入才能到达该路径。

    回归测试

    现有分布式回归用例 test/distributed/cases/load_data/parquet_dictionary.sql 已覆盖该类别;本轮未新增重复 case。

    测试证据

    本次独立 fixture 的加载与聚合输出为:4, 1, 3, 1.5, 3.5, 2, 3, 2;逐行值、nullable BOOLEAN 计数、三次重复结果及 NOT NULL 拒绝后的 0 行目标表均按上文记录完成核对。相关 SQL 回归资产见上述固定 SHA 链接。

    测试结论

    测试通过。

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

Metadata

Metadata

Assignees

Labels

ai-lightkind/subtaskphase/testingpriority/p0

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions