I've submitted a PR for issue IOTDB-5879 [https://github.com/apache/iotdb/pull/6257]

2022-06-13 Thread 王安阳
First PR to IOTDB, Glad to join the community. Thanks.


Var-Length-Numeric encoding?

2022-06-13 Thread Christofer Dutz
Hi all,

Just out of curiosity. Julian told me TSFiles make use of variable length 
encoding of numeric types.
I would expect the encoding for unsigned integers to be the "ordinary" one 
where 7 bits of a byte are being used for encoding the numeric value and new 
bytes are added as long as the first bit is 1.
However, I would be interested in which encoding is being used for unsigned 
integers? Julian posted a reply in the #iotdb slack channel, but I'm unsure 
which official encoding type this is.
It most likely looks like ZigZag Encoding, but I'm a bit unsure if it really is.
Could anyone here please shed a bit of lite on this? And do we have var-length 
encoding for floating-point types too?

Chris