Re: How can I set charset for flink sql?
Posted by
Timo Walther on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/How-can-I-set-charset-for-flink-sql-tp14431p14440.html
Hi,
currently Flink does not support this charset in a LIKE
expression. This is due to a limitation in the Apache Calcite
library. Maybe you can open an issue there.
The easiest solution for this is to implement your own scalar
function, that does a `string.contains("XXXX")`.
Here you can find some explanation how to implement a scalar
function:
https://ci.apache.org/projects/flink/flink-docs-release-1.4/dev/table/udfs.html#scalar-functions
I hope that helps.
Regards,
Timo
Am 25.07.17 um 12:18 schrieb 程骥:
My sql like this(contain a Chinese word)
Get exception when
I submit the job to cluster.
Is there anyone tell me how to deal with it,thanks!