I'm trying to create a simple Spark DataFrame with F# as it is used in Spark.Net test
let schema =
StructType (
[|
StructField("Name", new StringType())
StructField("Age", new IntegerType())
StructField("Date", new DateType())
|] )
let rows: obj[][] =
[|
[| "Alice"; 20; new Date(2020, 1, 1) |]
|]
session.CreateDataFrame(rows |> Array.map GenericRow, schema).Show(10, 0, false)
eventually, this code fails (as exactly the same code using .NET collections)
JVM method execution failed: Nonstatic method 'createDataFrame' failed for class '7' when called with 2 arguments ([Index=1, Type=GenericRow[], Value=Microsoft.Spark.Sql.GenericRow[]], [Index=2, Type=JvmObjectReference, Value=8], )