콘솔에서 직접 입력 jdbc 을 mysql 백업 에이전트나 복 0/1 로 boolean true/false

0

질문

Mysql 테이블,는 백업 에이전트나 복 유형은 다음과 같이,이는 단지 저장소에 0 또는 1 값아 is_mel:1.

is_mel | tinyint(1)

에서 지수를 매핑 config is_mel 로 정수입니다.

하지만에서는 콘솔에서 직접 로그,그것은 그것을 보여 분석하 is_mel 으로 부울 값이 true 이거나 false 아 "is_mel":true로 이어질 것이다,아래의류

"type"=>"mapper_parsing_exception",
"reason"=>"failed to parse field [is_mel] of type [integer] in document with id '392289'. Preview of field's value: 'true'"
elasticsearch input jdbc logstash
2021-11-18 06:50:46
1

최고의 응답

1

그것은 실제로 기능하지 않 버그 :-)

추가할 수 있습니다 tinyInt1isBit=false 귀하의 JDBC URL 을 사용하지 않는 행위

jdbc.url=jdbc:mysql://127.0.0.1:3306/testdb?tinyInt1isBit=false
                                                    ^
                                                    |
                                                 add this

에 대한 링크를 관련 MySQL doc

2021-11-18 08:24:32

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................