Flink SQL 为什么不支持 utf8mb4 字符集?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Flink SQL 为什么不支持 utf8mb4 字符集?

LittleFall
问下大家,我在 flink 1.11 sql client 中执行

```sql
CREATE TABLE `test16`  (
  `c_first` varchar(16) CHARACTER SET `UTF-16LE`
)WITH ('connector' = 'blackhole');
```

是可以成功创建一张表的。

而执行

```sql
CREATE TABLE `test8`  (
  `c_first` varchar(16) CHARACTER SET `utf8mb4`
)WITH ('connector' = 'blackhole');
```

则会报错:
[ERROR] Could not execute SQL statement. Reason:
java.lang.NullPointerException: utf8mb4


从官网文档中查到支持的字符集有 'US-ASCII', 'ISO-8859-1', 'UTF-8', 'UTF-16BE', 'UTF-16LE',
'UTF-16'.

请问出于什么样的考量不支持 utf8mb4 字符集呢,未来有支持打算吗?



--
Sent from: http://apache-flink.147419.n8.nabble.com/