Apache Drill - String Function LENGTH(x)



The following program shows the query for this function −

Query

0: jdbc:drill:zk = local> select length('apache drill') from (values(1));

Result

+———————-+
| EXPR$0 |
+———————-+
|   12   |
+———————-+

This query returns the length of the given string.

apache_drill_sql_operations.htm
Advertisements