HF RL Explorer

SQL formatting produces incorrect output with reindent=True

SQL formatting produces incorrect output with reindent=True: a task in UltraTerminal (Harbor dataset). When using sqlparse.format() with reindent=True , the formatted SQL output is completely broken and produces unexpected results. The formatting appears to be processing tokens in reverse order…

The task

When using `sqlparse.format()` with `reindent=True`, the formatted SQL output is completely broken and produces unexpected results. The formatting appears to be processing tokens in reverse order and using incorrect method names.

Part of harness-hub/UltraTerminal.