Skip to content

【vega-backend】vega-backend对接ontology查询指标数据功能时,对于接口参数定义存在问题,两边服务未对齐。详细描述见下 #434

@12monkeys-stack

Description

@12monkeys-stack

Description

ontology查询指标数据,当instant=true,vega-backend后台生成的sql中没有将start和end 转换为时间格式,导致时间查询报错。注意,此问题在mysql/pg等数据库场景中出现,opensearch支持时间戳条件,无此问题。

接口请求参数
Image

vega-backend后台日志
Image

实际执行结果
Image

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

无论instant为何值,时间条件均需正常转换
下图为instant=false的sql
Image

Actual behavior

Environment

  • OS: [e.g. Windows 10 / macOS 14 / Ubuntu 22.04]
  • Browser: [e.g. Chrome 120 / Edge 119 / Firefox 118] (if applicable)
  • Version: [e.g. v1.0.0]

Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions