Skip to content

[Bug] [elasticsearch7] es7 can not supoort keyword type #1360

@fangxy-7010

Description

@fangxy-7010

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

when script mode the field type is keword, throw not support
image

What you expected to happen

support keyword type field

How to reproduce

{
"job":{
"content":[
{
"reader":{
"parameter":{
"password":"",
"column":[
{
"name":"id",
"type":"int"
},
{
"name":"age",
"type":"int"
},
{
"name":"name",
"type":"VARCHAR"
}
],
"connection":[
{
"jdbcUrl":[
"
"
],
"table":[
"source_table"
]
}
],
"username":"drpeco"
},
"name":"mysqlreader"
},
"writer":{
"parameter":{
"password":"null",
"hosts":[
"***:9200"
],
"column":[
{
"name":"ids",
"type":"int"
},
{
"name":"age",
"type":"int"
},
{
"name":"name",
"type":"keyword"
}
],
"index":"flinkx_test",
"ids":[
"ids",
"age"
],
"username":"null"
},
"name":"elasticsearch7writer"
}
}
],
"setting":{
"speed":{
"bytes":0,
"channel":1
}
}
}
}

Anything else

No response

Version

master

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions