我正在玩ClickHouse,我想插入行并从表中读取。但是在插入4-5K之后,当我尝试获取结果时,我的选择查询失败。当我查看日志文件时,似乎在服务器上执行某种合并会失败。
// ... 1. Performing a lot of inserts.
// Selecting one row
$query = ClickHouse::getInstance()->select(sprintf("SELECT * FROM %s WHERE %s %s",
$tableName,
ClickHouse::buildWhereColumns($where),
$orderBy
), $where);
$row = $query->fetchOne();
// Gets this excetion:
/*
PHP Fatal error: Uncaught ClickHouseDB\Exception\QueryException in vendor/smi2/phpclickhouse/src/Statement.php:174
Stack trace:
#0 vendor/smi2/phpclickhouse/src/Statement.php(197): ClickHouseDB\Statement->error()
#1 vendor/smi2/phpclickhouse/src/Statement.php(213): ClickHouseDB\Statement->check()
#2 vendor/smi2/phpclickhouse/src/Statement.php(404): ClickHouseDB\Statement->init()
#3 libraries/ClickHouse.php(120): ClickHouseDB\Statement->fetchOne()
#4 libraries/Entity.php(57): ClickHouse::select('TopLevelDomain', Array)
#5 scripts/importMajestic.php(20): Entity::find('TopLevelDomain', Array)
#6 {main}
thrown in vendor/smi2/phpclickhouse/src/Statement.php on line 174
*/