You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by GitBox <gi...@apache.org> on 2023/01/17 11:15:17 UTC

[GitHub] [inlong-website] featzhang opened a new pull request, #683: [INLONG-682][Document] Add format related documents

featzhang opened a new pull request, #683:
URL: https://github.com/apache/inlong-website/pull/683

   ### Prepare a Pull Request
   *(Change the title refer to the following example)*
   
   - [INLONG-682][Document] Add format related documents
   
   - Fixes #682 
   
   ### Motivation
   
   *Explain here the context, and why you're making that change. What is the problem you're trying to solve.*
   
   ### Modifications
   
   *Describe the modifications you've done.*
   
   ### Verifying this change
   
   - [ ] Make sure that the change passes the CI checks.
   
   *(Please pick either of the following options)*
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   *(or)*
   
   This change is already covered by existing tests, such as *(please describe tests)*.
   
   *(or)*
   
   This change added tests and can be verified as follows:
   
   *(example:)*
     - *Added integration tests for end-to-end deployment with large payloads (10MB)*
     - *Extended integration test for recovery after broker failure*
   
   ### Documentation
   
     - Does this pull request introduce a new feature? (yes / no)
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
     - If a feature is not applicable for documentation, explain why?
     - If a feature is not documented yet in this PR, please create a followup issue for adding the documentation
   


-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong-website] healchow commented on a diff in pull request #683: [INLONG-682][Document] Sort out the format concept and related attributes

Posted by "healchow (via GitHub)" <gi...@apache.org>.
healchow commented on code in PR #683:
URL: https://github.com/apache/inlong-website/pull/683#discussion_r1101136817


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/design_and_concept/the_format_in_inlong.md:
##########
@@ -0,0 +1,106 @@
+---
+title: Format
+sidebar_position: 7
+---
+
+## 什么是format?
+
+![](img/format_and_flink.png)
+
+如上图所示:
+
+Flink SQL在读写数据是,均采用Row的形式,其内部为Object数组`Object[]`, 数字中每个元素代表了一个Flink表的字段。

Review Comment:
   Please add one blank between the Chinese character and English character, thanks.



-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong-website] healchow commented on a diff in pull request #683: [INLONG-682][Document] Sort out the format concept and related attributes

Posted by "healchow (via GitHub)" <gi...@apache.org>.
healchow commented on code in PR #683:
URL: https://github.com/apache/inlong-website/pull/683#discussion_r1101135954


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/design_and_concept/the_format_in_inlong.md:
##########
@@ -0,0 +1,106 @@
+---
+title: Format
+sidebar_position: 7
+---
+
+## 什么是format?

Review Comment:
   ```suggestion
   ## 什么是 Format?
   ```



-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong-website] dockerzhang commented on a diff in pull request #683: [INLONG-682][Document] Sort out the format concept and related attributes

Posted by "dockerzhang (via GitHub)" <gi...@apache.org>.
dockerzhang commented on code in PR #683:
URL: https://github.com/apache/inlong-website/pull/683#discussion_r1101206581


##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/design_and_concept/the_format_in_inlong.md:
##########
@@ -0,0 +1,102 @@
+---
+title: Format
+sidebar_position: 7
+---
+
+## 什么是 Format?
+
+![](img/format_and_flink.png)
+
+如上图所示:
+
+Flink SQL 在读写数据是,均采用Row的形式,其内部为 Object 数组 `Object[]`,数字中每个元素代表了一个 Flink 表的字段。
+字段的类型、名称、精度等信息,通过 `Schema` 来标示。
+
+Format 提供了两种接口:SerializationSchema 和 DeserializationSchema。
+
+- 当 Flink 往 MQ 写数据时,需要把 `Flink Row` 序列化为 `key-value` / `csv` / `Json` 等 Format,
+  调用了 `SerializationSchema#serialize` 方法,数据会序列化为 `Byte[]`,写入到 `MQ`。
+- 当 Flink 读取 MQ 的数据时,过程是相反的。从 MQ 读取数据,数据格式为 `byte[]`,反序列化为`Format`,再转换为 `Flink row`。
+
+> 详情请查看代码 [`inlong-sort/sort-formats`](https://github.com/apache/inlong/tree/release-1.5.0/inlong-sort/sort-formats)
+
+## InLong 中的 Format
+
+![](img/the_format_in_inlong.png)
+
+InLong 作为一站式的数据集成平台,MQ(图中 Cache 部分)作为传输通道,同时实现 DataProxy 与 Sort 的解耦,扩展性更强。

Review Comment:
   ```suggestion
   InLong 作为一站式的数据集成平台,将 MQ(图中 Cache 部分)作为传输通道,同时实现 DataProxy 与 Sort 的解耦,扩展性会更强:
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/design_and_concept/the_format_in_inlong.md:
##########
@@ -0,0 +1,102 @@
+---
+title: Format
+sidebar_position: 7
+---
+
+## 什么是 Format?
+
+![](img/format_and_flink.png)
+
+如上图所示:
+
+Flink SQL 在读写数据是,均采用Row的形式,其内部为 Object 数组 `Object[]`,数字中每个元素代表了一个 Flink 表的字段。
+字段的类型、名称、精度等信息,通过 `Schema` 来标示。
+
+Format 提供了两种接口:SerializationSchema 和 DeserializationSchema。
+
+- 当 Flink 往 MQ 写数据时,需要把 `Flink Row` 序列化为 `key-value` / `csv` / `Json` 等 Format,
+  调用了 `SerializationSchema#serialize` 方法,数据会序列化为 `Byte[]`,写入到 `MQ`。

Review Comment:
   ```suggestion
     这时调用了 `SerializationSchema#serialize` 方法,数据会序列化成 `Byte[]`,写入到 `MQ`。
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/design_and_concept/the_format_in_inlong.md:
##########
@@ -0,0 +1,102 @@
+---
+title: Format
+sidebar_position: 7
+---
+
+## 什么是 Format?
+
+![](img/format_and_flink.png)
+
+如上图所示:
+
+Flink SQL 在读写数据是,均采用Row的形式,其内部为 Object 数组 `Object[]`,数字中每个元素代表了一个 Flink 表的字段。
+字段的类型、名称、精度等信息,通过 `Schema` 来标示。
+
+Format 提供了两种接口:SerializationSchema 和 DeserializationSchema。

Review Comment:
   ```suggestion
   Flink 的 Format 提供了两种接口:SerializationSchema 和 DeserializationSchema。
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/design_and_concept/the_format_in_inlong.md:
##########
@@ -0,0 +1,102 @@
+---
+title: Format
+sidebar_position: 7
+---
+
+## 什么是 Format?
+
+![](img/format_and_flink.png)
+
+如上图所示:
+
+Flink SQL 在读写数据是,均采用Row的形式,其内部为 Object 数组 `Object[]`,数字中每个元素代表了一个 Flink 表的字段。
+字段的类型、名称、精度等信息,通过 `Schema` 来标示。
+
+Format 提供了两种接口:SerializationSchema 和 DeserializationSchema。
+
+- 当 Flink 往 MQ 写数据时,需要把 `Flink Row` 序列化为 `key-value` / `csv` / `Json` 等 Format,
+  调用了 `SerializationSchema#serialize` 方法,数据会序列化为 `Byte[]`,写入到 `MQ`。
+- 当 Flink 读取 MQ 的数据时,过程是相反的。从 MQ 读取数据,数据格式为 `byte[]`,反序列化为`Format`,再转换为 `Flink row`。
+
+> 详情请查看代码 [`inlong-sort/sort-formats`](https://github.com/apache/inlong/tree/release-1.5.0/inlong-sort/sort-formats)
+
+## InLong 中的 Format
+
+![](img/the_format_in_inlong.png)
+
+InLong 作为一站式的数据集成平台,MQ(图中 Cache 部分)作为传输通道,同时实现 DataProxy 与 Sort 的解耦,扩展性更强。
+
+1. DataProxy 上报数据时,需要将数据序列化成对应的格式(`SerializationSchema#serialize`)。
+2. Sort 接收到数据,将 MQ 的数据反序列化(`DeserializationSchema#deserialize`)成 `Flink Row` ,通过 Flink SQL 写入到对应的存储。

Review Comment:
   ```suggestion
   - Sort 接收到数据,将 MQ 的数据反序列化(`DeserializationSchema#deserialize`)成 `Flink Row` ,通过 Flink SQL 写入到对应的存储。
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/design_and_concept/the_format_in_inlong.md:
##########
@@ -0,0 +1,102 @@
+---
+title: Format
+sidebar_position: 7
+---
+
+## 什么是 Format?
+
+![](img/format_and_flink.png)
+
+如上图所示:
+
+Flink SQL 在读写数据是,均采用Row的形式,其内部为 Object 数组 `Object[]`,数字中每个元素代表了一个 Flink 表的字段。
+字段的类型、名称、精度等信息,通过 `Schema` 来标示。
+
+Format 提供了两种接口:SerializationSchema 和 DeserializationSchema。
+
+- 当 Flink 往 MQ 写数据时,需要把 `Flink Row` 序列化为 `key-value` / `csv` / `Json` 等 Format,
+  调用了 `SerializationSchema#serialize` 方法,数据会序列化为 `Byte[]`,写入到 `MQ`。
+- 当 Flink 读取 MQ 的数据时,过程是相反的。从 MQ 读取数据,数据格式为 `byte[]`,反序列化为`Format`,再转换为 `Flink row`。

Review Comment:
   ```suggestion
   - 当 Flink 读取 MQ 的数据时,该过程则相反:从 MQ 读取数据,数据格式为 `byte[]`,反序列化为`Format`,再转换为 `Flink row`。
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/design_and_concept/the_format_in_inlong.md:
##########
@@ -0,0 +1,102 @@
+---
+title: Format
+sidebar_position: 7
+---
+
+## 什么是 Format?
+
+![](img/format_and_flink.png)
+
+如上图所示:
+
+Flink SQL 在读写数据是,均采用Row的形式,其内部为 Object 数组 `Object[]`,数字中每个元素代表了一个 Flink 表的字段。
+字段的类型、名称、精度等信息,通过 `Schema` 来标示。
+
+Format 提供了两种接口:SerializationSchema 和 DeserializationSchema。
+
+- 当 Flink 往 MQ 写数据时,需要把 `Flink Row` 序列化为 `key-value` / `csv` / `Json` 等 Format,
+  调用了 `SerializationSchema#serialize` 方法,数据会序列化为 `Byte[]`,写入到 `MQ`。
+- 当 Flink 读取 MQ 的数据时,过程是相反的。从 MQ 读取数据,数据格式为 `byte[]`,反序列化为`Format`,再转换为 `Flink row`。
+
+> 详情请查看代码 [`inlong-sort/sort-formats`](https://github.com/apache/inlong/tree/release-1.5.0/inlong-sort/sort-formats)
+
+## InLong 中的 Format
+
+![](img/the_format_in_inlong.png)
+
+InLong 作为一站式的数据集成平台,MQ(图中 Cache 部分)作为传输通道,同时实现 DataProxy 与 Sort 的解耦,扩展性更强。
+
+1. DataProxy 上报数据时,需要将数据序列化成对应的格式(`SerializationSchema#serialize`)。

Review Comment:
   ```suggestion
   - DataProxy 上报数据时,需要将数据序列化成对应的格式(`SerializationSchema#serialize`)。
   ```



##########
i18n/zh-CN/docusaurus-plugin-content-docs/current/design_and_concept/the_format_in_inlong.md:
##########
@@ -0,0 +1,102 @@
+---
+title: Format
+sidebar_position: 7
+---
+
+## 什么是 Format?
+
+![](img/format_and_flink.png)
+
+如上图所示:
+
+Flink SQL 在读写数据是,均采用Row的形式,其内部为 Object 数组 `Object[]`,数字中每个元素代表了一个 Flink 表的字段。

Review Comment:
   ```suggestion
   Flink SQL 在读写数据是,均采用 Row 的形式,其内部为 Object 数组 `Object[]`,数组中每个元素代表了一个 Flink 表的字段。
   ```



-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [inlong-website] dockerzhang merged pull request #683: [INLONG-682][Document] Sort out the format concept and related attributes

Posted by "dockerzhang (via GitHub)" <gi...@apache.org>.
dockerzhang merged PR #683:
URL: https://github.com/apache/inlong-website/pull/683


-- 
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: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org