Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7123771
D8925.id32142.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
909 B
Subscribers
None
D8925.id32142.diff
View Options
diff --git a/swh/dataset/luigi.py b/swh/dataset/luigi.py
--- a/swh/dataset/luigi.py
+++ b/swh/dataset/luigi.py
@@ -607,10 +607,15 @@
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
- if not self.s3_export_path.replace("-", "").endswith(f"/{self.athena_db_name}"):
+ if not self.s3_export_path.replace("-", "").endswith(
+ "/" + self.athena_db_name.split("_", 1)[1]
+ ):
raise ValueError(
f"S3 export path ({self.s3_export_path}) does not match "
- f"Athena database name ({self.athena_db_name})"
+ f"Athena database name ({self.athena_db_name})."
+ f"They should use these formats: "
+ f"'s3://<whatever>/YYYY-MM-DD[_<flavor>]/' "
+ f"and '<prefix>_YYYYMMDD[_<flavor>]"
)
def requires(self) -> List[luigi.Task]:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 20 2024, 12:33 AM (11 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3213821
Attached To
D8925: luigi.CreateAthena: Fix validation of DB name
Event Timeline
Log In to Comment