AngersZhuuuu commented on a change in pull request #34453:
URL: https://github.com/apache/spark/pull/34453#discussion_r770259676
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -1158,6 +1158,14 @@ object SQLConf {
.intConf
.createWithDefault(200)
+ val THRIFTSERVER_SEPARATE_DISPLAY_SYSTEM_FUNCTION =
+ buildConf("spark.sql.thriftserver.separateDisplaySystemFunctions")
+ .doc("When true, Spark Thrift Server will return databases' system
functions metadata " +
+ "only once, and Spark will change function schema as `SYSTEM`.")
Review comment:
> Does Apache Spark use `SYSTEM` before in other places?
sessionCatalog.listFunctions()
```
// so there can be duplicates.
functions.map {
case f if FunctionRegistry.functionSet.contains(f) => (f, "SYSTEM")
case f if TableFunctionRegistry.functionSet.contains(f) => (f,
"SYSTEM")
case f => (f, "USER")
}.distinct
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]