john-bodley commented on pull request #9862:
URL: 
https://github.com/apache/incubator-superset/pull/9862#issuecomment-631588923


   @nytai with regards to your original problem I wonder if the solution is to 
remove the statement if in solely represents a comment.  
   
   We could use the same `sqlparse` logic per 
[here](https://github.com/andialbrecht/sqlparse/blob/5faadeba8e337a7344907e1eae2abb07392d9ce0/sqlparse/filters/others.py#L44),
 copy the statement and see if the filter results in a empty statement, if so 
then it could be skipped.


----------------------------------------------------------------
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:
[email protected]



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

Reply via email to