betodealmeida commented on code in PR #20283:
URL: https://github.com/apache/superset/pull/20283#discussion_r890546513


##########
tests/integration_tests/sqllab_tests.py:
##########
@@ -568,7 +568,9 @@ def test_sql_limit(self):
             query_limit=test_limit + 1,
         )
         self.assertEqual(len(data["data"]), test_limit)
-        self.assertEqual(data["query"]["limitingFactor"], LimitingFactor.QUERY)
+        self.assertEqual(
+            data["query"]["limitingFactor"], LimitingFactor.QUERY_AND_DROPDOWN

Review Comment:
   This is now wrong... if the query is `SELECT * FROM birth_names LIMIT 1` and 
`query_limit` is 2, then the limiting factor should be `LimitingFactor.QUERY`, 
as before.
   
   You probable need to adjust (or remove) the logic where we parse the query 
to extract the limit, since it's now being done in `SqlJsonExecutionContext`.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to