mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
PostgreSQL source support cancel
This commit is contained in:
parent
adb40eb701
commit
b97ac72be0
@ -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()};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user