Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
The SQL config spark.sql.legacy.allowZeroIndexInFormatString doesn't allow to use the zero index. Even set it to true, users get the error:
> select format_string('%0$s', 'Hello'); Illegal format argument index = 0 java.util.IllegalFormatArgumentIndexException: Illegal format argument index = 0 at java.base/java.util.Formatter$FormatSpecifier.index(Formatter.java:2808) at java.base/java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2879)
Attachments
Issue Links
- links to