Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

含有空字段的数据记录被舍弃 #32

Open
gwcai opened this issue Feb 1, 2019 · 3 comments
Open

含有空字段的数据记录被舍弃 #32

gwcai opened this issue Feb 1, 2019 · 3 comments

Comments

@gwcai
Copy link

gwcai commented Feb 1, 2019

如题:
从kafka中抽取实时数据,数据中有些字段为空值,这些数据被舍弃,没存入indexr,要怎么处理?

@flowbehappy
Copy link
Collaborator

        "fetcher": {
            "number.empty.as.zero": false,

尝试配置 number.empty.as.zero = true ,这个配置意思是,如果某个数字类型的字段不存在,就用默认值(0)

@gwcai
Copy link
Author

gwcai commented Mar 1, 2019

        "fetcher": {
            "number.empty.as.zero": false,

尝试配置 number.empty.as.zero = true ,这个配置意思是,如果某个数字类型的字段不存在,就用默认值(0)

字段是字符串类型也可以吗?

@flowbehappy
Copy link
Collaborator

可以贴一下你的数据和 realtime 的配置,不清楚为何你的数据会被丢弃了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants