mgaido91 commented on a change in pull request #3615: NIFI-6500 Support Padding functions in Expression Language URL: https://github.com/apache/nifi/pull/3615#discussion_r309697056
########## File path: nifi-docs/src/main/asciidoc/expression-language-guide.adoc ########## @@ -977,6 +977,76 @@ Expressions will provide the following results: +[.function] +=== padLeft + +*Description*: [.description]#The `padLeft` function prepends the given padding string (or `'_'`, if nothing is provided) to the argument `String` until the passed desired length is reached. + +It returns the argument as is if its length is already equal or higher than the desired length. It returns `null` if the Review comment: nit: I think it would be great to leave a note in the docs about what happens when the desired length is greater than MAX_INT and when it is negative. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
