qiaojialin commented on code in PR #6250: URL: https://github.com/apache/iotdb/pull/6250#discussion_r896450981
########## docs/UserGuide/UDF-Library/String-Processing.md: ########## @@ -21,6 +21,582 @@ # String Processing +## Length + +### Usage + +The function is used to get the length of input series. + +**Name:** LENGTH + +**Input Series:** Only support a single input series. The data type is TEXT. + +**Output Series:** Output a single series. The type is INT32. + +**Note:** Returns NULL if input is NULL. + +### Examples + +Input series: + +``` ++-----------------------------+--------------+ +| Time|root.sg1.d1.s1| ++-----------------------------+--------------+ +|1970-01-01T08:00:00.001+08:00| 1test1| +|1970-01-01T08:00:00.002+08:00| 22test22| ++-----------------------------+--------------+ +``` + +SQL for query: + +```sql +select s1, s2, length(s2) from root.sg1.d1 from root.sg1.d1 Review Comment: select s1, length(s1) from root.sg1.d1 -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
