Skip to content

Commit de87d7f

Browse files
authored
[Spark] Flip isDeltaTable.throwOnError to true (#3422)
## Description - Change the default value of the isDeltaTable.throwOnError flag to `true`. ## How was this patch tested? Existing tests (was already `true` in testing). ## Does this PR introduce _any_ user-facing changes? Resolving a Delta that is accessed by path (e.g. DeltaTable.forPath() or SELECT ... FROM delta.<path>) will now forward exceptions thrown while accessing , instead of always throwing a DELTA_MISSING_DELTA_TABLE exception. This helps locating issues such as missing access permissions without having to through support.
1 parent 69230a1 commit de87d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spark/src/main/scala/org/apache/spark/sql/delta/sources/DeltaSQLConf.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ trait DeltaSQLConfBase {
10001000
| Delta table.
10011001
|""".stripMargin)
10021002
.booleanConf
1003-
.createWithDefault(Utils.isTesting)
1003+
.createWithDefault(true)
10041004

10051005
val DELTA_LEGACY_STORE_WRITER_OPTIONS_AS_PROPS =
10061006
buildConf("legacy.storeOptionsAsProperties")

0 commit comments

Comments
 (0)