Apache Drill - String Function RPAD(x,y,z)



The following program shows the query for this function −

Query

0: jdbc:drill:zk = local> select rpad('tutorialspoint',2,4) from (values(1));

Result

+————————+
| EXPR$0 |
+———————-+
|   tu   |
+——————-—+

Right pad the value of the given string.

apache_drill_sql_operations.htm
Advertisements