Skip to content

Commit c07a54a

Browse files
committed
Bump deprecation version from 0.23 to 0.24
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
1 parent a06700d commit c07a54a

16 files changed

Lines changed: 44 additions & 44 deletions

File tree

sdk/python/feast/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def data_source_describe(ctx: click.Context, name: str):
196196

197197
warnings.warn(
198198
"Describing data sources will only work properly if all data sources have names or table names specified. "
199-
"Starting Feast 0.23, data source unique names will be required to encourage data source discovery.",
199+
"Starting Feast 0.24, data source unique names will be required to encourage data source discovery.",
200200
RuntimeWarning,
201201
)
202202
print(
@@ -223,7 +223,7 @@ def data_source_list(ctx: click.Context):
223223

224224
warnings.warn(
225225
"Listing data sources will only work properly if all data sources have names or table names specified. "
226-
"Starting Feast 0.23, data source unique names will be required to encourage data source discovery",
226+
"Starting Feast 0.24, data source unique names will be required to encourage data source discovery",
227227
RuntimeWarning,
228228
)
229229
print(tabulate(table, headers=["NAME", "CLASS"], tablefmt="plain"))

sdk/python/feast/data_source.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def __init__(
239239
warnings.warn(
240240
(
241241
"Names for data sources need to be supplied. "
242-
"Data sources without names will not be supported after Feast 0.23."
242+
"Data sources without names will not be supported after Feast 0.24."
243243
),
244244
UserWarning,
245245
)
@@ -248,7 +248,7 @@ def __init__(
248248
warnings.warn(
249249
(
250250
"The argument 'event_timestamp_column' is being deprecated. Please use 'timestamp_field' instead. "
251-
"instead. Feast 0.23 and onwards will not support the argument 'event_timestamp_column' for datasources."
251+
"instead. Feast 0.24 and onwards will not support the argument 'event_timestamp_column' for datasources."
252252
),
253253
DeprecationWarning,
254254
)
@@ -431,7 +431,7 @@ def __init__(
431431
warnings.warn(
432432
(
433433
"Kafka parameters should be specified as a keyword argument instead of a positional arg."
434-
"Feast 0.23+ will not support positional arguments to construct Kafka sources"
434+
"Feast 0.24+ will not support positional arguments to construct Kafka sources"
435435
),
436436
DeprecationWarning,
437437
)
@@ -592,7 +592,7 @@ def __init__(
592592
warnings.warn(
593593
(
594594
"Request source parameters should be specified as a keyword argument instead of a positional arg."
595-
"Feast 0.23+ will not support positional arguments to construct request sources"
595+
"Feast 0.24+ will not support positional arguments to construct request sources"
596596
),
597597
DeprecationWarning,
598598
)
@@ -611,7 +611,7 @@ def __init__(
611611
raise ValueError("Schema needs to be provided for Request Source")
612612
if isinstance(_schema, Dict):
613613
warnings.warn(
614-
"Schema in RequestSource is changing type. The schema data type Dict[str, ValueType] is being deprecated in Feast 0.23. "
614+
"Schema in RequestSource is changing type. The schema data type Dict[str, ValueType] is being deprecated in Feast 0.24. "
615615
"Please use List[Field] instead for the schema",
616616
DeprecationWarning,
617617
)
@@ -663,7 +663,7 @@ def from_proto(data_source: DataSourceProto):
663663

664664
if deprecated_schema and not schema_pb:
665665
warnings.warn(
666-
"Schema in RequestSource is changing type. The schema data type Dict[str, ValueType] is being deprecated in Feast 0.23. "
666+
"Schema in RequestSource is changing type. The schema data type Dict[str, ValueType] is being deprecated in Feast 0.24. "
667667
"Please use List[Field] instead for the schema",
668668
DeprecationWarning,
669669
)
@@ -724,7 +724,7 @@ def source_datatype_to_feast_value_type() -> Callable[[str], ValueType]:
724724
class RequestDataSource(RequestSource):
725725
def __init__(self, *args, **kwargs):
726726
warnings.warn(
727-
"The 'RequestDataSource' class is deprecated and was renamed to RequestSource. Please use RequestSource instead. This class name will be removed in Feast 0.23.",
727+
"The 'RequestDataSource' class is deprecated and was renamed to RequestSource. Please use RequestSource instead. This class name will be removed in Feast 0.24.",
728728
DeprecationWarning,
729729
)
730730
super().__init__(*args, **kwargs)
@@ -803,7 +803,7 @@ def __init__(
803803
warnings.warn(
804804
(
805805
"Kinesis parameters should be specified as a keyword argument instead of a positional arg."
806-
"Feast 0.23+ will not support positional arguments to construct kinesis sources"
806+
"Feast 0.24+ will not support positional arguments to construct kinesis sources"
807807
),
808808
DeprecationWarning,
809809
)
@@ -922,7 +922,7 @@ def __init__(
922922
warnings.warn(
923923
(
924924
"Push source parameters should be specified as a keyword argument instead of a positional arg."
925-
"Feast 0.23+ will not support positional arguments to construct push sources"
925+
"Feast 0.24+ will not support positional arguments to construct push sources"
926926
),
927927
DeprecationWarning,
928928
)

sdk/python/feast/diff/registry_diff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def to_string(self):
6767
if feast_object_diff.transition_type == TransitionType.UNCHANGED:
6868
continue
6969
if feast_object_diff.feast_object_type == FeastObjectType.DATA_SOURCE:
70-
# TODO(adchia): Print statements out starting in Feast 0.23
70+
# TODO(adchia): Print statements out starting in Feast 0.24
7171
continue
7272
action, color = message_action_map[feast_object_diff.transition_type]
7373
log_string += f"{action} {feast_object_diff.feast_object_type.value} {Style.BRIGHT + color}{feast_object_diff.name}{Style.RESET_ALL}\n"

sdk/python/feast/entity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(
9090
warnings.warn(
9191
(
9292
"Entity name should be specified as a keyword argument instead of a positional arg."
93-
"Feast 0.23+ will not support positional arguments to construct Entities"
93+
"Feast 0.24+ will not support positional arguments to construct Entities"
9494
),
9595
DeprecationWarning,
9696
)
@@ -108,7 +108,7 @@ def __init__(
108108
warnings.warn(
109109
(
110110
"The `value_type` parameter is being deprecated. Instead, the type of an entity "
111-
"should be specified as a Field in the schema of a feature view. Feast 0.23 and "
111+
"should be specified as a Field in the schema of a feature view. Feast 0.24 and "
112112
"onwards will not support the `value_type` parameter. The `entities` parameter of "
113113
"feature views should also be changed to a List[Entity] instead of a List[str]; if "
114114
"this is not done, entity columns will be mistakenly interpreted as feature columns."
@@ -125,7 +125,7 @@ def __init__(
125125
warnings.warn(
126126
(
127127
"The `join_key` parameter is being deprecated in favor of the `join_keys` parameter. "
128-
"Please switch from using `join_key` to `join_keys`. Feast 0.23 and onwards will not "
128+
"Please switch from using `join_key` to `join_keys`. Feast 0.24 and onwards will not "
129129
"support the `join_key` parameter."
130130
),
131131
DeprecationWarning,

sdk/python/feast/feature_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(
7272
warnings.warn(
7373
(
7474
"Feature service parameters should be specified as a keyword argument instead of a positional arg."
75-
"Feast 0.23+ will not support positional arguments to construct feature service"
75+
"Feast 0.24+ will not support positional arguments to construct feature service"
7676
),
7777
DeprecationWarning,
7878
)

sdk/python/feast/feature_store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2504,7 +2504,7 @@ def _validate_data_sources(data_sources: List[DataSource]):
25042504
f"More than one data source with name {case_insensitive_ds_name} found. "
25052505
f"Please ensure that all data source names are case-insensitively unique. "
25062506
f"It may be necessary to ignore certain files in your feature repository by using a .feastignore "
2507-
f"file. Starting in Feast 0.23, unique names (perhaps inferred from the table name) will be "
2507+
f"file. Starting in Feast 0.24, unique names (perhaps inferred from the table name) will be "
25082508
f"required in data sources to encourage data source discovery"
25092509
)
25102510
else:

sdk/python/feast/feature_view.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __init__(
148148
warnings.warn(
149149
(
150150
"feature view parameters should be specified as a keyword argument instead of a positional arg."
151-
"Feast 0.23+ will not support positional arguments to construct feature views"
151+
"Feast 0.24+ will not support positional arguments to construct feature views"
152152
),
153153
DeprecationWarning,
154154
)
@@ -178,7 +178,7 @@ def __init__(
178178
warnings.warn(
179179
(
180180
"The `entities` parameter should be a list of `Entity` objects. "
181-
"Feast 0.23 and onwards will not support passing in a list of "
181+
"Feast 0.24 and onwards will not support passing in a list of "
182182
"strings to define entities."
183183
),
184184
DeprecationWarning,
@@ -191,7 +191,7 @@ def __init__(
191191
warnings.warn(
192192
(
193193
"The option to pass a Duration object to the ttl parameter is being deprecated. "
194-
"Please pass a timedelta object instead. Feast 0.23 and onwards will not support "
194+
"Please pass a timedelta object instead. Feast 0.24 and onwards will not support "
195195
"Duration objects."
196196
),
197197
DeprecationWarning,
@@ -206,7 +206,7 @@ def __init__(
206206
(
207207
"The `features` parameter is being deprecated in favor of the `schema` parameter. "
208208
"Please switch from using `features` to `schema`. This will also requiring switching "
209-
"feature definitions from using `Feature` to `Field`. Feast 0.23 and onwards will not "
209+
"feature definitions from using `Feature` to `Field`. Feast 0.24 and onwards will not "
210210
"support the `features` parameter."
211211
),
212212
DeprecationWarning,
@@ -282,7 +282,7 @@ def _initialize_sources(self, name, batch_source, stream_source, source):
282282
else:
283283
warnings.warn(
284284
"batch_source and stream_source have been deprecated in favor of `source`."
285-
"The deprecated fields will be removed in Feast 0.23.",
285+
"The deprecated fields will be removed in Feast 0.24.",
286286
DeprecationWarning,
287287
)
288288
if stream_source is not None and isinstance(stream_source, PushSource):

sdk/python/feast/infra/offline_stores/bigquery_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(
6363
warnings.warn(
6464
(
6565
"The argument 'date_partition_column' is not supported for BigQuery sources. "
66-
"It will be removed in Feast 0.23+"
66+
"It will be removed in Feast 0.24+"
6767
),
6868
DeprecationWarning,
6969
)
@@ -76,7 +76,7 @@ def __init__(
7676
else:
7777
warnings.warn(
7878
(
79-
f"Starting in Feast 0.23, Feast will require either a name for a data source (if using query) or `table`: {self.query}"
79+
f"Starting in Feast 0.24, Feast will require either a name for a data source (if using query) or `table`: {self.query}"
8080
),
8181
DeprecationWarning,
8282
)

sdk/python/feast/infra/offline_stores/contrib/spark_offline_store/spark_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
warnings.warn(
6060
(
6161
"The argument 'date_partition_column' is not supported for Spark sources."
62-
"It will be removed in Feast 0.23+"
62+
"It will be removed in Feast 0.24+"
6363
),
6464
DeprecationWarning,
6565
)

sdk/python/feast/infra/offline_stores/file_source.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __init__(
7070
warnings.warn(
7171
(
7272
"File Source parameters should be specified as a keyword argument instead of a positional arg."
73-
"Feast 0.23+ will not support positional arguments to construct File sources"
73+
"Feast 0.24+ will not support positional arguments to construct File sources"
7474
),
7575
DeprecationWarning,
7676
)
@@ -95,7 +95,7 @@ def __init__(
9595
warnings.warn(
9696
(
9797
"The argument 'date_partition_column' is not supported for File sources."
98-
"It will be removed in Feast 0.23+"
98+
"It will be removed in Feast 0.24+"
9999
),
100100
DeprecationWarning,
101101
)

0 commit comments

Comments
 (0)