Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-1716

Using Instant type in TableRow should map to the right output format for TIMESTAMP in BigQuery

Details

    Description

      When using an Instant type in a TableRow, and a TIMESTAMP field in the TableFieldSchema, one has to convert the Instant via

      instant.getMillis() / 1000

      to match the BigQuery TIMESTAMP that is "A positive or negative decimal number. A positive number specifies the number of seconds since the epoch".

      In the Dataflow 1.9 SDK this conversion is done automatically.

      Attachments

        Activity

          People

            Unassigned Unassigned
            james-woods Tobias Kaymak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: