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/06/29 17:49:28 UTC

[GitHub] timifasubaa commented on a change in pull request #5295: [WIP] Fix sqllab limit regex

timifasubaa commented on a change in pull request #5295: [WIP] Fix sqllab limit regex 
URL: https://github.com/apache/incubator-superset/pull/5295#discussion_r198972977
 
 

 ##########
 File path: superset/db_engine_specs.py
 ##########
 @@ -104,8 +104,8 @@ def apply_limit_to_sql(cls, sql, limit, database):
             )
             return database.compile_sqla_query(qry)
         elif LimitMethod.FORCE_LIMIT:
-            sql_without_limit = cls.get_query_without_limit(sql)
-            return '{sql_without_limit} LIMIT {limit}'.format(**locals())
+            sql_before_limit, sql_after_limit = cls.get_query_without_limit(sql)
+            return '{sql_before_limit} LIMIT {limit}{sql_after_limit}'.format(**locals())
 
 Review comment:
   It does not override 

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