Следующий запрос отлично работает для фильтрации по одному тегу:
Код: Выделить всё
blob_service_client = BlobServiceClient(
account_url=azure_blob_storage_endpoint, credential=credentials
)
container_client = blob_service_client.get_container_client(
container=container_name
)
start_year = 2012
end_year = 2022
query = f"\"year\">='{start_year}'"
next(container_client.find_blobs_by_tags(filter_expression=query))["name"]
Код: Выделить всё
query = (
f"\"year\">='{start_year}' AND \"year\"='2012' AND \"year\"
Подробнее здесь: [url]https://stackoverflow.com/questions/79352902/how-to-query-multiple-blob-tags-with-and-operator-in-azurite-3-33-0[/url]
Мобильная версия