Fix build issues - Markdown field (#5092)

This commit is contained in:
Sriharsha Chintalapani 2022-05-22 21:53:15 -07:00 committed by GitHub
parent eab5bf9a0e
commit 474ed1ca17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ class MetadataRestSink(Sink[Entity]):
)
if db_schema_and_table.table.description is not None:
db_schema_and_table.table.description = (
db_schema_and_table.table.description.strip()
db_schema_and_table.table.description.__root__.strip()
)
table_request = CreateTableRequest(
@ -190,7 +190,7 @@ class MetadataRestSink(Sink[Entity]):
if db_schema_and_table.location is not None:
if db_schema_and_table.location.description is not None:
db_schema_and_table.location.description = (
db_schema_and_table.location.description.strip()
db_schema_and_table.location.description.__root__.strip()
)
location_request = CreateLocationRequest(
name=db_schema_and_table.location.name,