mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-16 04:28:01 +00:00
only add "key:" prefix to fields[] but not to combined_schema (#360)
The combined_schema.keySchema will not need the "key:" prefix for Espresso
This commit is contained in:
parent
1efa4eef16
commit
eee2fbf230
@ -77,8 +77,9 @@ class EspressoTransform:
|
||||
key_list = json.loads(doc['key'])
|
||||
fields = []
|
||||
for key_field in key_list:
|
||||
key_field['name'] = 'key:' + key_field['name']
|
||||
fields.extend(key_field)
|
||||
key_field_with_prefix = key_field.copy()
|
||||
key_field_with_prefix["name"] = 'key:' + key_field_with_prefix["name"]
|
||||
fields.append(key_field_with_prefix)
|
||||
|
||||
properties = {}
|
||||
for p_key in content.keys():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user