You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Andrew Pilloud (Jira)" <ji...@apache.org> on 2021/05/11 20:26:00 UTC

[jira] [Updated] (BEAM-10473) RowJson should support DATETIME

     [ https://issues.apache.org/jira/browse/BEAM-10473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Pilloud updated BEAM-10473:
----------------------------------
    Fix Version/s: 2.28.0
         Assignee: Robin Qiu
       Resolution: Fixed
           Status: Resolved  (was: Open)

Looks like support for ISO 8601 times were added in [https://github.com/apache/beam/pull/13751]

> RowJson should support DATETIME
> -------------------------------
>
>                 Key: BEAM-10473
>                 URL: https://issues.apache.org/jira/browse/BEAM-10473
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-core
>            Reporter: Jacob Ferriero
>            Assignee: Robin Qiu
>            Priority: P3
>              Labels: Clarified
>             Fix For: 2.28.0
>
>
> Add support for DATETIME types to support adding an 
>  interface to JsonToRow that accepts a joda DateTimeFormatter for parsing DateTime JSON string fields or specifies a behavior for treating numbers as unix timestamps.
> This is crucial for SQL pipelines processing streaming data with timestamps.
> The interface might look something lik this:
> {code:java}
> /** For parsing JSON string fields containing dates to DATETIME in the target schema */
> JsonToRow::withDateTimeFormatter(org.joda.time.format.DateTimeFormatter)
> /** For parsing JSON number fields containing milliseconds since UNIX epoch that are listed as DATETIME in the target schema*/
> JsonToRow::usingUnixMillis()
> /** For parsing JSON number fields containing seconds since UNIX epoch that are listed as DATETIME in the target schema*/
> JsonToRow::usingUnixSeconds()
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)