Skip to content
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

'Circular dependency detected' with TableViz query #167

Closed
gbrian opened this issue Mar 5, 2016 · 0 comments
Closed

'Circular dependency detected' with TableViz query #167

gbrian opened this issue Mar 5, 2016 · 0 comments

Comments

@gbrian
Copy link
Contributor

gbrian commented Mar 5, 2016

Hi,

Having this error (I can't explain why) while using Table visualization with simple queries like "SELECT field, count(*) from table".
For some reason json_iso_dttm_ser is called for integer values. This function returns same object if it's not a dttm ans this causes the error.

I can't understand why is considering an integer as a non serializable but by the way this function should be returning a serialized value or raising an error.

I changed implementation in this way at utils.py:

def json_iso_dttm_ser(obj):
    """
    json serializer that deals with dates

    >>> dttm = datetime(1970, 1, 1)
    >>> json.dumps({'dttm': dttm}, default=json_iso_dttm_ser)
    '{"dttm": "1970-01-01T00:00:00"}'
    """
    if hasattr(obj, 'isoformat'):
        return obj.isoformat()
    return str(obj)

Please let mw know if you have issued same problem.
Thanks

graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this issue Oct 4, 2021
* build: bump build-config

* test: fix typings in mock data
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
* build: bump build-config

* test: fix typings in mock data
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
* build: bump build-config

* test: fix typings in mock data
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
* build: bump build-config

* test: fix typings in mock data
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
* build: bump build-config

* test: fix typings in mock data
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants