[
https://issues.apache.org/jira/browse/FLINK-4795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler reassigned FLINK-4795:
---------------------------------------
Assignee: Chesnay Schepler
> CsvStringify crashes in case of tuple in tuple, t.e. ("a", True, (1,5))
> -----------------------------------------------------------------------
>
> Key: FLINK-4795
> URL: https://issues.apache.org/jira/browse/FLINK-4795
> Project: Flink
> Issue Type: Bug
> Components: Python API
> Reporter: Yakov Goldberg
> Assignee: Chesnay Schepler
>
> CsvStringify crashes in case of tuple in tuple, t.e. ("a", True, (1,5))
> Looks like, mistyping in CsvStringify._map()
> {code}
> def _map(self, value):
> if isinstance(value, (tuple, list)):
> return "(" + b", ".join([self.map(x) for x in value]) + ")"
> else:
> return str(value)
> {code}
> self._map() should be called
> But this will affect write_csv() and read_csv().
> write_csv() will work automatically
> and read_csv() should be implemented to be able to read Tuple type.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)