filter option in query_entities for TableClient is being ignored (Python) #15094
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Tables
Hi, I'm using the Python Data Tables Python API and when filtering entities with
query_entities
forTableClient
, all entities were returned. No filtering was applied. This code example should fail but it silently returns all the entities in the table:Enabling
DEBUG
level inlogging
shows the URL missing the $filter parameter:Going through the source code, it seems that the filter option is being discarded when constructing the paging object in file
sdk/tables/azure-data-tables/azure/data/tables/_models.py
:I have to manually edit the
_kwargs
attribute of the returnedItemPaged
value from the call toquery_entities
and set the keyresults_per_page
to aQueryOptions
instance. For example:It properly fails with an Exception:
The text was updated successfully, but these errors were encountered: