diff --git a/Sources/SparkConnect/SparkConnectError.swift b/Sources/SparkConnect/SparkConnectError.swift index 97407f4..df293e2 100644 --- a/Sources/SparkConnect/SparkConnectError.swift +++ b/Sources/SparkConnect/SparkConnectError.swift @@ -18,7 +18,7 @@ // /// A enum for ``SparkConnect`` package errors -enum SparkConnectError: Error { +public enum SparkConnectError: Error { case UnsupportedOperationException case InvalidSessionIDException case InvalidTypeException diff --git a/Sources/SparkConnect/StorageLevel.swift b/Sources/SparkConnect/StorageLevel.swift index 524b507..ef9d4d9 100644 --- a/Sources/SparkConnect/StorageLevel.swift +++ b/Sources/SparkConnect/StorageLevel.swift @@ -23,19 +23,19 @@ /// to replicate the `RDD` partitions on multiple nodes. public struct StorageLevel: Sendable { /// Whether the cache should use disk or not. - var useDisk: Bool + public var useDisk: Bool /// Whether the cache should use memory or not. - var useMemory: Bool + public var useMemory: Bool /// Whether the cache should use off-heap or not. - var useOffHeap: Bool + public var useOffHeap: Bool /// Whether the cached data is deserialized or not. - var deserialized: Bool + public var deserialized: Bool /// The number of replicas. - var replication: Int32 + public var replication: Int32 init(useDisk: Bool, useMemory: Bool, useOffHeap: Bool, deserialized: Bool, replication: Int32 = 1) { diff --git a/Tests/SparkConnectTests/DataFrameReaderTests.swift b/Tests/SparkConnectTests/DataFrameReaderTests.swift index 5c0979d..21d61e8 100644 --- a/Tests/SparkConnectTests/DataFrameReaderTests.swift +++ b/Tests/SparkConnectTests/DataFrameReaderTests.swift @@ -20,7 +20,7 @@ import Foundation import Testing -@testable import SparkConnect +import SparkConnect /// A test suite for `DataFrameReader` struct DataFrameReaderTests { diff --git a/Tests/SparkConnectTests/DataFrameTests.swift b/Tests/SparkConnectTests/DataFrameTests.swift index 36d6084..9ec515d 100644 --- a/Tests/SparkConnectTests/DataFrameTests.swift +++ b/Tests/SparkConnectTests/DataFrameTests.swift @@ -19,7 +19,7 @@ import Testing -@testable import SparkConnect +import SparkConnect /// A test suite for `DataFrame` struct DataFrameTests { diff --git a/Tests/SparkConnectTests/DataFrameWriterTests.swift b/Tests/SparkConnectTests/DataFrameWriterTests.swift index 3bb1142..9e9841a 100644 --- a/Tests/SparkConnectTests/DataFrameWriterTests.swift +++ b/Tests/SparkConnectTests/DataFrameWriterTests.swift @@ -20,7 +20,7 @@ import Foundation import Testing -@testable import SparkConnect +import SparkConnect /// A test suite for `DataFrameWriter` struct DataFrameWriterTests { diff --git a/Tests/SparkConnectTests/SQLTests.swift b/Tests/SparkConnectTests/SQLTests.swift index 3ed3568..172de05 100644 --- a/Tests/SparkConnectTests/SQLTests.swift +++ b/Tests/SparkConnectTests/SQLTests.swift @@ -20,7 +20,7 @@ import Foundation import Testing -@testable import SparkConnect +import SparkConnect /// A test suite for various SQL statements. struct SQLTests {