sundyli

Results 140 comments of sundyli

> Fisrt, i dont use Sprintboot+Mybatis, when i use jdbc Statement.execute(Insert_sql), face the same SQLException =-= This is because you are sharing connection in multi thread, the connection is not...

Good search, can you try to modify the compression codes from: ``` int res = lz4Compressor.compress(writtenBuf, 0, position, compressedBuffer, COMPRESSION_HEADER_LENGTH + CHECKSUM_LENGTH, compressedBuffer.length); ``` to ``` int res = lz4Compressor.compress(writtenBuf,...

Yes, surely `compressedBuffer.length > maxLen`, I did not look into the lz4 codes inside. From the comment: param maxDestLen the maximum number of bytes to write in dest, but what...

``` * Compresses src[srcOff:srcOff+srcLen] into * dest[destOff:destOff+maxDestLen] and returns the compressed * length. ``` Oh, I think that's the reason: `maxDestLen` must be `maxLen`.

Seems the position is 1048577, but I did not find any reason to see why. ``` int res = lz4Compressor.compress(writtenBuf, 0, position, compressedBuffer, 9 + 16); ``` You can modify...

@geraldo-netto You are using `ru.yandex.clickhouse`, but this is the native driver.

https://github.com/housepower/ClickHouse-Native-JDBC/blob/21cbb5ebab/clickhouse-native-jdbc/src/main/java/com/github/housepower/jdbc/ClickHouseResultSet.java 这个是实现类, 不知道为什么mybatis 路由到了 SQLResultSet 这个空接口

Did you mean `TLS connection` like `clickhouse-client -s`? Currently this lib doesn't support that.

> @sundy-li @pan3793 > is there any plan of enabling secure connection? > i'm willing to do the work on my own, just need small guidance It'll be good to...

I think ``` long value = deserializer.readLong() ``` value < 0 will never happen if the server works correctly. If `value < 0` happens, maybe we should just let it...