-
Notifications
You must be signed in to change notification settings - Fork 326
How to pass StructType between .NET & JVM? #651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am working on adding support to pass |
Great, i'll leave that method off until 649 is ready. |
I'm pretty sure we solved this already. You should use spark/src/csharp/Microsoft.Spark/Sql/Types/DataType.cs Lines 89 to 95 in 9239e72
Please see this example spark/src/csharp/Microsoft.Spark/Sql/DataFrameReader.cs Lines 49 to 53 in 9239e72
|
got it, thanks |
For FeatureHasher I need to take a StructType and pass it over to the JVM as a parameter (https://spark.apache.org/docs/2.4.0/api/java/org/apache/spark/ml/feature/FeatureHasher.html#transformSchema-org.apache.spark.sql.types.StructType-).
At the moment I get "System.NotSupportedException : Type Microsoft.Spark.Sql.Types.StructType not supported yet".
Is the way to implement it to serialise/deserialise as json across the wire or is there a better way? StructType already has a constructor from json and a json value to get the json from it on the .NET side.
I'm not sure if I am missing something because shouldn't it just be treated like any other jvm object reference?
The text was updated successfully, but these errors were encountered: