Importing chdb and running chdb.query on smaller systems result in several "Lowered..." messages being written to stderr. These are not helpful and only obscure the actual errors/exceptions (if any) which are also written to stderr.
How to reproduce
Dockerfile:
FROM python:3.11-slim
RUN pip install "chdb==1.0.0"
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
Lowered mark cache size to 64.00 MiB because the system has limited RAM
Lowered index mark cache size to 0.00 B because the system has limited RAM
Lowered mark cache size to 64.00 MiB because the system has limited RAM
Lowered index mark cache size to 0.00 B because the system has limited RAM
There is a similar behavior with 256m, 512m or 1024m of memory.
Expected behavior
Do not write these messages to stderr or hide them behind a flag or env variable.
Describe the unexpected behaviour
Importing
chdb
and runningchdb.query
on smaller systems result in several "Lowered..." messages being written to stderr. These are not helpful and only obscure the actual errors/exceptions (if any) which are also written to stderr.How to reproduce
Dockerfile:
Build an image:
Run with 128m of memory:
Result (stderr):
There is a similar behavior with 256m, 512m or 1024m of memory.
Expected behavior
Do not write these messages to stderr or hide them behind a flag or env variable.