Follow-ups to #2543
See https://github.com/huggingface/datasets-server/pull/2543#issuecomment-1985494442

- [ ] we might factorize code between [query](https://github.com/huggingface/datasets-server/blob/87c224fa218420d69b20cd28d7befee0daf3c236/libs/libcommon/src/libcommon/parquet_utils.py#L330) and [query_truncated_binary](https://github.com/huggingface/datasets-server/blob/87c224fa218420d69b20cd28d7befee0daf3c236/libs/libcommon/src/libcommon/parquet_utils.py#L188) (basically, every code block surrounded by a "StepProfiler" could be a different method/function
- [ ] add unit tests for the new code
- [ ] instead of computing [max_binary_length](https://github.com/huggingface/datasets-server/blob/87c224fa218420d69b20cd28d7befee0daf3c236/libs/libcommon/src/libcommon/parquet_utils.py#L306), why not returning a very small number of bytes? I imagine that truncated binary is unusable anyway, so... maybe just returning the first 50 bytes is enough.

Also, related to https://github.com/huggingface/datasets-server/issues/2586
Follow-ups to #2543: See https://github.com/huggingface/datasets-server/pull/2543#issuecomment-1985494442

- [ ] we might factorize code between [query](https://github.com/huggingface/datasets-server/blob/87c224fa218420d69b20cd28d7befee0daf3c236/libs/libcommon/src/libcommon/parquet_utils.py#L330) and [query_truncated_binary](https://github.com/huggingface/datasets-server/blob/87c224fa218420d69b20cd28d7befee0daf3c236/libs/libcommon/src/libcommon/parquet_utils.py#L188) (basically, every code block surrounded by a "StepProfiler" could be a different method/function
- [ ] add unit tests for the new code
- [ ] instead of computing [max_binary_length](https://github.com/huggingface/datasets-server/blob/87c224fa218420d69b20cd28d7befee0daf3c236/libs/libcommon/src/libcommon/parquet_utils.py#L306), why not returning a very small number of bytes? I imagine that truncated binary is unusable anyway, so... maybe just returning the first 50 bytes is enough.

Also, related to https://github.com/huggingface/datasets-server/issues/2586