Hisoka-X commented on code in PR #9869:
URL: https://github.com/apache/seatunnel/pull/9869#discussion_r2357405295
##########
docs/en/connector-v2/source/Redis.md:
##########
@@ -252,21 +253,44 @@ connector will generate data as the following:
| ---- | ----------- | ------- |
| 200 | get success | true |
-when you assign format is `text`, connector will do nothing for upstream data,
for example:
+when you assign format is `text`, you can choose to specify the schema
information or not.
-upstream data is the following:
-
-```json
-{"code": 200, "data": "get success", "success": true}
+For example, upstream data is the following:
+```text
+200#get success#true
```
+If you do not assign data schema connector will treat the upstream data as the
following:
+
+| content |
+| -------------------------------------------------------- |
+| 200#get success#true |
+
+If you assign data schema, you should also assign the option `schema` and
`field_delimiter` as following:
+
+```hocon
+field_delimiter = "#"
+schema {
+ fields {
+ code = int
+ data = string
+ success = boolean
+ }
+}
+
+```
Review Comment:
Yes, we can do the same thing in HTTP. LocalFile already did this.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]