diff --git a/.github/workflows/mysql-htap-maxscale-setup.yml b/.github/workflows/mysql-htap-maxscale-setup.yml index 613859bf..28a0d5c4 100644 --- a/.github/workflows/mysql-htap-maxscale-setup.yml +++ b/.github/workflows/mysql-htap-maxscale-setup.yml @@ -24,6 +24,7 @@ jobs: run: | cd devtools/htap-setup-mysql/maxscale docker compose up -d --wait + sleep 10 - name: Verify HTAP setup run: | diff --git a/.github/workflows/replication-test.yml b/.github/workflows/replication-test.yml index bfd318f5..78b5751e 100644 --- a/.github/workflows/replication-test.yml +++ b/.github/workflows/replication-test.yml @@ -78,18 +78,21 @@ jobs: - name: Verify initial replication run: | - # Query source data + # Query source data & MyDuck data if [ "${{ matrix.source }}" = "mysql" ]; then docker exec source-db mysql -uroot -proot test \ - -e "SELECT * FROM items ORDER BY id;" > source_data.csv + -e "SELECT * FROM items ORDER BY id;" | tee source_data.csv + + docker exec myduck psql -U postgres -h 127.0.0.1 \ + -c "\COPY (SELECT * FROM test.items ORDER BY id) TO STDOUT WITH CSV;" | tee myduck_data.csv + else docker exec source-db psql -U postgres -h 127.0.0.1 test \ -c "\COPY (SELECT * FROM items ORDER BY id) TO STDOUT WITH CSV;" | tee source_data.csv - fi - # Query MyDuck data through Postgres interface - docker exec myduck psql -U postgres -h 127.0.0.1 \ - -c "\COPY (SELECT * FROM items ORDER BY id) TO STDOUT WITH CSV;" | tee myduck_data.csv + docker exec myduck psql -U postgres -h 127.0.0.1 \ + -c "\COPY (SELECT * FROM items ORDER BY id) TO STDOUT WITH CSV;" | tee myduck_data.csv + fi # Compare data using DuckDB duckdb --csv -c "