beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brent Walter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BEAM-1947) DisplayData raises exception when passed unicode string
Date Wed, 12 Apr 2017 13:14:41 GMT
Brent Walter created BEAM-1947:
----------------------------------

             Summary: DisplayData raises exception when passed unicode string
                 Key: BEAM-1947
                 URL: https://issues.apache.org/jira/browse/BEAM-1947
             Project: Beam
          Issue Type: Bug
          Components: sdk-py
    Affects Versions: 0.6.0
         Environment: Python 2.7.13
            Reporter: Brent Walter
            Assignee: Ahmet Altay
            Priority: Trivial


Passing a unicode string as file_pattern to apache_beam.io.ReadFromText generates a ValueError:
'Invalid DisplayDataItem. Value {} is of an unsupported type.'

Cause:
In apache_beam/transforms/display.py:
typeDict in DisplayDataItem doesn't contain an entry for unicode
_get_value_type(u'unicode') == None
is_valid() raises ValueError



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message