smi2 / phpClickHouse

php ClickHouse wrapper
MIT License
750 stars 139 forks source link

Parse request timeout error #152

Closed ponikrf closed 2 years ago

ponikrf commented 3 years ago

Hi. Version 1.3.10

I get this error if set request clickhouse timeout 1.5

ClickHouseDB\Exception\QueryException: 
HttpCode:400 ; 
;
Code: 27, e.displayText() =
DB::ParsingException: Cannot parse input: expected 'eof' before: '.5' (version 21.2.3.15 (official build))

if i set timeout 1 or 2... everything works

Previously, the option with setting a timeout to float worked. Perhaps someone will face the same problem.

isublimity commented 2 years ago

Yes my mistake

In source code CH: https://github.com/ClickHouse/ClickHouse/blob/20.8/src/Core/Settings.h#L52

 M(Seconds, max_execution_time, 0, "", 0) \

Change type to Int

isublimity commented 2 years ago

Thx!