PostgreSQL source support cancel

This commit is contained in:
Maksim Kita 2024-06-26 16:24:00 +03:00
parent adb40eb701
commit b97ac72be0

View File

@ -120,7 +120,7 @@ Chunk PostgreSQLSource<T>::generate()
MutableColumns columns = description.sample_block.cloneEmptyColumns();
size_t num_rows = 0;
while (true)
while (!isCancelled())
{
const std::vector<pqxx::zview> * row{stream->read_row()};