sqltap icon indicating copy to clipboard operation
sqltap copied to clipboard

JSONB support?

Open AndreaCrotti opened this issue 8 years ago • 2 comments

I'm having some problems running sqltap (version 0.3.10) when there is a JSONB field in one of the models. It doesn't seem to handle dictionaries very well in general..

Is it a known issue? (could not find it reported)

cls = <class 'sqltap.sqltap.QueryStats'>
params = {'allow_supplier_project_creation': False, 'contribution_edit_reacceptance': True, 'contribution_time_enabled': True, 'created_at': datetime.datetime(2017, 8, 4, 12, 38, 46, 131500), ...}

    @classmethod
    def calculate_params_hash(cls, params):
        h = 0
        for k in sorted(params.keys()):
>           h ^= 10009 * hash(params[k])
E           TypeError: unhashable type: 'dict'

AndreaCrotti avatar Aug 04 '17 12:08 AndreaCrotti

After I created this issue I noticed that it was already fixed in master actually (and with the new version), but the new version is not released on pypi. Any plans to release that at some point?

AndreaCrotti avatar Aug 04 '17 15:08 AndreaCrotti

Ditto, a new release of master would be convenient for us!

DanCardin avatar Feb 06 '20 19:02 DanCardin