sqlparse
sqlparse copied to clipboard
[fix] issue262 fixing SQL-Hint deleting when clearing script from comments
#Fixing SQL-Hint deleting when clearing script from comments #262
What is done:
- Added checking token type for Token.Comment.Multiline.Hint and Token.Comment.Single.Hint
- Added some tests for covering basic behavior
- Checked w/ tests from project
- Checked on production SQL scripts
- Checked as part of Airflow engine, because this library is used for splitting SQL statements before execute. And seems like this helped and Hints are working now.
Before submitting your pull request please have a look at the following checklist:
- [x] ran the tests (
pytest) - [x] all style issues addressed (
flake8) - [x] your changes are covered by tests
- [x] your changes are documented, if needed
In addition, please take care to provide a proper description on what your change does, fixes or achieves when submitting the pull request.
Hi, @andialbrecht! Please consider to review this pr, for our project it is a vital to use SQL-Hints to help Vertica increase performance w/ complex scripts
It's ok, same :D