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

FileSystems ReadableFileCoder should support Metadata#lastModifiedMillis()

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 2.34.0
    • sdk-java-core
    • None

    Description

      Currently, there is a separated coder for Metadata which cares about `Metadata#lastModifiedMillis()`.
      The issue is that the `ReadableFileCoder` always uses the default `Metadata` coder.
      We need to create a similar coder for `ReadableFileCoder`: ``ReadableFileCoderV2` which just use the corresponding `MetadataCoderV2`.

      Without doing so `lastModifiedMillis` will remain zero.

      There is also no way to create custom coder in our side since `FileIO.ReadableFile` has no public method to initiate new instance of it.

      Attachments

        Activity

          People

            Unassigned Unassigned
            brachi_packter Brachi Packter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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