blag commented on PR #25613: URL: https://github.com/apache/airflow/pull/25613#issuecomment-1210929951
> well, i would assume that @blag's suggestion would be to convert * to % and then just run ilike Yes, this. 👆 But like I said, I think we should use a different query parameter for exact matches. In talking with @ashb, he was thinking that for the `/dataset/<dataset_id_or_uri>` endpoint, we could try to coerce `dataset_id_or_uri` to an integer, and if successful, grab the dataset with that `dataset_id`. If the coercion isn't successful, treat `dataset_id_or_uri` like a string and use exact matching to grab the dataset with that `uri`. The only issue with that is if users create datasets named after integers. In which case it will be impossible to query for them them by exact matching their `uri` in the API. But OTOH, it seems like a Bad Idea to name datasets as integers, so users probably won't do that in the first place. Thoughts? -- 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]
