Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Dec 7, 2022
1 parent cd74473 commit 98e35d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metadata-ingestion/src/datahub/utilities/urn_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

# NOTE: Frontend relies on encoding these three characters. Specifically, we decode and encode schema fields for column level lineage.
# If this changes, make appropriate changes to datahub-web-react/src/app/lineage/utils/columnLineageUtils.ts
RESERVED_CHARS = {",", "(", ")", "%"}
RESERVED_CHARS = {",", "(", ")"}
RESERVED_CHARS_EXTENDED = RESERVED_CHARS.union({"%"})


class UrnEncoder:
Expand All @@ -22,4 +23,4 @@ def encode_char(c: str) -> str:

@staticmethod
def contains_reserved_char(value: str) -> bool:
return bool(set(value).intersection(RESERVED_CHARS))
return bool(set(value).intersection(RESERVED_CHARS_EXTENDED))

0 comments on commit 98e35d3

Please sign in to comment.