当我使用flink并创建Row对象时,遇到如下错误:
package scalatest
import org.apache.flink.api.common.typeinfo.TypeInformation
import org.apache.flink.table.api.Types
import org.apache.flink.types.Row
object InitRowObj {
// ok
val row_field :TypeInformation[Row]= Types.ROW(Types.INT)
// error: cannot resolve reference ROW with such signature
//val row_field = Types.ROW(Array("name", "number"), Array(Types.STRING, Types.INT))
}
为什么?