8000 [WIP] Broadcast serialization bug by Niharikadutta · Pull Request #561 · dotnet/spark · GitHub
[go: up one dir, main page]

Skip to content

[WIP] Broadcast serialization bug #561

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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Marking classes as serializable to fix the Broadcast serialization issue
  • Loading branch information
Niharikadutta committed Jun 22, 2020
commit f564495fe0a770d8314f0ea54802eb1a28bb40e7
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ internal interface IJvmObjectReferenceProvider
/// <summary>
/// Reference to object created in JVM.
/// </summary>
[Serializable]
internal sealed class JvmObjectReference : IJvmObjectReferenceProvider
{
/// <summary>
Expand Down
1 change: 1 addition & 0 deletions src/csharp/Microsoft.Spark/SparkConf.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace Microsoft.Spark
/// Note that once a SparkConf object is passed to Spark, it is cloned and can no longer be
/// modified by the user. Spark does not support modifying the configuration at runtime.
/// </remarks>
[Serializable]
public sealed class SparkConf : IJvmObjectReferenceProvider
{
private readonly JvmObjectReference _jvmObject;
Expand Down
2 changes: 2 additions & 0 deletions src/csharp/Microsoft.Spark/SparkContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
Expand All @@ -18,6 +19,7 @@ namespace Microsoft.Spark
/// Only one `SparkContext` should be active per JVM. You must `stop()` the
/// active `SparkContext` before creating a new one.
/// </summary>
[Serializable]
public sealed class SparkContext : IJvmObjectReferenceProvider
{
private readonly JvmObjectReference _jvmObject;
Expand Down
2 changes: 2 additions & 0 deletions src/csharp/Microsoft.Spark/Sql/Catalog/Catalog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.Spark.Interop.Ipc;

namespace Microsoft.Spark.Sql.Catalog
{
/// <summary>
/// Catalog interface for Spark. To access this, use SparkSession.Catalog.
/// </summary>
[Serializable]
public sealed class Catalog : IJvmObjectReferenceProvider
{
private readonly JvmObjectReference _jvmObject;
Expand Down
1 change: 1 addition & 0 deletions src/csharp/Microsoft.Spark/Sql/SparkSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace Microsoft.Spark.Sql
/// <summary>
/// The entry point to programming Spark with the Dataset and DataFrame API.
/// </summary>
[Serializable]
public sealed class SparkSession : IDisposable, IJvmObjectReferenceProvider
{
private readonly JvmObjectReference _jvmObject;
Expand Down
0