Skip to content

Commit dc63dbe

Browse files
committed
address comments
1 parent 7c7caf8 commit dc63dbe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/internal/ReadOnlySQLConf.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ class ReadOnlySQLConf(context: TaskContext) extends SQLConf {
5151
override def clear(): Unit = {
5252
throw new UnsupportedOperationException("Cannot mutate ReadOnlySQLConf.")
5353
}
54+
55+
override def clone(): SQLConf = {
56+
throw new UnsupportedOperationException("Cannot clone/copy ReadOnlySQLConf.")
57+
}
58+
59+
override def copy(entries: (ConfigEntry[_], Any)*): SQLConf = {
60+
throw new UnsupportedOperationException("Cannot clone/copy ReadOnlySQLConf.")
61+
}
5462
}
5563

5664
class TaskContextConfigProvider(context: TaskContext) extends ConfigProvider {

0 commit comments

Comments
 (0)