You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/06/25 00:11:23 UTC

[GitHub] [beam] TheNeuralBit commented on a change in pull request #15073: [WIP][BEAM-12529] Allow converting arbitrary dtypes back to Python types by shunting typehint to Any

TheNeuralBit commented on a change in pull request #15073:
URL: https://github.com/apache/beam/pull/15073#discussion_r658365970



##########
File path: sdks/python/apache_beam/dataframe/schemas.py
##########
@@ -305,7 +305,7 @@ def _dtype_to_fieldtype(dtype):
   elif dtype.kind == 'S':
     return bytes
   else:
-    raise TypeError("Unsupported dtype in proxy: '%s'" % dtype)
+    return Any

Review comment:
       Note the execution time unbatching code "just works" because it always iterates over the Series' values. The only thing blocking this was finding an appropriate type mapping.




-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org