Skip to content

TypeError: 'dict' object does not support indexing when filter contains "%" symbol #528

Description

@rsxm

Hi I get a TypeError: 'dict' object does not support indexing error when trying to filter on a value that contains the "%" character.

Caravel version (from amancevice/caravel:0.9.0):

>>> caravel.version.__version__ 
(0, 9, 0)

I'm using postgresql 9.4 as the caravel database and datasource.

From the logs, this was the URL that caused the error:
/caravel/explore/table/1/?[...]&extra_filters={"1":{"record":["Net Margin %"]}}[...]

The extra_filter bit was encoded like this in the logs: %7B%221%22%3A%7B%22record%22%3A%5B%22Net%20Margin%20%25%22%5D%7D%7D

Full stack trace is in next comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions