flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timo Walther <twal...@apache.org>
Subject Re: How can I set charset for flink sql?
Date Tue, 25 Jul 2017 14:05:06 GMT
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!



Mime
View raw message