Page MenuHomePhabricator

Empty resultsets give broken json
Closed, ResolvedPublic

Description

Eg. https://quarry.wmflabs.org/run/291476/output/0/json:

{"rows": ], "meta": {"run_id": 291476, "query_id": 25986, "rev_id": 298641}, "headers": ["page_title"]}

Out fake list implementation is always true, and this seems to be confusing the json serializer.

Event Timeline

Change 461662 had a related patch set uploaded (by Zhuyifei1999; owner: Zhuyifei1999):
[analytics/quarry/web@master] output.py: Fix 'fake list' boolean value for empty generators

https://gerrit.wikimedia.org/r/461662

Change 461662 merged by jenkins-bot:
[analytics/quarry/web@master] output.py: Fix 'fake list' boolean value for empty generators

https://gerrit.wikimedia.org/r/461662