The PRINTF function returns the formatted input according to the printf-style format string. When using hive scripts, this would be beneficial.
Syntax: printf(String format, Obj… args)
Example:
SELECT PRINTF(‘hello’)
This returns “hello” as output.
While using the Hive scripts, it can be added as follows:
2 comments