liferoad commented on code in PR #36121:
URL: https://github.com/apache/beam/pull/36121#discussion_r2388269326


##########
sdks/python/apache_beam/typehints/schemas.py:
##########
@@ -552,8 +552,14 @@ def typing_from_runner_api(
       if fieldtype_proto.logical_type.urn == PYTHON_ANY_URN:
         return Any
       else:
-        return LogicalType.from_runner_api(
-            fieldtype_proto.logical_type).language_type()
+        logical_type_instance = LogicalType.from_runner_api(
+            fieldtype_proto.logical_type)
+        # Special case for GeographyType: return the logical type class itself

Review Comment:
   I agree with you. I think they all should return 
`type(logical_type_instance)`. However, some tests failed when I did that. I do 
not fully understand why. So I added this special case just for 
`GeographyType`. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to