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


##########
amber/src/main/python/pytexera/storage/dataset_file_document.py:
##########
@@ -56,20 +58,23 @@ 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"
         """
         parts = file_path.strip("/").split("/")
-        if len(parts) < 4:
+
+        if len(parts) < 5 or parts[0] != ResourceType.DATASETS.value:

Review Comment:
   Done — now does ResourceType(parts[0]) in try/except (raises on unknown), 
same as VFSURIFactory. Any valid resource type is accepted, so it extends 
automatically.



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