You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ben Kietzman (Jira)" <ji...@apache.org> on 2021/01/04 17:29:00 UTC
[jira] [Updated] (ARROW-9543) [C++] Simplify parsing/conversion
utilities
[ 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: 3.0.0)
4.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: 4.0.0
>
> Time Spent: 1h 40m
> 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)