mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-01 11:19:05 +00:00
fix: don't set None default (#4422)
This commit is contained in:
parent
f557b2c1b3
commit
d4d1635f2b
@ -357,7 +357,7 @@ class AvroToMceSchemaConverter:
|
||||
last_field_schema = self._fields_stack[-1]
|
||||
# Generate the custom-description for the field.
|
||||
description = last_field_schema.doc if last_field_schema.doc else None
|
||||
if last_field_schema.has_default:
|
||||
if last_field_schema.has_default and last_field_schema.default is not None:
|
||||
description = (
|
||||
f"{description}\nField default value: {last_field_schema.default}"
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user