opensearch-project / opensearch-catalog

The OpenSearch Catalog is designed to make it easier for developers and community to contribute, search and install artifacts like plugins, visualization dashboards, ingestion to visualization content packs (data pipeline configurations, normalization, ingestion, dashboards).
Apache License 2.0
21 stars 19 forks source link

[BUG] incorrect traces mapping json #199

Open chikei opened 1 week ago

chikei commented 1 week ago

current traces or traces data stream mapping has this attributes definition

        "attributes": {
          "type": "object",
          "data_stream": {
            "properties": {
                "dataset": {
                  "ignore_above": 128,
                  "type": "keyword"
                },
                "namespace": {
                  "ignore_above": 128,
                  "type": "keyword"
                },
                "type": {
                  "ignore_above": 56,
                  "type": "keyword"
                }
              }
            }
          }
        },

that is uneven bracket'ed and I think uses an incorrect schema for type object, the correct one should be

        "attributes": {
          "type": "object",
          "properties": {
            "data_stream": {
              "properties": {
                "dataset": {
                  "ignore_above": 128,
                  "type": "keyword"
                },
                "namespace": {
                  "ignore_above": 128,
                  "type": "keyword"
                },
                "type": {
                  "ignore_above": 56,
                  "type": "keyword"
                }
              }
            }
          }
        },
YANG-DB commented 4 days ago

@chikei thanks for your help We will issue a fix ASAP

YANG-DB commented 4 days ago

@chikei see #200 - soon to be reviewed and merged