mistercrunch commented on issue #29729: URL: https://github.com/apache/superset/issues/29729#issuecomment-2270082997
I tried to recreate using `sqlparse.format` but couldn't, got GPT to write this, but wasn't conclusive ```python import sqlparse sql = "SELECT case when __time > TIMESTAMPADD(DAY, -7, CURRENT_DATE) AND __time < TIMESTAMPADD(DAY, -7, CURRENT_DATE) FROM t;" formatted_sql = sqlparse.format(sql, reindent=True, keyword_case='upper', strip_comments=True) print(formatted_sql) ``` -- 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]
