You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/12/12 08:45:55 UTC

[GitHub] zoltantalas commented on issue #5547: Adds a new macro to allow getting filter values easily

zoltantalas commented on issue #5547: Adds a new macro to allow getting filter values easily
URL: https://github.com/apache/incubator-superset/pull/5547#issuecomment-446507938
 
 
   filter_values is broken in the newest superset version 0.30.
   
   &#39;filter_values&#39; is undefined
   Traceback (most recent call last):
     File "/usr/local/lib/python3.5/dist-packages/superset/viz.py", line 329, in get_df_payload
       df = self.get_df(query_obj)
     File "/usr/local/lib/python3.5/dist-packages/superset/viz.py", line 142, in get_df
       self.results = self.datasource.query(query_obj)
     File "/usr/local/lib/python3.5/dist-packages/superset/connectors/sqla/models.py", line 683, in query
       sql = self.get_query_str(query_obj)
     File "/usr/local/lib/python3.5/dist-packages/superset/connectors/sqla/models.py", line 410, in get_query_str
       qry = self.get_sqla_query(**query_obj)
     File "/usr/local/lib/python3.5/dist-packages/superset/connectors/sqla/models.py", line 538, in get_sqla_query
       tbl = self.get_from_clause(template_processor, db_engine_spec)
     File "/usr/local/lib/python3.5/dist-packages/superset/connectors/sqla/models.py", line 434, in get_from_clause
       from_sql = template_processor.process_template(from_sql)
     File "/usr/local/lib/python3.5/dist-packages/superset/jinja_context.py", line 109, in process_template
       return template.render(kwargs)
     File "/usr/local/lib/python3.5/dist-packages/jinja2/environment.py", line 1008, in render
       return self.environment.handle_exception(exc_info, True)
     File "/usr/local/lib/python3.5/dist-packages/jinja2/environment.py", line 780, in handle_exception
       reraise(exc_type, exc_value, tb)
     File "/usr/local/lib/python3.5/dist-packages/jinja2/_compat.py", line 37, in reraise
       raise value.with_traceback(tb)
     File "<template>", line 32, in top-level template code
     File "/usr/local/lib/python3.5/dist-packages/jinja2/sandbox.py", line 425, in call
       if not __self.is_safe_callable(__obj):
     File "/usr/local/lib/python3.5/dist-packages/jinja2/sandbox.py", line 338, in is_safe_callable
       return not (getattr(obj, 'unsafe_callable', False) or
   jinja2.exceptions.UndefinedError: 'filter_values' is undefined

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org