dongjoon-hyun commented on a change in pull request #31577:
URL: https://github.com/apache/spark/pull/31577#discussion_r578149933



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/internal/SQLConfSuite.scala
##########
@@ -451,4 +451,14 @@ class SQLConfSuite extends QueryTest with 
SharedSparkSession {
     val e2 = intercept[ParseException](sql("set time zone interval 19 hours"))
     assert(e2.getMessage contains "The interval value must be in the range of 
[-18, +18] hours")
   }
+
+  test("SPARK-34454: configs from the legacy namespace should be internal") {
+    val nonInternalLegacyConfigs = spark.sessionState.conf.getAllDefinedConfs
+      .filter { case (key, _, _, _) => key.contains(".legacy.") }

Review comment:
       I believe `spark.sql.legacy` is the reserved namespace for all legacy 
and we had better block those `.legacy.` addition in this PR (if you are worry 
about that).
   > But now, you say no-no - not any, only one spark.sql.legacy because 
somehow you guarantee that nobody adds a nested legacy namespace like 
spark.sql.super_feature.legacy.*.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to