This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
测试用例草案
- 用例1:分区创建与存在性
- 执行 partitioned_logs.sql,确认创建表与分区存在
- 用例2:写入分区数据及分析摘要
- 插入若干行数据,日志时间分布在不同月份,验证数据写入到了相应分区,analysis_summary 非空
- 用例3:API 查询最新日志及分析摘要
- 调用 API 获取最近日志,校验字段 presence
- 用例4:分区查询性能
- 针对历史月份的日志执行查询,验证分区裁剪效果
- 依赖:MariaDB 实例、API 服务的可用端点
- 评估标准:分区创建成功,数据写入正确,对应分区检索正确,API 返回最新摘要