Skip to content

Commit

Permalink
[FLINK-33600][table] new configOption to display query time cost
Browse files Browse the repository at this point in the history
  • Loading branch information
JingGe committed Dec 2, 2023
1 parent 5da214c commit b001f03
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 18 deletions.
36 changes: 18 additions & 18 deletions docs/layouts/shortcodes/generated/akka_configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,6 @@
<td>Integer</td>
<td>Min number of threads to cap factor-based parallelism number to.</td>
</tr>
<tr>
<td><h5>pekko.remote-fork-join-executor.parallelism-factor</h5></td>
<td style="word-wrap: break-word;">2.0</td>
<td>Double</td>
<td>The parallelism factor is used to determine thread pool size using the following formula: ceil(available processors * factor). Resulting size is then bounded by the parallelism-min and parallelism-max values.</td>
</tr>
<tr>
<td><h5>pekko.remote-fork-join-executor.parallelism-max</h5></td>
<td style="word-wrap: break-word;">16</td>
<td>Integer</td>
<td>Max number of threads to cap factor-based parallelism number to.</td>
</tr>
<tr>
<td><h5>pekko.remote-fork-join-executor.parallelism-min</h5></td>
<td style="word-wrap: break-word;">8</td>
<td>Integer</td>
<td>Min number of threads to cap factor-based parallelism number to.</td>
</tr>
<tr>
<td><h5>pekko.framesize</h5></td>
<td style="word-wrap: break-word;">"10485760b"</td>
Expand All @@ -98,6 +80,24 @@
<td>Duration</td>
<td>Timeout used for the lookup of the JobManager. The timeout value has to contain a time-unit specifier (ms/s/min/h/d).</td>
</tr>
<tr>
<td><h5>pekko.remote-fork-join-executor.parallelism-factor</h5></td>
<td style="word-wrap: break-word;">2.0</td>
<td>Double</td>
<td>The parallelism factor is used to determine thread pool size using the following formula: ceil(available processors * factor). Resulting size is then bounded by the parallelism-min and parallelism-max values.</td>
</tr>
<tr>
<td><h5>pekko.remote-fork-join-executor.parallelism-max</h5></td>
<td style="word-wrap: break-word;">16</td>
<td>Integer</td>
<td>Max number of threads to cap factor-based parallelism number to.</td>
</tr>
<tr>
<td><h5>pekko.remote-fork-join-executor.parallelism-min</h5></td>
<td style="word-wrap: break-word;">8</td>
<td>Integer</td>
<td>Min number of threads to cap factor-based parallelism number to.</td>
</tr>
<tr>
<td><h5>pekko.retry-gate-closed-for</h5></td>
<td style="word-wrap: break-word;">50</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<td>Integer</td>
<td>Deprecated, please use table.display.max-column-width instead. When printing the query results, this parameter determines the number of characters shown on screen before truncating. This only applies to columns with variable-length types (e.g. CHAR, VARCHAR, STRING) in streaming mode. Fixed-length types and all types in batch mode are printed using a deterministic column width.</td>
</tr>
<tr>
<td><h5>sql-client.display.print-time-cost</h5><br> <span class="label label-primary">Batch</span></td>
<td style="word-wrap: break-word;">true</td>
<td>Boolean</td>
<td>Determine whether to display the time consumption of the query. By default, no query time cost will be displayed.</td>
</tr>
<tr>
<td><h5>sql-client.display.show-line-numbers</h5><br> <span class="label label-primary">Batch</span> <span class="label label-primary">Streaming</span></td>
<td style="word-wrap: break-word;">false</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ private SqlClientOptions() {}
+ "This only applies to columns with variable-length types (e.g. CHAR, VARCHAR, STRING) in streaming mode. "
+ "Fixed-length types and all types in batch mode are printed using a deterministic column width.");

@Documentation.TableOption(execMode = Documentation.ExecMode.BATCH)
public static final ConfigOption<Boolean> DISPLAY_QUERY_TIME_COST =
ConfigOptions.key("sql-client.display.print-time-cost")
.booleanType()
.defaultValue(true)
.withDescription(
"Determine whether to display the time consumption of the query. By default, no query time cost will be displayed.");

@Documentation.TableOption(execMode = Documentation.ExecMode.BATCH_STREAMING)
public static final ConfigOption<String> DISPLAY_DEFAULT_COLOR_SCHEMA =
ConfigOptions.key("sql-client.display.color-schema")
Expand Down

0 comments on commit b001f03

Please sign in to comment.