phaethon commented on issue #36939:
URL: https://github.com/apache/superset/issues/36939#issuecomment-3901682501

   Following patch to /app/superset/sql/parse.py is a workaround for SHOW 
statements:
   --- parse.py.orig       2026-02-05 23:24:22.000000000 +0200
   +++ parse.py    2026-02-14 12:40:36.078433501 +0200
   @@ -780,21 +780,21 @@
            return None
    
        def set_limit_value(
            self,
            limit: int,
            method: LimitMethod = LimitMethod.FORCE_LIMIT,
        ) -> None:
            """
            Modify the `LIMIT` or `TOP` value of the SQL statement inplace.
            """
   -        if method == LimitMethod.FORCE_LIMIT:
   +        if method == LimitMethod.FORCE_LIMIT and not 
isinstance(self._parsed, exp.Show):
                self._parsed.args["limit"] = exp.Limit(
                    expression=exp.Literal(this=str(limit), is_string=False)
                )
   


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