apache / apache/gluten

[CH] format_string diff in CH

Open
#6,765 8 comments 0 reactions 1 assignee Claimed by @ayushwth View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.