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 2021/03/09 14:53:55 UTC
[GitHub] [superset] AAfghahi commented on a change in pull request #13521: feat: Querydb migration
AAfghahi commented on a change in pull request #13521:
URL: https://github.com/apache/superset/pull/13521#discussion_r590439707
##########
File path: superset/sql_lab.py
##########
@@ -206,7 +206,8 @@ def execute_sql_statement(
if SQL_MAX_ROW and (not query.limit or query.limit > SQL_MAX_ROW):
query.limit = SQL_MAX_ROW
if query.limit:
- sql = database.apply_limit_to_sql(sql, query.limit)
+ #We are fetching one more than the requested limit in order to test whether there are more rows than the limit.
Review comment:
I just learned that python doesn't support multi-line comments.
----------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org