bbovenzi commented on code in PR #25613:
URL: https://github.com/apache/airflow/pull/25613#discussion_r941589863
##########
airflow/api_connexion/endpoints/dataset_endpoint.py:
##########
@@ -70,7 +70,7 @@ def get_datasets(
total_entries = session.query(func.count(Dataset.id)).scalar()
query = session.query(Dataset)
if uri_pattern:
- query = query.filter(Dataset.uri.ilike(f"%{uri_pattern}%"))
+ query = query.filter(Dataset.uri.ilike(uri_pattern))
Review Comment:
Could we add a description in the API yaml docs to tell users to add `%` for
less strict equality lookups?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]