[
https://issues.apache.org/jira/browse/BEAM-14314?focusedWorklogId=762578&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-762578
]
ASF GitHub Bot logged work on BEAM-14314:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 26/Apr/22 21:55
Start Date: 26/Apr/22 21:55
Worklog Time Spent: 10m
Work Description: Abacn commented on code in PR #17380:
URL: https://github.com/apache/beam/pull/17380#discussion_r859176973
##########
sdks/python/apache_beam/io/hadoopfilesystem.py:
##########
@@ -399,6 +418,26 @@ def checksum(self, url):
file_checksum[_FILE_CHECKSUM_BYTES],
)
+ def metadata(self, url):
+ """Fetch metadata fields of a file on the FileSystem.
+
+ Args:
+ url: string url of a file.
+
+ Returns:
+ :class:`~apache_beam.io.filesystem.FileMetadata`.
+ Note: last_updated field is not supported yet.
Review Comment:
It is supported since revision of
[01f639f](https://github.com/apache/beam/pull/17380/commits/01f639f67a273f1e35c1207ccfdea59eba0a4551).
Outdated comments. my fault.
Issue Time Tracking
-------------------
Worklog Id: (was: 762578)
Time Spent: 2h 40m (was: 2.5h)
> Add last_updated field in filesystem.FileMetaData
> -------------------------------------------------
>
> Key: BEAM-14314
> URL: https://issues.apache.org/jira/browse/BEAM-14314
> Project: Beam
> Issue Type: New Feature
> Components: io-py-common
> Reporter: Yi Hu
> Assignee: Yi Hu
> Priority: P2
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> This will be the python counterpart of BEAM-5910
> Per python naming convention, the field will be named as
> "last_updated_in_seconds".
--
This message was sent by Atlassian Jira
(v8.20.7#820007)