mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-27 10:04:52 +00:00
Fix(ingest/bigquery): fix extracting comments from complex types (#8950)
Co-authored-by: Mayuri Nehate <33225191+mayurinehate@users.noreply.github.com>
This commit is contained in:
parent
1ac831f07a
commit
cf617d77f3
@ -1050,8 +1050,14 @@ class BigqueryV2Source(StatefulIngestionSourceBase, TestableSource):
|
|||||||
for idx, field in enumerate(schema_fields):
|
for idx, field in enumerate(schema_fields):
|
||||||
# Remove all the [version=2.0].[type=struct]. tags to get the field path
|
# Remove all the [version=2.0].[type=struct]. tags to get the field path
|
||||||
if (
|
if (
|
||||||
re.sub(r"\[.*?\]\.", "", field.fieldPath, 0, re.MULTILINE)
|
re.sub(
|
||||||
== col.field_path
|
r"\[.*?\]\.",
|
||||||
|
"",
|
||||||
|
field.fieldPath.lower(),
|
||||||
|
0,
|
||||||
|
re.MULTILINE,
|
||||||
|
)
|
||||||
|
== col.field_path.lower()
|
||||||
):
|
):
|
||||||
field.description = col.comment
|
field.description = col.comment
|
||||||
schema_fields[idx] = field
|
schema_fields[idx] = field
|
||||||
|
Loading…
x
Reference in New Issue
Block a user