I have the below piece of code in my scala program that uses Flink's Table API.
val custTS = new CsvTableSource("D:\\input\\customerinfo.csv",
Array("customerId","name","address","zip"),
Array(String,String,String,Long))
The editor is displaying error at the third line for the three 'String's with the error message "Object java.lang.String not a value". 'String' is used in many other places in the rest of the code. But it doesn't throw error anywhere else. I saw a couple of Stackoverflow questions with similar issues mentioned, but I couldn't fix this based on the solutions mentioned. The imports in the program are given below.
import org.apache.flink.api.scala._
import org.apache.flink.table.api.TableEnvironment
import org.apache.flink.table.api.scala._
import org.apache.flink.table.sinks.CsvTableSink
import org.apache.flink.table.sources.CsvTableSource
I have used 'String' in many other scala programs for Flink. But I haven't encountered such an error in any of those programs.