-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fixed issue with multiple params in a filter #15893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8797f2b
fixed issue with multiple params in a filter
seankane-msft 7065577
fixed up merge conflicts
seankane-msft 597b081
added tests, fixed up params filtering, recordings
seankane-msft 87a315a
adding tests for async and cosmos
seankane-msft bcd71f7
fixed up the dates test
seankane-msft 16fdea9
fixing up a new test failure not related to queries
seankane-msft ee338aa
pylint fixes
seankane-msft 380d8bf
updating tests to insert two entities and verify only one comes back
seankane-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,11 +15,11 @@ interactions: | |
| DataServiceVersion: | ||
| - '3.0' | ||
| Date: | ||
| - Fri, 18 Dec 2020 17:09:42 GMT | ||
| - Mon, 04 Jan 2021 20:31:14 GMT | ||
| User-Agent: | ||
| - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
| x-ms-date: | ||
| - Fri, 18 Dec 2020 17:09:42 GMT | ||
| - Mon, 04 Jan 2021 20:31:14 GMT | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| method: POST | ||
|
|
@@ -33,7 +33,7 @@ interactions: | |
| content-type: | ||
| - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 | ||
| date: | ||
| - Fri, 18 Dec 2020 17:09:42 GMT | ||
| - Mon, 04 Jan 2021 20:31:14 GMT | ||
| location: | ||
| - https://fake_table_account.table.core.windows.net/Tables('uttable546210aa') | ||
| server: | ||
|
|
@@ -69,27 +69,27 @@ interactions: | |
| DataServiceVersion: | ||
| - '3.0' | ||
| Date: | ||
| - Fri, 18 Dec 2020 17:09:43 GMT | ||
| - Mon, 04 Jan 2021 20:31:14 GMT | ||
| User-Agent: | ||
| - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
| x-ms-date: | ||
| - Fri, 18 Dec 2020 17:09:43 GMT | ||
| - Mon, 04 Jan 2021 20:31:14 GMT | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| method: POST | ||
| uri: https://fake_table_account.table.core.windows.net/uttable546210aa | ||
| response: | ||
| body: | ||
| string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable546210aa/@Element","odata.etag":"W/\"datetime''2020-12-18T17%3A09%3A43.740726Z''\"","PartitionKey":"pk546210aa","RowKey":"rk546210aa","Timestamp":"2020-12-18T17:09:43.740726Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"[email protected]":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","[email protected]":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","[email protected]":"Edm.Binary","binary":"YmluYXJ5","other":20,"[email protected]":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' | ||
| string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable546210aa/@Element","odata.etag":"W/\"datetime''2021-01-04T20%3A31%3A15.1344959Z''\"","PartitionKey":"pk546210aa","RowKey":"rk546210aa","Timestamp":"2021-01-04T20:31:15.1344959Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"[email protected]":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","[email protected]":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","[email protected]":"Edm.Binary","binary":"YmluYXJ5","other":20,"[email protected]":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-type: | ||
| - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 | ||
| date: | ||
| - Fri, 18 Dec 2020 17:09:42 GMT | ||
| - Mon, 04 Jan 2021 20:31:14 GMT | ||
| etag: | ||
| - W/"datetime'2020-12-18T17%3A09%3A43.740726Z'" | ||
| - W/"datetime'2021-01-04T20%3A31%3A15.1344959Z'" | ||
| location: | ||
| - https://fake_table_account.table.core.windows.net/uttable546210aa(PartitionKey='pk546210aa',RowKey='rk546210aa') | ||
| server: | ||
|
|
@@ -103,6 +103,48 @@ interactions: | |
| status: | ||
| code: 201 | ||
| message: Created | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - application/json;odata=minimalmetadata | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| DataServiceVersion: | ||
| - '3.0' | ||
| Date: | ||
| - Mon, 04 Jan 2021 20:31:15 GMT | ||
| User-Agent: | ||
| - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
| x-ms-date: | ||
| - Mon, 04 Jan 2021 20:31:15 GMT | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| method: GET | ||
| uri: https://fake_table_account.table.core.windows.net/uttable546210aa()?$filter=married%20eq%20%27True%27 | ||
| response: | ||
| body: | ||
| string: '{"odata.metadata":"https://fake_table_account.table.core.windows.net/$metadata#uttable546210aa","value":[]}' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-type: | ||
| - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 | ||
| date: | ||
| - Mon, 04 Jan 2021 20:31:15 GMT | ||
| server: | ||
| - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 | ||
| transfer-encoding: | ||
| - chunked | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| - request: | ||
| body: null | ||
| headers: | ||
|
|
@@ -115,11 +157,11 @@ interactions: | |
| Content-Length: | ||
| - '0' | ||
| Date: | ||
| - Fri, 18 Dec 2020 17:09:43 GMT | ||
| - Mon, 04 Jan 2021 20:31:15 GMT | ||
| User-Agent: | ||
| - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
| x-ms-date: | ||
| - Fri, 18 Dec 2020 17:09:43 GMT | ||
| - Mon, 04 Jan 2021 20:31:15 GMT | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| method: DELETE | ||
|
|
@@ -133,7 +175,7 @@ interactions: | |
| content-length: | ||
| - '0' | ||
| date: | ||
| - Fri, 18 Dec 2020 17:09:43 GMT | ||
| - Mon, 04 Jan 2021 20:31:15 GMT | ||
| server: | ||
| - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 | ||
| x-content-type-options: | ||
|
|
||
188 changes: 188 additions & 0 deletions
188
...ata-tables/tests/recordings/test_table_entity.test_query_user_filter_multiple_params.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,188 @@ | ||
| interactions: | ||
| - request: | ||
| body: '{"TableName": "uttable97e31758"}' | ||
| headers: | ||
| Accept: | ||
| - application/json;odata=minimalmetadata | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '32' | ||
| Content-Type: | ||
| - application/json;odata=nometadata | ||
| DataServiceVersion: | ||
| - '3.0' | ||
| Date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| User-Agent: | ||
| - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
| x-ms-date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| method: POST | ||
| uri: https://tablesteststorname.table.core.windows.net/Tables | ||
| response: | ||
| body: | ||
| string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#Tables/@Element","TableName":"uttable97e31758"}' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-type: | ||
| - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 | ||
| date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| location: | ||
| - https://tablesteststorname.table.core.windows.net/Tables('uttable97e31758') | ||
| server: | ||
| - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 | ||
| transfer-encoding: | ||
| - chunked | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| status: | ||
| code: 201 | ||
| message: Created | ||
| - request: | ||
| body: '{"PartitionKey": "pk97e31758", "[email protected]": "Edm.String", | ||
| "RowKey": "rk97e31758", "[email protected]": "Edm.String", "age": 39, "sex": | ||
| "male", "[email protected]": "Edm.String", "married": true, "deceased": false, | ||
| "ratio": 3.1, "evenratio": 3.0, "large": 933311100, "Birthday": "1973-10-04T00:00:00Z", | ||
| "[email protected]": "Edm.DateTime", "birthday": "1970-10-04T00:00:00Z", "[email protected]": | ||
| "Edm.DateTime", "binary": "YmluYXJ5", "[email protected]": "Edm.Binary", "other": | ||
| 20, "clsid": "c9da6455-213d-42c9-9a79-3e9149a57833", "[email protected]": "Edm.Guid"}' | ||
| headers: | ||
| Accept: | ||
| - application/json;odata=minimalmetadata | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '577' | ||
| Content-Type: | ||
| - application/json;odata=nometadata | ||
| DataServiceVersion: | ||
| - '3.0' | ||
| Date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| User-Agent: | ||
| - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
| x-ms-date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| method: POST | ||
| uri: https://tablesteststorname.table.core.windows.net/uttable97e31758 | ||
| response: | ||
| body: | ||
| string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttable97e31758/@Element","odata.etag":"W/\"datetime''2020-12-21T20%3A57%3A18.8679026Z''\"","PartitionKey":"pk97e31758","RowKey":"rk97e31758","Timestamp":"2020-12-21T20:57:18.8679026Z","age":39,"sex":"male","married":true,"deceased":false,"ratio":3.1,"evenratio":3.0,"large":933311100,"[email protected]":"Edm.DateTime","Birthday":"1973-10-04T00:00:00Z","[email protected]":"Edm.DateTime","birthday":"1970-10-04T00:00:00Z","[email protected]":"Edm.Binary","binary":"YmluYXJ5","other":20,"[email protected]":"Edm.Guid","clsid":"c9da6455-213d-42c9-9a79-3e9149a57833"}' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-type: | ||
| - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 | ||
| date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| etag: | ||
| - W/"datetime'2020-12-21T20%3A57%3A18.8679026Z'" | ||
| location: | ||
| - https://tablesteststorname.table.core.windows.net/uttable97e31758(PartitionKey='pk97e31758',RowKey='rk97e31758') | ||
| server: | ||
| - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 | ||
| transfer-encoding: | ||
| - chunked | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| status: | ||
| code: 201 | ||
| message: Created | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - application/json;odata=minimalmetadata | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| DataServiceVersion: | ||
| - '3.0' | ||
| Date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| User-Agent: | ||
| - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
| x-ms-date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| method: GET | ||
| uri: https://tablesteststorname.table.core.windows.net/uttable97e31758()?$filter=married%20eq%20%27True%27%20and%20RowKey%20eq%20%27rk97e31758%27 | ||
| response: | ||
| body: | ||
| string: '{"odata.metadata":"https://tablesteststorname.table.core.windows.net/$metadata#uttable97e31758","value":[]}' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-type: | ||
| - application/json;odata=minimalmetadata;streaming=true;charset=utf-8 | ||
| date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| server: | ||
| - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 | ||
| transfer-encoding: | ||
| - chunked | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| status: | ||
| code: 200 | ||
| message: OK | ||
| - request: | ||
| body: null | ||
| headers: | ||
| Accept: | ||
| - application/json | ||
| Accept-Encoding: | ||
| - gzip, deflate | ||
| Connection: | ||
| - keep-alive | ||
| Content-Length: | ||
| - '0' | ||
| Date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| User-Agent: | ||
| - azsdk-python-data-tables/12.0.0b4 Python/3.9.0rc1 (Windows-10-10.0.19041-SP0) | ||
| x-ms-date: | ||
| - Mon, 21 Dec 2020 20:57:18 GMT | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| method: DELETE | ||
| uri: https://tablesteststorname.table.core.windows.net/Tables('uttable97e31758') | ||
| response: | ||
| body: | ||
| string: '' | ||
| headers: | ||
| cache-control: | ||
| - no-cache | ||
| content-length: | ||
| - '0' | ||
| date: | ||
| - Mon, 21 Dec 2020 20:57:19 GMT | ||
| server: | ||
| - Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0 | ||
| x-content-type-options: | ||
| - nosniff | ||
| x-ms-version: | ||
| - '2019-02-02' | ||
| status: | ||
| code: 204 | ||
| message: No Content | ||
| version: 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.