HIVE repeat
时间: 2024-02-10 07:32:18 浏览: 92
hive函数大全
HIVE does not have a built-in function for repeating a string. However, you can achieve a similar result by using the `concat_ws` function along with `split` and `explode`.
Here's an example:
```sql
SELECT concat_ws('', explode(split(repeat('Hello', 3), ''))) AS repeated_string;
```
This query will repeat the string "Hello" three times, resulting in the output "HelloHelloHello".
阅读全文