如何解决超集中的“ elasticsearch错误:'byte'”?

问题描述

我正在使用python 3.6.9安装Apache Superset和elasticsearch版本7.9.1。我已创建类型为字节的文档,但无法在超集中的sql LAB中查询值,查询时出现以下错误

ES索引:

PUT /sample
{
  "mappings": {
    "properties": {
      "age":    { "type": "integer" },"email":  { "type": "keyword"  },"name":   { "type": "byte"  }     
    }
  }
}


PUT sample/_doc/1
{
  "age": "10","email": "admin@superset.com","name": "admin"
}

超集SQL查询

SELECT age,email,name FROM "default".sample LIMIT 100

Response:
elasticsearch error: 'byte'

当我查询时没有名称字段时,它将返回一行

SELECT age,email FROM "default".sample LIMIT 100

Response:
age   email
10    admin@superset.com

如何解决此字节错误?非常感谢您的任何投入。

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)