zhangyue19921010 commented on code in PR #18433:
URL: https://github.com/apache/druid/pull/18433#discussion_r2442735715
##########
docs/ingestion/data-formats.md:
##########
@@ -168,6 +168,28 @@ For example:
}
```
+### Lines
+
+Configure the Lines `inputFormat` to load line-oriented data where each line
is treated as a single field:
+
+| Field | Type | Description | Required |
+|-------|------|-------------|----------|
+| type | String | Set value to `lines`. | yes |
+
+The Lines input format reads each line from the input as UTF-8 text, and
creates a single column named `line` containing the entire line as a string.
+This is useful for reading line-oriented data in a simple form for later
processing.
+
+For example:
+
+```json
+"ioConfig": {
+ "inputFormat": {
+ "type": "lines"
+ },
+ ...
+}
Review Comment:
This change adds `Lines` to the markdown doc. This is good because users can
understand that it will create a single column named `line` containing the
entire line as a string and how to use `lines` in the `ioConfig` of this PR,
reading each line as UTF-8 text.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]