@@ -31,10 +31,10 @@ struct MergeIntoWriterTests {
3131 let tableName = " TABLE_ " + UUID( ) . uuidString. replacingOccurrences ( of: " - " , with: " " )
3232 try await SQLHelper . withTable ( spark, tableName) ( {
3333 let mergeInto = try await spark. range ( 1 ) . mergeInto ( tableName, " true " )
34- try await #require( throws: Error . self ) {
34+ try await #require( throws: SparkConnectError . TableOrViewNotFound ) {
3535 try await mergeInto. whenMatched ( ) . delete ( ) . merge ( )
3636 }
37- try await #require( throws: Error . self ) {
37+ try await #require( throws: SparkConnectError . TableOrViewNotFound ) {
3838 try await mergeInto. whenMatched ( " true " ) . delete ( ) . merge ( )
3939 }
4040 } )
@@ -47,10 +47,10 @@ struct MergeIntoWriterTests {
4747 let tableName = " TABLE_ " + UUID( ) . uuidString. replacingOccurrences ( of: " - " , with: " " )
4848 try await SQLHelper . withTable ( spark, tableName) ( {
4949 let mergeInto = try await spark. range ( 1 ) . mergeInto ( tableName, " true " )
50- try await #require( throws: Error . self ) {
50+ try await #require( throws: SparkConnectError . TableOrViewNotFound ) {
5151 try await mergeInto. whenNotMatched ( ) . insertAll ( ) . merge ( )
5252 }
53- try await #require( throws: Error . self ) {
53+ try await #require( throws: SparkConnectError . TableOrViewNotFound ) {
5454 try await mergeInto. whenNotMatched ( " true " ) . insertAll ( ) . merge ( )
5555 }
5656 } )
@@ -63,10 +63,10 @@ struct MergeIntoWriterTests {
6363 let tableName = " TABLE_ " + UUID( ) . uuidString. replacingOccurrences ( of: " - " , with: " " )
6464 try await SQLHelper . withTable ( spark, tableName) ( {
6565 let mergeInto = try await spark. range ( 1 ) . mergeInto ( tableName, " true " )
66- try await #require( throws: Error . self ) {
66+ try await #require( throws: SparkConnectError . TableOrViewNotFound ) {
6767 try await mergeInto. whenNotMatchedBySource ( ) . delete ( ) . merge ( )
6868 }
69- try await #require( throws: Error . self ) {
69+ try await #require( throws: SparkConnectError . TableOrViewNotFound ) {
7070 try await mergeInto. whenNotMatchedBySource ( " true " ) . delete ( ) . merge ( )
7171 }
7272 } )
0 commit comments