You should try it out and see. Here are the test cases
https://github.com/tobymao/sqlglot/blob/main/tests/fixtures/...
I can even parse and optimize TPC-H https://github.com/tobymao/sqlglot/blob/main/tests/fixtures/....
SQLGlot's parser handles a superset of SQL, so it's much more flexible than any one engine.