Skip to content

Commit 600aa16

Browse files
committed
Enhancement: Add doc for new config option.
1 parent addf131 commit 600aa16

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

docs/spark-catalog-oceanbase.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,13 @@ select * from spark_catalog.default.orders;
332332
<td>Int</td>
333333
<td>Controls the parallelism level for statistical queries (e.g., COUNT, MIN, MAX) by adding /*+ PARALLEL(N) */ hint to generated SQL.</td>
334334
</tr>
335+
<tr>
336+
<td>spark.sql.catalog.your_catalog_name.jdbc.query-timeout-hint-degree</td>
337+
<td>否</td>
338+
<td style="word-wrap: break-word;">-1</td>
339+
<td>Int</td>
340+
<td>Control the query timeout by adding /*+ query_timeout(N) */ hint to the generated SQL. This parameter can be used to specify the timeout in microseconds. The default value is -1, which means that the hint is not added.</td>
341+
</tr>
335342
<tr>
336343
<td>spark.sql.catalog.your_catalog_name.jdbc.disable-pk-table-use-where-partition</td>
337344
<td>No</td>

docs/spark-catalog-oceanbase_cn.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,13 @@ select * from spark_catalog.default.orders;
331331
<td>Int</td>
332332
<td>通过向生成的 SQL 添加 /*+ PARALLEL(N) */ hint 来控制统计查询(例如 COUNT、MIN、MAX)的并行级别。</td>
333333
</tr>
334+
<tr>
335+
<td>spark.sql.catalog.your_catalog_name.jdbc.query-timeout-hint-degree</td>
336+
<td>否</td>
337+
<td style="word-wrap: break-word;">-1</td>
338+
<td>Int</td>
339+
<td>通过向生成的 SQL 添加 /*+ query_timeout(n) */ hint 来控制查询超时时间。通过该参数可以设置超时时间,单位为微妙。默认为-1,表示不添加该Hint。</td>
340+
</tr>
334341
<tr>
335342
<td>spark.sql.catalog.your_catalog_name.jdbc.disable-pk-table-use-where-partition</td>
336343
<td>否</td>

0 commit comments

Comments
 (0)