You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Output artifact settings for persisted datasets."""
10
14
11
15
path_suffix: str=Field(..., description="Suffix for the output data file path, which will be combined with the data name and version to create the full path.")
12
-
format: Literal["parquet"] =Field("parquet", description="Format to save the interim data.")
13
-
compression: Literal['snappy', 'gzip', 'brotli', 'lz4', 'zstd'] |None=Field(None, description="Compression method to use when saving the data (default: 'snappy').")
16
+
format: Literal["parquet"] =Field("parquet", description="Format to save the interim data (default: 'parquet').")
17
+
compression: Literal['snappy', 'gzip', 'brotli', 'lz4', 'zstd'] |None=Field("snappy", description="Compression method to use when saving the data (default: 'snappy').")
14
18
15
19
classDataInfo(BaseModel):
16
20
"""Dataset identity and output target metadata."""
17
21
18
22
name: str=Field(..., description="Name of the data being processed.")
19
23
version: str=Field(..., description="Version of the interim data being created.")
20
24
output: Output
25
+
26
+
@field_validator("version", mode="before")
27
+
@classmethod
28
+
defvalidate_version_format(cls, v):
29
+
"""Ensure dataset version follows ``v{number}`` convention.
msg=f"Version must be in format 'v{{number}}', e.g. 'v1', 'v2', etc. Got '{v}'."
61
+
logger.error(msg)
62
+
raiseConfigError(msg)
63
+
returnv
64
+
47
65
@field_validator("merge_key", mode="before")
48
66
defensure_merge_key_list(cls, v):
49
67
"""Always convert merge_key to a list internally."""
@@ -101,7 +119,7 @@ class StorageConfig(BaseModel):
101
119
"""Snapshot storage format and compression settings."""
102
120
103
121
format: Literal["parquet"]
104
-
compression: str|None="snappy"
122
+
compression: Literal['snappy', 'gzip', 'brotli', 'lz4', 'zstd'] |None=Field("snappy", description="Compression method to use when saving the data (default: 'snappy').")
105
123
106
124
classLineageConfig(BaseModel):
107
125
"""Lineage metadata for feature registry config provenance."""
0 commit comments