Skip to content

Commit 96983ae

Browse files
committed
Align master post-1.21.0 release and bump version to 1.22.0.dev (#246)
1 parent 4b2cca1 commit 96983ae

9 files changed

Lines changed: 42 additions & 23 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ This method creates a formal GitHub release with a tag, which automatically trig
180180

181181
1. Go to the Releases tab: https://github.com/google/ml-metadata/releases
182182
2. Click the `Draft new release` button (you'll be redirected to https://github.com/google/ml-metadata/releases/new)
183-
3. Click the `Select tag` button and create a new tag for your release (e.g., `v1.18.0`)
183+
3. Click the `Select tag` button and create a new tag for your release (e.g., `v1.21.0`)
184184
4. Click the `Target` dropdown and select your release branch
185185
5. Fill in the **Release title** and **Release notes** sections
186186
6. Choose the release type:

RELEASE.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,38 @@
22

33
## Major Features and Improvements
44

5+
* N/A
6+
7+
## Breaking Changes
8+
9+
* N/A
10+
11+
## Deprecations
12+
13+
* N/A
14+
15+
## Bug Fixed and Other Changes
16+
17+
* N/A
18+
19+
# Version 1.21.0
20+
21+
## Major Features and Improvements
22+
523
* Added Python 3.12 and Python 3.13 support.
624

725
## Breaking Changes
826

927
* Removed Python 3.9 support.
28+
* Removed ZetaSQL-based `filter_query` functionality. The `filter_query`
29+
parameter in `ListOptions` that relied on ZetaSQL for declarative filtering
30+
has been removed in version 1.21.0. Users should migrate to native lookup
31+
and lineage APIs (such as `get_artifacts_by_uri`, `get_artifacts_by_context`,
32+
and `get_lineage_subgraph`) and filter retrieved objects directly in Python.
1033

1134
## Deprecations
1235

13-
* Deprecate ZetaSQL-based filter_query functionality. The `filter_query`
14-
parameter in ListOperationOptions that relies on ZetaSQL for declarative
15-
filtering is deprecated and will be removed in version 1.18.0. ZetaSQL
16-
dependency is being removed from ML Metadata. Users should migrate to
17-
alternative filtering approaches before the 1.18.0 release.
36+
* N/A
1837

1938
## Bug Fixed and Other Changes
2039

docs/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ artifacts = store.get_artifacts()
253253
# Plus, there are many ways to query the same Artifact
254254
[stored_data_artifact] = store.get_artifacts_by_id([data_artifact_id])
255255
artifacts_with_uri = store.get_artifacts_by_uri(data_artifact.uri)
256-
# Note: filter_query is deprecated and will be removed in version 1.18.0.
256+
# Note: filter_query has been removed in version 1.21.0.
257257
artifacts_with_conditions = store.get_artifacts(
258258
list_options=mlmd.ListOptions(
259259
filter_query='uri LIKE "%/data" AND properties.day.int_value > 0'))
@@ -271,7 +271,7 @@ trainer_run.properties["state"].string_value = "RUNNING"
271271
# Query all registered Execution
272272
executions = store.get_executions_by_id([run_id])
273273
# Similarly, the same execution can be queried with conditions.
274-
# Note: filter_query is deprecated and will be removed in version 1.18.0.
274+
# Note: filter_query has been removed in version 1.21.0.
275275
executions_with_conditions = store.get_executions(
276276
list_options = mlmd.ListOptions(
277277
filter_query='type = "Trainer" AND properties.state.string_value IS NOT NULL'))
@@ -357,7 +357,7 @@ experiment_executions = store.get_executions_by_context(experiment_id)
357357

358358
# You can also use neighborhood queries to fetch these artifacts and executions
359359
# with conditions.
360-
# Note: filter_query is deprecated and will be removed in version 1.18.0.
360+
# Note: filter_query has been removed in version 1.21.0.
361361
experiment_artifacts_with_conditions = store.get_artifacts(
362362
list_options = mlmd.ListOptions(
363363
filter_query=('contexts_a.type = "Experiment" AND contexts_a.name = "exp1"')))
@@ -524,6 +524,7 @@ The list of `schema_version` used in MLMD releases are:
524524

525525
ml-metadata (MLMD) | schema_version
526526
------------------ | --------------
527+
1.21.0 | 10
527528
1.16.0 | 10
528529
1.15.0 | 10
529530
1.14.0 | 10

ml_metadata/metadata_store/metadata_store.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,10 @@ class ListOptions:
8181
is_asc: Specifies `order_by` is ascending or descending. If `order_by` is
8282
not given, the field is ignored. If `order_by` is set, then by default
8383
ascending order is used for performance benefit.
84-
filter_query: DEPRECATED (will be removed in v1.18.0) - An optional boolean
84+
filter_query: DEPRECATED (removed in v1.21.0) - An optional boolean
8585
expression in SQL syntax to specify conditions on node attributes and
86-
directly connected assets. This feature depends on ZetaSQL which is being
87-
removed from ML Metadata. Please migrate to alternative filtering approaches
88-
before version 1.18.0. See
86+
directly connected assets. This feature depends on ZetaSQL which has been
87+
removed from ML Metadata. See
8988
https://github.com/google/ml-metadata/blob/master/ml_metadata/proto/metadata_store.proto#L705-L783
9089
for the query capabilities and syntax.
9190
"""
@@ -1482,13 +1481,13 @@ def _call_method_with_list_options(
14821481
if list_options.order_by:
14831482
request.options.order_by_field.field = list_options.order_by.value
14841483
if list_options.filter_query:
1485-
# DEPRECATED: ZetaSQL-based filter_query will be removed in v1.18.0
1484+
# DEPRECATED: ZetaSQL-based filter_query has been removed in v1.21.0
14861485
import warnings
14871486
warnings.warn(
1488-
'DEPRECATION WARNING: filter_query is deprecated and will be '
1489-
'removed in version 1.18.0. This feature depends on ZetaSQL '
1490-
'which is being removed from ML Metadata. Please migrate to '
1491-
'alternative filtering approaches before the 1.18.0 release.',
1487+
'DEPRECATION WARNING: filter_query has been removed in version '
1488+
'1.21.0. This feature depended on ZetaSQL which has been removed '
1489+
'from ML Metadata. Please migrate to alternative filtering '
1490+
'approaches.',
14921491
DeprecationWarning,
14931492
stacklevel=3
14941493
)

ml_metadata/query/filter_query_ast_resolver.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ limitations under the License.
1414
==============================================================================*/
1515

1616
// DEPRECATED: This file and its associated ZetaSQL-based filter_query
17-
// functionality is deprecated and will be removed in version 1.18.0.
17+
// functionality has been removed in version 1.21.0.
1818
// ZetaSQL dependency is being phased out from ML Metadata.
1919
// Please migrate to alternative filtering approaches.
2020

ml_metadata/query/filter_query_ast_resolver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ limitations under the License.
2323
namespace ml_metadata {
2424

2525
// DEPRECATED: This class and its associated ZetaSQL-based filter_query
26-
// functionality is deprecated and will be removed in version 1.18.0.
26+
// functionality has been removed in version 1.21.0.
2727
// ZetaSQL dependency is being phased out from ML Metadata.
2828
// Please migrate to alternative filtering approaches.
2929
//

ml_metadata/query/filter_query_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ limitations under the License.
1414
==============================================================================*/
1515

1616
// DEPRECATED: This file and its associated ZetaSQL-based filter_query
17-
// functionality is deprecated and will be removed in version 1.18.0.
17+
// functionality has been removed in version 1.21.0.
1818
// ZetaSQL dependency is being phased out from ML Metadata.
1919
// Please migrate to alternative filtering approaches.
2020

ml_metadata/query/filter_query_builder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ limitations under the License.
2222
namespace ml_metadata {
2323

2424
// DEPRECATED: This class and its associated ZetaSQL-based filter_query
25-
// functionality is deprecated and will be removed in version 1.18.0.
25+
// functionality has been removed in version 1.21.0.
2626
// ZetaSQL dependency is being phased out from ML Metadata.
2727
// Please migrate to alternative filtering approaches.
2828
//

ml_metadata/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"""Contains the version string of ML Metadata."""
1616

1717
# Note that setup.py uses this version.
18-
__version__ = '1.18.0.dev'
18+
__version__ = '1.22.0.dev'

0 commit comments

Comments
 (0)