Skip to content

feat(timescaledb): 支持配置schema并优化时间分组查询 - #709

Closed
PengyuDeng wants to merge 2 commits into
jetlinks:2.11from
PengyuDeng:schema
Closed

feat(timescaledb): 支持配置schema并优化时间分组查询#709
PengyuDeng wants to merge 2 commits into
jetlinks:2.11from
PengyuDeng:schema

Conversation

@PengyuDeng

Copy link
Copy Markdown
Contributor
  • 在TimescaleDBOperations接口及实现类中添加schema()方法
  • 修改TimescaleDBColumnModeQueryOperations和RowModeQueryOperations构造函数,增加schema参数
  • 更新doAggregation0方法签名,传入schema参数用于时间分组查询
  • 调整TimescaleDBUtils.createTimeGroupColumn方法,支持指定schema前缀 -优化TimescaleDBTimeSeriesService中的时间分组查询逻辑
  • 调整类导入顺序,移除未使用的导入包

- 在TimescaleDBOperations接口及实现类中添加schema()方法
- 修改TimescaleDBColumnModeQueryOperations和RowModeQueryOperations构造函数,增加schema参数
- 更新doAggregation0方法签名,传入schema参数用于时间分组查询
- 调整TimescaleDBUtils.createTimeGroupColumn方法,支持指定schema前缀
-优化TimescaleDBTimeSeriesService中的时间分组查询逻辑
- 调整类导入顺序,移除未使用的导入包
@PengyuDeng

Copy link
Copy Markdown
Contributor Author

TimescaleDBDialectProvider# createSchema(String name),只能传一个schema。
问题来了我的function在public里 但我的 时序数据在jetlinks_timescaledb里
function jetlinks_timescaledb.create_hypertable(character varying, character varying, chunk_time_interval => interval) does not exist

有点不知道咋改了。。。。。

@PengyuDeng PengyuDeng closed this Nov 5, 2025
@PengyuDeng

Copy link
Copy Markdown
Contributor Author

#710

@PengyuDeng
PengyuDeng deleted the schema branch November 5, 2025 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant