You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "zhangyue19921010 (via GitHub)" <gi...@apache.org> on 2025/10/19 03:13:35 UTC
Re: [PR] Add "lines" input format. (druid)
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: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org