Skip to content

Commit 9ff2bbd

Browse files
committed
urns
1 parent b399fc5 commit 9ff2bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdks/python/apache_beam/typehints/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def typing_from_runner_api(
556556
fieldtype_proto.logical_type)
557557
# Special case for GeographyType: return the logical type class itself
558558
# instead of the language_type to maintain semantic meaning
559-
if fieldtype_proto.logical_type.urn == "beam:logical_type:geography:v1":
559+
if fieldtype_proto.logical_type.urn == GeographyType.urn():
560560
return type(logical_type_instance)
561561
else:
562562
return logical_type_instance.language_type()

0 commit comments

Comments
 (0)