[
https://issues.apache.org/jira/browse/FLINK-4795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chesnay Schepler closed FLINK-4795.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
Fixed in af96c0776ea1a48838f1d452efb42c03caa64251
> 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
> Fix For: 1.2.0
>
>
> 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)