ClickhouseBuilder icon indicating copy to clipboard operation
ClickhouseBuilder copied to clipboard

count return string instead of number

Open olegsklyarov1972 opened this issue 2 years ago • 3 comments

Could you please explain if I run the query: DB::connection('clickhouse')->select(raw('select count(*) as summary from table')); I get the result like this array:1 [ 0 => array:1 [ "summary" => "4309900" ] ]

Why "summary" get "4309900" as string, not a number ?

olegsklyarov1972 avatar Dec 15 '22 08:12 olegsklyarov1972