[
https://issues.apache.org/jira/browse/BEAM-10473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacob Ferriero updated BEAM-10473:
----------------------------------
Summary: RowJson should support DATETIME (was: JsonToRow should support
DATETIME)
> 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
> Priority: P2
>
> Add support for DATETIME types by 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.
> 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)