I am reading from csv file using rdd and get only one column from dataframe and convert it to array using scala toArray.
After that, I am using this array in a sql to check whether one field value in this array or not.
I am using Postgresql and jooq 3.11, but how much I try, I can not render the sql as it needs to be.
in below code is Array[String]. However, it is not generating the sql. I got these errors while I was experimenting on this issue with inline() and DSL.array, and in() versions of the same question:
Cannot interpret argument of type class org.jooq.impl.QuantifiedSelectImpl as a Field
Type class org.jooq.impl.Array is not supported in dialect DEFAULT
operator does not exist: character varying = character varying[]
Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts.
val ast = select(columns:_*).from(tableName).where(field("y").equal(inline(y))).and(field("x").equal(any(x))).asTable("t")
How can I use Array[String] to compare if my column value in this array.