Closed bmmptlgc closed 6 months ago
Hi @bmmptlgc,
the above predicate should be translated to WHERE stringField LIKE 'some string%'
. Could you provide more details about how it fails, please?
It seems to be that ksql doesn't support AND
and LIKE
on the same query.
I Just erased the schema portion of the error. All the relevant data is there.
It seems you've come across this ksql issue. I tested it with streams, and it behaves as anticipated. Could be the below approach a viable workaround for you until the issue is addressed in ksqldb
?
using ksqlDB.RestApi.Client.KSql.Query.Functions;
.Where(item => K.Functions.Instr(item.stringField, "some string") > 0)
That works perfectly, thank.
String comparison using
.Where(item => item.stringField.StartsWith("some string"))
fails. It would be nice if it translated toWHERE instr(stringField, 'some string') > 0
.