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

Timestamp value conversion in Cloud Datastore connector is wrong

Details

    • Bug
    • Status: Open
    • P2
    • Resolution: Unresolved
    • None
    • None
    • io-java-gcp
    • None

    Description

      Code in org.apache.beam.sdk.io.gcp.datastore.EntityToRow class:

      com.google.protobuf.Timestamp time = val.getTimestampValue();
      long millis = time.getSeconds() * 1000 + time.getNanos() / 1000;
      return Instant.ofEpochMilli(millis).toDateTime();

      1 millisecond = 1,000,000 nanoseconds

      Attachments

        Issue Links

          Activity

            People

              yixiaoshen Yixiao Shen
              yixiaoshen Yixiao Shen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m