diff --git a/docs/configuration/settings.md b/docs/configuration/settings.md index a1e0d5213..20a1bf8d9 100644 --- a/docs/configuration/settings.md +++ b/docs/configuration/settings.md @@ -518,7 +518,11 @@ Setting them in `$KYUUBI_HOME/conf/kyuubi-defaults.conf` supplies with default v ### Via JDBC Connection URL -Setting them in the JDBC Connection URL supplies session-specific for each SQL engine. For example: ```jdbc:hive2://localhost:10009/default;#spark.sql.shuffle.partitions=2;spark.executor.memory=5g``` +Setting them in the JDBC Connection URL supplies session-specific for each SQL engine. For example: + +``` +jdbc:hive2://localhost:10009/default;#spark.sql.shuffle.partitions=2;spark.executor.memory=5g +``` - **Runtime SQL Configuration** - For [Runtime SQL Configurations](https://spark.apache.org/docs/latest/configuration.html#runtime-sql-configuration), they will take affect every time @@ -550,7 +554,11 @@ The below options in `kyuubi-defaults.conf` will set `parallelism.default: 2` an ### Via JDBC Connection URL -Setting them in the JDBC Connection URL supplies session-specific for each SQL engine. For example: ```jdbc:hive2://localhost:10009/default;#flink.parallelism.default=2;flink.taskmanager.memory.process.size=5g``` +Setting them in the JDBC Connection URL supplies session-specific for each SQL engine. For example: + +``` +jdbc:hive2://localhost:10009/default;#flink.parallelism.default=2;flink.taskmanager.memory.process.size=5g +``` ### Via SET Statements @@ -577,7 +585,11 @@ The below options in `kyuubi-defaults.conf` will set `query_max_stage_count: 500 ### Via JDBC Connection URL -Setting them in the JDBC Connection URL supplies session-specific for each SQL engine. For example: ```jdbc:hive2://localhost:10009/default;#trino.query_max_stage_count=500;trino.parse_decimal_literals_as_double=true``` +Setting them in the JDBC Connection URL supplies session-specific for each SQL engine. For example: + +``` +jdbc:hive2://localhost:10009/default;#trino.query_max_stage_count=500;trino.parse_decimal_literals_as_double=true +``` ### Via SET Statements diff --git a/kyuubi-server/src/test/scala/org/apache/kyuubi/config/AllKyuubiConfiguration.scala b/kyuubi-server/src/test/scala/org/apache/kyuubi/config/AllKyuubiConfiguration.scala index 7cb4c9002..75226a8b6 100644 --- a/kyuubi-server/src/test/scala/org/apache/kyuubi/config/AllKyuubiConfiguration.scala +++ b/kyuubi-server/src/test/scala/org/apache/kyuubi/config/AllKyuubiConfiguration.scala @@ -125,12 +125,12 @@ class AllKyuubiConfiguration extends KyuubiFunSuite { | override all settings in `$SPARK_HOME/conf/spark-defaults.conf`""" += "### Via JDBC Connection URL" += """ Setting them in the JDBC Connection URL - | supplies session-specific for each SQL engine. For example: - | ``` - |jdbc:hive2://localhost:10009/default;# - |spark.sql.shuffle.partitions=2;spark.executor.memory=5g - |``` - |""" += + | supplies session-specific for each SQL engine. For example:""" ++= + // scalastyle:off + """``` + |jdbc:hive2://localhost:10009/default;#spark.sql.shuffle.partitions=2;spark.executor.memory=5g + |```""" += + // scalastyle:on "" += "- **Runtime SQL Configuration**" += """ - For [Runtime SQL Configurations]( @@ -168,11 +168,14 @@ class AllKyuubiConfiguration extends KyuubiFunSuite { |```""" += """The below options in `kyuubi-defaults.conf` will set `parallelism.default: 2` | and `taskmanager.memory.process.size: 5g` into flink configurations.""" += - "### Via JDBC Connection URL" += - """Setting them in the JDBC Connection URL supplies session-specific - | for each SQL engine. For example: ```jdbc:hive2://localhost:10009/default; - |#flink.parallelism.default=2;flink.taskmanager.memory.process.size=5g``` - |""" += + "### Via JDBC Connection URL" ++= + "Setting them in the JDBC Connection URL supplies session-specific for each SQL engine." + + " For example:" ++= + // scalastyle:off + """``` + | jdbc:hive2://localhost:10009/default;#flink.parallelism.default=2;flink.taskmanager.memory.process.size=5g + |```""" += + // scalastyle:on "### Via SET Statements" += """Please refer to the Flink official online documentation for [SET Statements] |(https://nightlies.apache.org/flink/flink-docs-stable/docs/dev/table/sql/set/)""" @@ -199,10 +202,14 @@ class AllKyuubiConfiguration extends KyuubiFunSuite { """The below options in `kyuubi-defaults.conf` will set `query_max_stage_count: 500` | and `parse_decimal_literals_as_double: true` into trino session properties.""" += "### Via JDBC Connection URL" += - """Setting them in the JDBC Connection URL supplies session-specific - | for each SQL engine. For example: ```jdbc:hive2://localhost:10009/default; - |#trino.query_max_stage_count=500;trino.parse_decimal_literals_as_double=true``` + "Setting them in the JDBC Connection URL supplies session-specific for each SQL engine." + + " For example:" ++= + // scalastyle:off + """ ``` + | jdbc:hive2://localhost:10009/default;#trino.query_max_stage_count=500;trino.parse_decimal_literals_as_double=true + | ``` |""" += + // scalastyle:on "### Via SET Statements" += """Please refer to the Trino official online documentation for [SET Statements] |(https://trino.io/docs/current/sql/set-session.html)"""