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 2022/01/04 19:10:00 UTC

[jira] [Work logged] (BEAM-12391) WriteToAvro fails if fastavro loads its python implementation of writer

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

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

                Author: ASF GitHub Bot
            Created on: 04/Jan/22 19:09
            Start Date: 04/Jan/22 19:09
    Worklog Time Spent: 10m 
      Work Description: chamikaramj commented on pull request #16246:
URL: https://github.com/apache/beam/pull/16246#issuecomment-1005094927


   Retest this please


-- 
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: github-unsubscribe@beam.apache.org

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


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

    Worklog Id:     (was: 703484)
    Time Spent: 2h  (was: 1h 50m)

> WriteToAvro fails if fastavro loads its python implementation of writer
> -----------------------------------------------------------------------
>
>                 Key: BEAM-12391
>                 URL: https://issues.apache.org/jira/browse/BEAM-12391
>             Project: Beam
>          Issue Type: Bug
>          Components: io-py-avro
>    Affects Versions: 2.25.0, 2.26.0, 2.27.0, 2.28.0, 2.29.0
>            Reporter: Chris Chandler
>            Assignee: John Casey
>            Priority: P3
>              Labels: starter
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> It's possible for fastavro to fail to correctly load its cython implementation of the Writer class in which case it will silently fall back to a pure python implementation. If this happens there's no outward indication, but line 621 in io/avroio.py will fail because writer.fo is only present on the cython implementation.
> To reproduce you can modify fastavro's write.py to only use its fallback:
> {code}
> #from . import _write
> from . import _write_py as _write
> {code}
> And then run a workflow that sinks to WriteToAvro(use_fastavro=True).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)