File tree Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Expand file tree Collapse file tree 4 files changed +25
-5
lines changed Original file line number Diff line number Diff line change 93
93
docker run swiftlang/swift:nightly-6.2-noble uname -a
94
94
docker run -v $PWD:/spark -w /spark swiftlang/swift:nightly-6.2-noble swift build
95
95
96
+ integration-test-mac-spark41 :
97
+ runs-on : macos-15
98
+ timeout-minutes : 20
99
+ steps :
100
+ - uses : actions/checkout@v4
101
+ - uses : swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
102
+ with :
103
+ swift-version : " 6.1"
104
+ - name : Test
105
+ run : |
106
+ curl -LO https://dist.apache.org/repos/dist/dev/spark/v4.1.0-preview1-rc1-bin/spark-4.1.0-preview1-bin-hadoop3.tgz
107
+ tar xvfz spark-4.1.0-preview1-bin-hadoop3.tgz
108
+ mv spark-4.1.0-preview1-bin-hadoop3 /tmp/spark
109
+ cd /tmp/spark/sbin
110
+ ./start-connect-server.sh
111
+ cd -
112
+ swift test --no-parallel
113
+
96
114
integration-test-mac :
97
115
runs-on : macos-15
98
116
timeout-minutes : 20
Original file line number Diff line number Diff line change @@ -431,7 +431,6 @@ public actor DataFrame: Sendable {
431
431
values. append ( array. asAny ( i) as! Date )
432
432
case . timeInfo( . timestamp) :
433
433
let timestampType = column. data. type as! ArrowTypeTimestamp
434
- assert ( timestampType. timezone == " Etc/UTC " )
435
434
let timestamp = array. asAny ( i) as! Int64
436
435
let timeInterval =
437
436
switch timestampType. unit {
Original file line number Diff line number Diff line change @@ -332,8 +332,10 @@ struct DataFrameTests {
332
332
@Test
333
333
func isLocal( ) async throws {
334
334
let spark = try await SparkSession . builder. getOrCreate ( )
335
- #expect( try await spark. sql ( " SHOW DATABASES " ) . isLocal ( ) )
336
- #expect( try await spark. sql ( " SHOW TABLES " ) . isLocal ( ) )
335
+ if !( await spark. version. starts ( with: " 4.1 " ) ) { // TODO(SPARK-52746)
336
+ #expect( try await spark. sql ( " SHOW DATABASES " ) . isLocal ( ) )
337
+ #expect( try await spark. sql ( " SHOW TABLES " ) . isLocal ( ) )
338
+ }
337
339
#expect( try await spark. range ( 1 ) . isLocal ( ) == false )
338
340
await spark. stop ( )
339
341
}
@@ -936,8 +938,9 @@ struct DataFrameTests {
936
938
@Test
937
939
func timestamp( ) async throws {
938
940
let spark = try await SparkSession . builder. getOrCreate ( )
941
+ // TODO(SPARK-52747)
939
942
let df = try await spark. sql (
940
- " SELECT TIMESTAMP '2025-05-01 16:23:40 ', TIMESTAMP '2025-05-01 16:23:40.123456 ' " )
943
+ " SELECT TIMESTAMP '2025-05-01 16:23:40Z ', TIMESTAMP '2025-05-01 16:23:40.123456Z ' " )
941
944
let expected = [
942
945
Row (
943
946
Date ( timeIntervalSince1970: 1746116620.0 ) , Date ( timeIntervalSince1970: 1746116620.123456 ) )
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ struct SparkSessionTests {
96
96
await SparkSession . builder. clear ( )
97
97
let spark = try await SparkSession . builder. getOrCreate ( )
98
98
let version = await spark. version
99
- #expect( version. starts ( with: " 4.0.0 " ) || version. starts ( with: " 3.5. " ) )
99
+ #expect( version. starts ( with: " 4. " ) || version. starts ( with: " 3.5. " ) )
100
100
await spark. stop ( )
101
101
}
102
102
You can’t perform that action at this time.
0 commit comments