Closed dmill166 closed 6 months ago
Perusing the README, I did see that there is a successor to this extension, SQL Formatter VS Code (currently on v4.1.1).
I want to clarify that this issue ALSO exists there (would appreciate a fix in either/both locs :) ).
Thanks for reporting.
This is duplicate of #444. It's a known problem with all user-defined functions (not just temporary ones).
Issue is with use of temporary function in SQL scripts. I illustrate the problem below. You can see that in the formatted result, there is now a space between foo_bar and the left parentheses
(
. This is no longer treated as a function and the function itself is no longer applied. I also provide a corrected output where after formatting, the temporary functionfoo_bar
has the(
immediately beside it (meaning the function will now be applied).Which SQL and options did you provide as input?
Expected Output
Actual Output
Usage