You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is becoming increasingly common for certain data types to have inconsistent top level keys. This is also a familiar scenario during external API level changes where certain keys may or may not be present in data. An example of this would be:
type 1: {"foo": 1, "bar": 2}
changing to
type 2: {"foo": 1, "bar": 2, "baz": 3}
To support this behavior, a new option will be added to the log declaration in conf/logs.json.
Desired Outcome
Create a new setting in the log declaration called configuration, meant for various parser options:
setting
parser(s)
type
description
optional_top_level_keys
json
Map
Key/value pairs of optional fields with their type. If an incoming record does not have the key, a default value will be provided based on the declared type.
jsonpath
json
String
The JSONPath expression used to identify and parse nested records.
envelope_keys
json
Map
When using nested records, there may be top level keys we want to include in the record. This setting adds key/value pairs to a key called envelope in a record.
Background
It is becoming increasingly common for certain data types to have inconsistent top level keys. This is also a familiar scenario during external API level changes where certain keys may or may not be present in data. An example of this would be:
type 1:
{"foo": 1, "bar": 2}
changing to
type 2:
{"foo": 1, "bar": 2, "baz": 3}
To support this behavior, a new option will be added to the
log
declaration inconf/logs.json
.Desired Outcome
Create a new setting in the
log
declaration calledconfiguration
, meant for various parser options:envelope
in a record.Example
The text was updated successfully, but these errors were encountered: