You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jeroen van Straten (Jira)" <ji...@apache.org> on 2022/07/07 10:11:00 UTC
[jira] [Commented] (ARROW-15537) [C++] Decide how we want to handle time zone strings in Substrait
[ https://issues.apache.org/jira/browse/ARROW-15537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17563665#comment-17563665 ]
Jeroen van Straten commented on ARROW-15537:
--------------------------------------------
I think the most reasonable thing to do here would be to make an extension type that includes a timezone string parameter, as made possible by [https://github.com/substrait-io/substrait/pull/196]. I advocated for parameterized type variations there as well for this reason, so we could just expose something like a with_timezone<str> variation on timestamp_tz to get e.g. timestamp[with_timezone<"UTC+1">]. IMO that would have made compatibility between consumers way easier, since all functions that can use the base variation of timestamp_tz would automatically support Arrow's variations that way. However, that change was rejected.
> [C++] Decide how we want to handle time zone strings in Substrait
> -----------------------------------------------------------------
>
> Key: ARROW-15537
> URL: https://issues.apache.org/jira/browse/ARROW-15537
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++
> Reporter: Weston Pace
> Priority: Major
> Labels: substrait
>
> Substrait timestamp_with_tz type does not include the timezone string as a type parameter. This may not be an issue. Substrait functions that care about the timezone of a column (e.g. strftime) will include the time zone string as an argument. So for purely consumption purposes we shouldn't have any Substrait function / operation that depends on this timezone metadata.
> However, it may be an issue for export. I'm creating this JIRA as a placeholder for someone to think the problem through more fully and decide if we need to do anything.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)