Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch 异常:illegal_argument_exception 针对 is_risk_control 字段 #5325

Open
starslink opened this issue Nov 21, 2024 · 0 comments

Comments

@starslink
Copy link

Elasticsearch 异常:illegal_argument_exception 针对 is_risk_control 字段

问题描述

我们在 Elasticsearch 中的 doc_join 索引遇到了异常,该索引结构为订单和订单明细的主子关系。

索引配置

{
  "mappings": {
    "properties": {
      "doc_join": {
        "type": "join",
        "eager_global_ordinals": true,
        "relations": {
          "order": "detail"
        }
      },
      "is_risk_control": {
        "type": "boolean"
      }
    }
  }
}

异常信息

CloudCanal 中我们收到如下异常:

Elasticsearch exception [type=illegal_argument_exception, reason=mapper [is_risk_control] of different type, current_type [boolean], merged_type [short]]

详细情况

我们在主单和明细中都包含了 is_risk_control 字段,字段类型为 tinyint(1)。但是,CloudCanal 提示该字段类型不一致的异常。除了这个字段外,我们还有其他相同类型的字段,例如:

"suggest_warehouse_id": {
  "type": "long"
}

在 MySQL 中,这些字段类型为 bigint(20) unsigned,并未出现上述异常。

版本信息

  • CloudCanal 版本:社区版 v3.3.1.5
  • Elasticsearch 版本:6.7.0

希望能尽快得到解决方案或指导。感谢!

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

No branches or pull requests

1 participant