feat(table-query): 支持时间戳条件转换#488
Merged
Merged
Conversation
1. 新增通用时间戳值归一化函数,统一处理不同数值类型的时间戳 2. 为MariaDB和PostgreSQL分别封装数据库专用的日期比较表达式生成函数 3. 重构单条件比较(gt/gte/lt/lte)和范围条件(range/out_range/between)的日期类型处理逻辑,移除重复代码 4. 新增对应数据库的单元测试验证时间戳条件转换正确性 5. 补充指标查询服务中即时查询的时间窗口转换测试用例
Flynn-Zh
approved these changes
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
What Changed
Brief description of changes:
float64、float32、int、int32、uint、uint32等数值类型gt/gte/lt/lte/range/out_range/between条件转换为数据库专用日期表达式between日期处理逻辑,移除重复的时间戳格式化代码Why
How
FROM_UNIXTIME(?/1000)构建日期字段比较表达式to_timestamp(?/1000)构建日期字段比较表达式rangefilter conditionTesting
Test notes:
Risk & Rollback
Additional Notes