You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 function foo_bar has the ( immediately beside it (meaning the function will now be applied).
Which SQL and options did you provide as input?
CREATE TEMPORARY FUNCTION foo_bar AS'FooBar' USING jar 'hdfs://localhost:9000/user/hive/FooBar.jar';
SELECT foo_bar ('fwfrgwre12a3') fun_res ;
Expected Output
CREATE TEMPORARY FUNCTION foo_bar AS'FooBar' USING jar 'hdfs://localhost:9000/user/hive/FooBar.jar';
SELECT
foo_bar('fwfrgwre12a3') fun_res;
Actual Output
CREATE TEMPORARY FUNCTION foo_bar AS'FooBar' USING jar 'hdfs://localhost:9000/user/hive/FooBar.jar';
SELECT
foo_bar ('fwfrgwre12a3') fun_res;
Usage
How are you calling / using the library?
Right-click, then use "Format Document" option
What SQL language(s) does this apply to?
Specific example was a .hql extension, but multiple SQL variants support Temporary Functions, so this should be widely implemented
Which SQL Formatter version are you using?
Prettier SQL VSCode v1.6.0
The text was updated successfully, but these errors were encountered:
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 function
foo_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
The text was updated successfully, but these errors were encountered: