[ https://issues.apache.org/jira/browse/ARROW-9543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Kietzman updated ARROW-9543: -------------------------------- Fix Version/s: (was: 5.0.0) 6.0.0 > [C++] Simplify parsing/conversion utilities > ------------------------------------------- > > Key: ARROW-9543 > URL: https://issues.apache.org/jira/browse/ARROW-9543 > Project: Apache Arrow > Issue Type: Improvement > Components: C++ > Affects Versions: 0.17.1 > Reporter: Ben Kietzman > Assignee: Ben Kietzman > Priority: Minor > Labels: pull-request-available > Fix For: 6.0.0 > > Time Spent: 2h > Remaining Estimate: 0h > > Various improvement ideas extracted from > https://github.com/apache/arrow/pull/7793 , see > https://github.com/apache/arrow/commit/740d8132d3220b0bcddde138bd1ab70030e227fd > - provide a convenience function FormatValue() to complement ParseValue() > - parameterize both parsing and formatting with the corresponding DataType > subclass (for example a formatting or parsing a timestamp requires a TimeUnit > and this can be derived from a TimestampType) > - rename StringConverter and StringFormatter to ParseValueTraits and > FormatValueTraits, to emphasize the convenience functions as the preferred > interface > - ParseValue should accept a string_view for simplicity, and an overload > should be provided which returns an optional<> -- This message was sent by Atlassian Jira (v8.3.4#803005)