This is an automated email from the ASF dual-hosted git repository.

jark pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit d6967dd7301e82fa102f756e16635dabce1c550d
Author: fengli <[email protected]>
AuthorDate: Thu Jul 20 20:29:45 2023 +0800

    [FLINK-32610][json] Add document for Json option decode.json-parser.enabled
---
 docs/content.zh/docs/connectors/table/formats/json.md | 7 +++++++
 docs/content/docs/connectors/table/formats/json.md    | 8 ++++++++
 2 files changed, 15 insertions(+)

diff --git a/docs/content.zh/docs/connectors/table/formats/json.md 
b/docs/content.zh/docs/connectors/table/formats/json.md
index f7e3040de1f..f1acdd7a001 100644
--- a/docs/content.zh/docs/connectors/table/formats/json.md
+++ b/docs/content.zh/docs/connectors/table/formats/json.md
@@ -135,6 +135,13 @@ Format 参数
       <td>Boolean</td>
       <td>将所有 DECIMAL 类型的数据保持原状,不使用科学计数法表示。例:<code>0.000000027</code> 默认会表示为 
<code>2.7E-8</code>。当此选项设为 true 时,则会表示为 <code>0.000000027</code>。</td>
     </tr>
+    <tr>
+      <td><h5>decode.json-parser.enabled</h5></td>
+      <td>选填</td>
+      <td style="word-wrap: break-word;">true</td>
+      <td>Boolean</td>
+      <td><code>JsonParser</code> 是 Jackson 提供的流式读取 JSON 数据的 API。与 
<code>JsonNode</code> 方式相比,这种方式读取速度更快,内存消耗更少。同时,<code>JsonParser</code> 
在读取数据时还支持嵌套字段的投影下推。该参数默认启用。如果遇到任何不兼容性问题,可以禁用并回退到 <code>JsonNode</code> 方式。</td>
+    </tr>
     </tbody>
 </table>
 
diff --git a/docs/content/docs/connectors/table/formats/json.md 
b/docs/content/docs/connectors/table/formats/json.md
index d9c5e5cfa41..52345a42ea1 100644
--- a/docs/content/docs/connectors/table/formats/json.md
+++ b/docs/content/docs/connectors/table/formats/json.md
@@ -146,6 +146,14 @@ Format Options
       <td>Boolean</td>
       <td>Encode all decimals as plain numbers instead of possible scientific 
notations. By default, decimals may be written using scientific notation. For 
example, <code>0.000000027</code> is encoded as <code>2.7E-8</code> by default, 
and will be written as <code>0.000000027</code> if set this option to true.</td>
     </tr>
+    <tr>
+      <td><h5>decode.json-parser.enabled</h5></td>
+      <td>optional</td>
+      <td></td>
+      <td style="word-wrap: break-word;">true</td>
+      <td>Boolean</td>
+      <td>Whether to use the Jackson <code>JsonParser</code> to decode json. 
<code>JsonParser</code> is the Jackson JSON streaming API to read JSON data. 
This is much faster and consumes less memory compared to the previous 
<code>JsonNode</code> approach. Meanwhile, <code>JsonParser</code> also 
supports nested projection pushdown when reading data. This option is enabled 
by default. You can disable and fallback to the previous <code>JsonNode</code> 
approach when encountering any incompat [...]
+    </tr>
     </tbody>
 </table>
 

Reply via email to