You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Install patched python-mysql-replication with MySQL 8.4 support
# COPY mysql-replication/ ./mysql-replication/
# RUN pip install --no-cache-dir ./mysql-replication/
COPY syncer/ ./clickhouse-mysql-data-reader/
# freeze_schema=True skips column metadata lookup; combined with binlog-row-metadata=FULL in my.cnf this avoids UNKNOWN_COL names
RUN sed -i 's/freeze_schema=True/freeze_schema=False/' ./clickhouse-mysql-data-reader/clickhouse_mysql/reader/mysqlreader.py
# Replace pinned 1.0.6 with a patched fork that uses SHOW BINARY LOG STATUS instead of SHOW MASTER STATUS
RUN sed -i "s|mysql-replication==1.0.6|mysql-replication @ git+https://github.com/tinybirdco/python-mysql-replication.git|" ./clickhouse-mysql-data-reader/setup.py
RUN pip install --no-cache-dir ./clickhouse-mysql-data-reader/