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/05/01 16:20:39 UTC

[GitHub] [incubator-superset] bearcage commented on a change in pull request #7422: Add "validation_only" queries to the backend

bearcage commented on a change in pull request #7422: Add "validation_only" queries to the backend
URL: https://github.com/apache/incubator-superset/pull/7422#discussion_r280124738
 
 

 ##########
 File path: superset/views/core.py
 ##########
 @@ -2593,6 +2594,14 @@ def sql_json(self):
         limits = [mydb.db_engine_spec.get_limit_from_sql(rendered_query), limit]
         query.limit = min(lim for lim in limits if lim is not None)
 
+        # apply validation transform last -- after template processing
+        if validate_only:
+            spec = mydb.db_engine_spec
+            if spec.supports_validation_queries:
 
 Review comment:
   Yep, refactor fatfinger. Fixed.

----------------------------------------------------------------
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