You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by na...@apache.org on 2018/02/09 17:32:50 UTC

incubator-spot git commit: SPOT-261. ODM event schema additional_attrs field should be map

Repository: incubator-spot
Updated Branches:
  refs/heads/SPOT-181_ODM 39e572e03 -> e48c5f4dc


SPOT-261. ODM event schema additional_attrs field should be map<string>

The Avro and Parquet table schemas designate the additional_attrs field as a map<string, string>, but in the Avro schema definition (in event.avsc), the field is listed as just an optional string. This field should be updated to be an optional map<string>

Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/e48c5f4d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/e48c5f4d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/e48c5f4d

Branch: refs/heads/SPOT-181_ODM
Commit: e48c5f4dc53713425c01c7049f27a05d67732fd4
Parents: 39e572e
Author: Jon Natkins <jo...@gmail.com>
Authored: Wed Feb 7 08:59:44 2018 -0800
Committer: GitHub <no...@github.com>
Committed: Wed Feb 7 08:59:44 2018 -0800

----------------------------------------------------------------------
 spot-setup/odm/event.avsc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/e48c5f4d/spot-setup/odm/event.avsc
----------------------------------------------------------------------
diff --git a/spot-setup/odm/event.avsc b/spot-setup/odm/event.avsc
index 00047e5..7765d67 100644
--- a/spot-setup/odm/event.avsc
+++ b/spot-setup/odm/event.avsc
@@ -41,7 +41,7 @@
         {"name":"sensitivity", "type":["null","string"],"doc":"Sensitivity label", "default": null},
         {"name":"count", "type":["null","int"],"doc":"Generic count", "default": null},
         {"name":"company", "type":["null","string"],"doc":"Company label", "default": null},
-        {"name":"additional_attrs","type":["null","string"],"default":null, "doc":"Additional attributes of the event"},
+        {"name":"additional_attrs","type":["null", {"type": "map", "values": "string"}],"default":null, "doc":"Additional attributes of the event"},
         {"name":"totrust", "type":["null","string"],"doc":"TBD", "default": null},
         {"name":"fromtrust", "type":["null","string"],"doc":"TBD", "default": null},
         {"name":"rule", "type":["null","string"],"doc":"TBD", "default": null},
@@ -263,4 +263,4 @@
         {"name":"objectname", "type":["null","string"],"doc":"TBD", "default": null}
      ],
      "doc": "A view schema for storing Apache Spot Event data."
-  }
\ No newline at end of file
+  }