You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Casey Stella (JIRA)" <ji...@apache.org> on 2017/06/27 09:13:01 UTC
[jira] [Updated] (METRON-995) Temporary variables in stellar
enrichments which are maps do not function as expected
[ https://issues.apache.org/jira/browse/METRON-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Casey Stella updated METRON-995:
--------------------------------
Fix Version/s: 0.4.0
> Temporary variables in stellar enrichments which are maps do not function as expected
> -------------------------------------------------------------------------------------
>
> Key: METRON-995
> URL: https://issues.apache.org/jira/browse/METRON-995
> Project: Metron
> Issue Type: Bug
> Reporter: Casey Stella
> Assignee: Casey Stella
> Fix For: 0.4.0
>
>
> If you construct a variable which returns a map in a stellar enrichment, it is not able to be used in statements afterwards due to the fact that we explode the map.
> For instance:
> {code}
> foo := { 'foo' : 7}
> foo_num := MAP_GET('foo', foo)
> foo := null
> {code}
> would yield the following fields:
> * {code}foo.foo == 7 {code}
> * {code}foo_num := null {code}
> What we would prefer is just:
> * {code}foo_num == 7{code}
> As a policy, we should only explode the fields which are maps that are around at the end of the enrichments. Also, the map itself should be available to be used in downstream enrichments.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)