tanishqgandhi1908 commented on code in PR #6502:
URL: https://github.com/apache/texera/pull/6502#discussion_r3640466665


##########
amber/src/main/python/pytexera/storage/dataset_file_document.py:
##########
@@ -56,20 +61,28 @@ def __init__(self, file_path: str):
         Parses the file path into dataset metadata.
 
         :param file_path:
-           Expected format - 
"/ownerEmail/datasetName/versionName/fileRelativePath"
-           Example: 
"/[email protected]/twitterDataset/v1/california/irvine/tw1.csv"
+           Expected format -
+             "/datasets/ownerEmail/datasetName/versionName/fileRelativePath"
+           Example:
+             "/datasets/[email protected]/twitterDataset/v1/california/tw1.csv"
+           The leading "datasets" resource-type segment is required; a path
+           without it is rejected. Mirrors FileResolver on the backend.
         """
         parts = file_path.strip("/").split("/")
-        if len(parts) < 4:
+
+        # The datasets prefix is required and identifies the path as a dataset

Review Comment:
   Removed the repeated "prefix is required" comments



-- 
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]

Reply via email to