You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ahmet Altay (JIRA)" <ji...@apache.org> on 2017/04/17 16:18:41 UTC

[jira] [Resolved] (BEAM-1947) DisplayData raises exception when passed unicode string

     [ https://issues.apache.org/jira/browse/BEAM-1947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ahmet Altay resolved BEAM-1947.
-------------------------------
       Resolution: Fixed
    Fix Version/s: First stable release

> 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: Pablo Estrada
>            Priority: Trivial
>              Labels: newbie
>             Fix For: First stable release
>
>
> 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)