Closed
Description
Describe the bug
The UDFs in .NET Interactive](https://docs.microsoft.com/en-us/dotnet/spark/how-to-guides/dotnet-interactive-udf-issue#define-a-udf-in-net-interactive) fails on macOS Catalina using .NET 5 and Jupyter.
To Reproduce
Steps to reproduce the behavior:
- Launch Spark using
spark-submit --class org.apache.spark.deploy.dotnet.DotnetRunner --master local microsoft-spark-3-0_2.12-1.0.0.jar debug
- Launch Jupyter using
jupyter notebook
- Create a new notebook
- Follow the steps in UDFs in .NET Interactive
- Executing cell [Documentation] Update README.md #5 (particularly
df2.Show();
) fails with:
[2020-12-14T13:27:09.8868410Z] [Triton-273] [Error] [JvmBridge] JVM method execution failed: Nonstatic method 'showString' failed for class '142' when called with 3 arguments ([Index=1, Type=Int32, Value=20], [Index=2, Type=Int32, Value=20], [Index=3, Type=Boolean, Value=False], )
[2020-12-14T13:27:09.8874210Z] [Triton-273] [Error] [JvmBridge] org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 28.0 failed 1 times, most recent failure: Lost task 0.0 in stage 28.0 (TID 26, triton-273.fritz.box, executor driver): org.apache.spark.api.python.PythonException: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Spark.Utils.UdfSerDe.<>c.<DeserializeType>b__10_0(TypeData td) in /_/src/csharp/Microsoft.Spark/Utils/UdfSerDe.cs:line 265
(rest of traceback omitted for brevity)
Expected behavior
- Should be able to use UDFs
- The example in UDFs in .NET Interactive should work
Screenshots
NA
Desktop (please complete the following information):
- OS: macOS 10.15.7
- .NET 5 (5.0.100)
- Apache Spark 3.0.1
- .NET for Apache Spark v1.0.0 (netcoreapp3.1, macOS)
- Jupyter:
- jupyter core : 4.6.3
- jupyter-notebook : 6.1.1
- qtconsole : 4.7.5
- ipython : 7.17.0
- ipykernel : 5.3.4
- jupyter client : 6.1.6
- jupyter lab : not installed
- nbconvert : 5.6.1
- ipywidgets : 7.5.1
- nbformat : 5.0.7
- traitlets : 4.3.3
- Chrome 86.0.4240.198 (Official Build) (x86_64)
Additional context
NA