Skip to content

Commit

Permalink
Merge pull request alibaba#1740 from iuhoay/patch-1
Browse files Browse the repository at this point in the history
Style
  • Loading branch information
dingxiaobo authored Apr 14, 2023
2 parents 4e94ed5 + 6292a33 commit 3000483
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions hdfsreader/doc/hdfsreader.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,20 +166,20 @@ HdfsReader实现了从Hadoop分布式文件系统Hdfs中读取文件数据并转
默认情况下,用户可以全部按照String类型读取数据,配置如下:

```json
"column": ["*"]
"column": ["*"]
```

用户可以指定Column字段信息,配置如下:

```json
{
"type": "long",
"index": 0 //从本地文件文本第一列获取int字段
},
{
"type": "string",
"value": "alibaba" //HdfsReader内部生成alibaba的字符串字段作为当前字段
}
{
"type": "long",
"index": 0 //从本地文件文本第一列获取int字段
},
{
"type": "string",
"value": "alibaba" //HdfsReader内部生成alibaba的字符串字段作为当前字段
}
```

对于用户指定Column信息,type必须填写,index/value必须选择其一。
Expand Down

0 comments on commit 3000483

Please sign in to comment.