Skip to content

[BUG] SQLBot 1.7.0 版本 Elasticsearch 数据源预览失败:object 类型字段和数组字段均不支持 #1028

@li0on3

Description

@li0on3

描述 Bug:
在使用 Elasticsearch 数据源进行数据预览时,遇到两种不同类型的错误:

当字段类型为 object(properties)时,报 verification_exception
当字段为数组(array)时,报 invalid_argument_exception

这导致包含复杂字段(object 或 array)的索引无法正常预览数据。
错误信息:
错误1(object 类型):

textFound 2 problems
line 1:46: Cannot use field [meta] type [object] only its subfields
line 1:78: Cannot use field [owner] type [object] only its subfields

错误2(数组类型):

textArrays (returned by [tagging]) are not supported

SQLBot 版本
1.7.0
运行模式(Run Mode)
Docker 容器运行

复现步骤(To Reproduce)

添加或编辑 Elasticsearch 数据源
选择索引 mos-mosa
切换到 数据预览 标签页
点击预览或尝试加载数据
分别出现上述两种错误(取决于当前字段启用状态)

预期行为(Expected behavior)
数据预览应能正常支持 Elasticsearch 中的常见字段类型,包括:

object / nested 类型字段(至少支持展开子字段或自动展平)
数组(array)类型字段

截图(Screenshots)

Image Image

附加上下文(Additional context)

当前预览底层采用的是 ES SQL
meta 和 owner 字段类型为 properties(object)
tagging 等字段为数组类型(array),也会导致预览失败
普通 keyword、text、date 等字段均可正常预览
该问题严重影响包含复杂映射(mapping)的 Elasticsearch 索引的使用体验

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions