yuqi1129 commented on code in PR #8252:
URL: https://github.com/apache/gravitino/pull/8252#discussion_r2293581813
##########
common/src/main/java/org/apache/gravitino/dto/file/FileInfoDTO.java:
##########
@@ -162,7 +162,8 @@ public FileInfoDTO.FileInfoDTOBuilder path(String path) {
public FileInfoDTO build() {
Preconditions.checkArgument(StringUtils.isNotBlank(name), "name cannot
be null or empty");
Preconditions.checkArgument(size >= 0, "size cannot be negative");
- Preconditions.checkArgument(lastModified > 0, "lastModified must be a
valid timestamp");
+ // Azure Blob Storage uses a timestamp in milliseconds, it can be 0 for
newly created files.
+ Preconditions.checkArgument(lastModified >= 0, "lastModified must be a
valid timestamp");
Review Comment:
All in all, it can be 0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]