[CH] format_string diff in CH
Open
enhancement
good first issue
- Dominant language
- Scala
- Stars
- 1.6k
- Forks
- 657
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 80
Description
### Description
when actual args number exceeds expected args number, SPARK will ignore it, and CH will throw exception.
``` sql
0: jdbc:hive2://localhost:10000/> select format_string('%d%s', 1, 'hello', 2)
. . . . . . . . . . . . . . . . > ;
+-----------------------------------+
| format_string(%d%s, 1, hello, 2) |
+-----------------------------------+
| 1hello |
+-----------------------------------+
```
``` sql
select printf('%d%s', 1, 'hello', 2)
```
会报类似的错
```
Number of arguments for function printf doesn't match: passed 3, but format is %d%s
```
Contributor guide
Assessment
This issue has not been assessed yet.