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

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

                Author: ASF GitHub Bot
            Created on: 02/Jul/18 23:23
            Start Date: 02/Jul/18 23:23
    Worklog Time Spent: 10m 
      Work Description: charlesccychen commented on issue #5496: [BEAM-2810] 
use fastavro in Avro IO
URL: https://github.com/apache/beam/pull/5496#issuecomment-401966713
 
 
   This change fails the isort lint test:
   
   ```
   Running isort for module apache_beam  gen_protos.py  setup.py  
test_config.py:
   ERROR: /home/git/beam/sdks/python/apache_beam/io/avroio.py Imports are 
incorrectly sorted.
   --- /home/git/beam/sdks/python/apache_beam/io/avroio.py:before       
2018-07-02 12:57:38.472207
   +++ /home/git/beam/sdks/python/apache_beam/io/avroio.py:after        
2018-07-02 16:20:40.310009
   @@ -51,8 +51,6 @@
    from avro import io as avroio
    from avro import datafile
    from avro import schema
   -from fastavro.read import block_reader
   -from fastavro.write import Writer
    
    import apache_beam as beam
    from apache_beam.io import filebasedsink
   @@ -61,6 +59,8 @@
    from apache_beam.io.filesystem import CompressionTypes
    from apache_beam.io.iobase import Read
    from apache_beam.transforms import PTransform
   +from fastavro.read import block_reader
   +from fastavro.write import Writer
    
    __all__ = ['ReadFromAvro', 'ReadAllFromAvro', 'WriteToAvro']
    
   Command exited with non-zero status 1
   ```

----------------------------------------------------------------
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:
[email protected]


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

    Worklog Id:     (was: 118485)
    Time Spent: 5h 40m  (was: 5.5h)

> Consider a faster Avro library in Python
> ----------------------------------------
>
>                 Key: BEAM-2810
>                 URL: https://issues.apache.org/jira/browse/BEAM-2810
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Eugene Kirpichov
>            Assignee: Ryan Williams
>            Priority: Major
>          Time Spent: 5h 40m
>  Remaining Estimate: 0h
>
> https://stackoverflow.com/questions/45870789/bottleneck-on-data-source
> Seems like this job is reading Avro files (exported by BigQuery) at about 2 
> MB/s.
> We use the standard Python "avro" library which is apparently known to be 
> very slow (10x+ slower than Java) 
> http://apache-avro.679487.n3.nabble.com/Avro-decode-very-slow-in-Python-td4034422.html,
>  and there are alternatives e.g. https://pypi.python.org/pypi/fastavro/



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

Reply via email to