zendesk / maxwell

Maxwell's daemon, a mysql-to-json kafka producer
https://maxwells-daemon.io/
Other
4.05k stars 1.01k forks source link

row_query_max_length - variable type error #2080

Closed CryInt closed 9 months ago

CryInt commented 9 months ago

Should be a number, but checks for Boolean

parser.accepts( "row_query_max_length", "truncates the 'query' field if it is above this length. default: false" )
            .withOptionalArg().ofType(Boolean.class);

https://github.com/zendesk/maxwell/blob/master/src/main/java/com/zendesk/maxwell/MaxwellConfig.java#L780

as result:

-row_query_max_length=30

java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class java.lang.Integer (java.lang.Boolean and java.lang.Integer are in module java.base of loader 'bootstrap')