You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/11/06 00:51:00 UTC

[jira] [Work logged] (BEAM-5879) TFRecordio not Py3 compatible

     [ https://issues.apache.org/jira/browse/BEAM-5879?focusedWorklogId=162817&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-162817 ]

ASF GitHub Bot logged work on BEAM-5879:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Nov/18 00:50
            Start Date: 06/Nov/18 00:50
    Worklog Time Spent: 10m 
      Work Description: tvalentyn commented on a change in pull request #6953: [BEAM-5879 ] Make write_record() in tfrecordio.py py3 compatible
URL: https://github.com/apache/beam/pull/6953#discussion_r230968042
 
 

 ##########
 File path: sdks/python/apache_beam/io/tfrecordio.py
 ##########
 @@ -78,7 +78,10 @@ def _masked_crc32c(cls, value, crc32c_fn=_default_crc32c_fn):
       Masked crc32c checksum.
     """
 
-    crc = crc32c_fn(value)
+    if isinstance(value, bytes):
 
 Review comment:
   Would anything break if we always follow the `else` branch? If yes, why? 
   Also, last letter in `crc32c_fu` is a typo?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


Issue Time Tracking
-------------------

            Worklog Id:     (was: 162817)
            Time Spent: 10m
    Remaining Estimate: 0h

> TFRecordio not Py3 compatible
> -----------------------------
>
>                 Key: BEAM-5879
>                 URL: https://issues.apache.org/jira/browse/BEAM-5879
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-py-core
>         Environment: python 3.5
>            Reporter: Ruoyu Liu
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Error when trying to write to file. Initial issue in line 103 in io/tfrecordio.py, after making the content to bytes, there will be segmentation fault when reading.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)