7779b87540ea57ec56d1b7ac42e420a6a6f9df23,mlflow/store/model_registry/sqlalchemy_store.py,SqlAlchemyStore,search_registered_models,#SqlAlchemyStore#Any#Any#Any#Any#,259
Before Change
supported_ops = "".join(["(" + op + ")" for op in
SearchUtils.VALID_REGISTERED_MODEL_SEARCH_COMPARATORS])
sample_query = f"name {supported_ops} "<model_name>""
raise MlflowException(f"Invalid filter string: {filter_string}"
"Search registered models supports filter expressions like:" +
sample_query, error_code=INVALID_PARAMETER_VALUE)
with self.ManagedSessionMaker() as session:
query = session\
.query(SqlRegisteredModel)\
.filter(*conditions)\
After Change
else:
supported_ops = "".join(["(" + op + ")" for op in
SearchUtils.VALID_REGISTERED_MODEL_SEARCH_COMPARATORS])
sample_query = "name {} "<model_name>"".format(supported_ops)
raise MlflowException("Invalid filter string: {}".format(filter_string) +
"Search registered models supports filter expressions like:" +
sample_query, error_code=INVALID_PARAMETER_VALUE)
with self.ManagedSessionMaker() as session:
query = session\
.query(SqlRegisteredModel)\
.filter(*conditions)\
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: mlflow/mlflow
Commit Name: 7779b87540ea57ec56d1b7ac42e420a6a6f9df23
Time: 2020-07-20
Author: hkawamura0130@gmail.com
File Name: mlflow/store/model_registry/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: search_registered_models
Project Name: mlflow/mlflow
Commit Name: 7779b87540ea57ec56d1b7ac42e420a6a6f9df23
Time: 2020-07-20
Author: hkawamura0130@gmail.com
File Name: mlflow/utils/search_utils.py
Class Name: SearchUtils
Method Name: parse_order_by_for_search_registered_models
Project Name: mlflow/mlflow
Commit Name: 7779b87540ea57ec56d1b7ac42e420a6a6f9df23
Time: 2020-07-20
Author: hkawamura0130@gmail.com
File Name: mlflow/store/model_registry/sqlalchemy_store.py
Class Name: SqlAlchemyStore
Method Name: _parse_search_registered_models_order_by