-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Single metric with filter producing empty result failed with index out of bound. This should not happen and an empty dataframe with columns should be returned. JIRA: PSDK-207 risk: low
- Loading branch information
Showing
3 changed files
with
218 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
200 changes: 200 additions & 0 deletions
200
gooddata-pandas/tests/dataframe/fixtures/filtered_empty_df.yaml
This file contains 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,200 @@ | ||
# (C) 2024 GoodData Corporation | ||
version: 1 | ||
interactions: | ||
- request: | ||
method: POST | ||
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute | ||
body: | ||
execution: | ||
attributes: [] | ||
filters: | ||
- relativeDateFilter: | ||
dataset: | ||
identifier: | ||
id: date | ||
type: dataset | ||
from: 1 | ||
granularity: YEAR | ||
to: 2 | ||
measures: | ||
- definition: | ||
measure: | ||
item: | ||
identifier: | ||
id: revenue | ||
type: metric | ||
computeRatio: false | ||
filters: [] | ||
localIdentifier: m_revenue | ||
resultSpec: | ||
dimensions: | ||
- itemIdentifiers: | ||
- measureGroup | ||
localIdentifier: dim_0 | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- br, gzip, deflate | ||
Content-Type: | ||
- application/json | ||
X-GDC-VALIDATE-RELATIONS: | ||
- 'true' | ||
X-Requested-With: | ||
- XMLHttpRequest | ||
response: | ||
status: | ||
code: 200 | ||
message: OK | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Expose-Headers: | ||
- Content-Disposition, Content-Length, Content-Range, Set-Cookie | ||
Cache-Control: | ||
- no-cache, no-store, max-age=0, must-revalidate | ||
Connection: | ||
- keep-alive | ||
Content-Security-Policy: | ||
- 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' | ||
''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com | ||
src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; | ||
img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com | ||
cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com | ||
*.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src | ||
''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src | ||
''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com | ||
*.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net | ||
matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com | ||
*.wistia.net embedwistia-a.akamaihd.net' | ||
Content-Type: | ||
- application/json | ||
DATE: &id001 | ||
- PLACEHOLDER | ||
Expires: | ||
- '0' | ||
GoodData-Deployment: | ||
- aio | ||
Permission-Policy: | ||
- geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera | ||
'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment | ||
'none'; | ||
Pragma: | ||
- no-cache | ||
Referrer-Policy: | ||
- no-referrer | ||
Server: | ||
- nginx | ||
Transfer-Encoding: | ||
- chunked | ||
Vary: | ||
- Origin | ||
- Access-Control-Request-Method | ||
- Access-Control-Request-Headers | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-GDC-TRACE-ID: *id001 | ||
X-XSS-Protection: | ||
- '0' | ||
content-length: | ||
- '307' | ||
set-cookie: | ||
- SPRING_REDIRECT_URI=; Max-Age=0; Expires=Tue, 08 Oct 2024 13:35:16 GMT; | ||
Path=/; HTTPOnly; SameSite=Lax | ||
body: | ||
string: | ||
executionResponse: | ||
dimensions: | ||
- headers: | ||
- measureGroupHeaders: | ||
- localIdentifier: m_revenue | ||
format: $#,##0 | ||
name: Revenue | ||
localIdentifier: dim_0 | ||
links: | ||
executionResult: a8a633b8ec1bc44a3007020033d582740a2a95b7:6e97188bfff240406a2b583fe6e4065f304eb2250a658fcf497dc142a3377e80 | ||
- request: | ||
method: GET | ||
uri: http://localhost:3000/api/v1/actions/workspaces/demo/execution/afm/execute/result/a8a633b8ec1bc44a3007020033d582740a2a95b7%3A6e97188bfff240406a2b583fe6e4065f304eb2250a658fcf497dc142a3377e80?offset=0&limit=1 | ||
body: null | ||
headers: | ||
Accept: | ||
- application/json | ||
Accept-Encoding: | ||
- br, gzip, deflate | ||
X-GDC-VALIDATE-RELATIONS: | ||
- 'true' | ||
X-Requested-With: | ||
- XMLHttpRequest | ||
response: | ||
status: | ||
code: 200 | ||
message: OK | ||
headers: | ||
Access-Control-Allow-Credentials: | ||
- 'true' | ||
Access-Control-Expose-Headers: | ||
- Content-Disposition, Content-Length, Content-Range, Set-Cookie | ||
Cache-Control: | ||
- no-cache, no-store, max-age=0, must-revalidate | ||
Connection: | ||
- keep-alive | ||
Content-Security-Policy: | ||
- 'default-src ''self'' *.wistia.com *.wistia.net; script-src ''self'' ''unsafe-inline'' | ||
''unsafe-eval'' *.wistia.com *.wistia.net *.hsforms.net *.hsforms.com | ||
src.litix.io matomo.anywhere.gooddata.com *.jquery.com unpkg.com cdnjs.cloudflare.com; | ||
img-src * data: blob:; style-src ''self'' ''unsafe-inline'' fonts.googleapis.com | ||
cdn.jsdelivr.net fast.fonts.net; font-src ''self'' data: fonts.gstatic.com | ||
*.alicdn.com *.wistia.com cdn.jsdelivr.net info.gooddata.com; frame-src | ||
''self'' *.hsforms.net *.hsforms.com; object-src ''none''; worker-src | ||
''self'' blob:; child-src blob:; connect-src ''self'' *.tiles.mapbox.com | ||
*.mapbox.com *.litix.io *.wistia.com *.hsforms.net *.hsforms.com embedwistia-a.akamaihd.net | ||
matomo.anywhere.gooddata.com; media-src ''self'' blob: data: *.wistia.com | ||
*.wistia.net embedwistia-a.akamaihd.net' | ||
Content-Type: | ||
- application/json | ||
DATE: *id001 | ||
Expires: | ||
- '0' | ||
GoodData-Deployment: | ||
- aio | ||
Permission-Policy: | ||
- geolocation 'none'; midi 'none'; sync-xhr 'none'; microphone 'none'; camera | ||
'none'; magnetometer 'none'; gyroscope 'none'; fullscreen 'none'; payment | ||
'none'; | ||
Pragma: | ||
- no-cache | ||
Referrer-Policy: | ||
- no-referrer | ||
Server: | ||
- nginx | ||
Transfer-Encoding: | ||
- chunked | ||
Vary: | ||
- Origin | ||
- Access-Control-Request-Method | ||
- Access-Control-Request-Headers | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-GDC-TRACE-ID: *id001 | ||
X-XSS-Protection: | ||
- '0' | ||
content-length: | ||
- '131' | ||
set-cookie: | ||
- SPRING_REDIRECT_URI=; Max-Age=0; Expires=Tue, 08 Oct 2024 13:35:16 GMT; | ||
Path=/; HTTPOnly; SameSite=Lax | ||
body: | ||
string: | ||
data: [] | ||
dimensionHeaders: | ||
- headerGroups: | ||
- headers: [] | ||
grandTotals: [] | ||
paging: | ||
count: | ||
- 0 | ||
offset: | ||
- 0 | ||
total: | ||
- 0 |
This file contains 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