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 2019/10/30 17:11:02 UTC
[GitHub] [incubator-superset] betodealmeida commented on a change in pull
request #8470: Allow user to customize query cost estimate
betodealmeida commented on a change in pull request #8470: Allow user to customize query cost estimate
URL: https://github.com/apache/incubator-superset/pull/8470#discussion_r340748268
##########
File path: docs/sqllab.rst
##########
@@ -123,6 +123,29 @@ database configuration:
Here, "version" should be the version of your Presto cluster. Support for this
functionality was introduced in Presto 0.319.
+You also need to enable the feature flag in your `superset_config.py`, and you
+can optionally specify a custom formatter. Eg:
+
+.. code-block:: python
+
+ def presto_query_cost_formatter(result):
Review comment:
Done! Sorry, I'm still not fully used to types in Python, and I keep forgetting them. :-P
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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