wangyan1856 commented on issue #28327:
URL: https://github.com/apache/superset/issues/28327#issuecomment-2282791589

   I found a word around for this: comment out this code in the 
`superset/models/helpers.py` file:
   ```
            try.
                sql = SQLStatement(sql, 
engine=self.db_engine_spec.engine).format()
            except SupersetParseError.
                logger.warning("Unable to parse SQL to format it, passing it 
as-is")
   ```
   Here the sqlglot tool is used to parse the sql, the purpose is to make sure 
that there is only one statement, I guess it should be in order to avoid 
potential problems with custom SQL queries, but it shouldn't be necessary for 
the sql generated by superset itself


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