aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lualib/lua_clickhouse.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_clickhouse.lua b/lualib/lua_clickhouse.lua
index 7064ac925..99865e6ee 100644
--- a/lualib/lua_clickhouse.lua
+++ b/lualib/lua_clickhouse.lua
@@ -116,8 +116,8 @@ local function parse_clickhouse_response_json(params, data)
local ucl = require "ucl"
if data == nil then
- -- clickhouse returned no data (i.e. empty result set): exiting
- return 'no data', {}
+ -- clickhouse returned no data (i.e. empty result set) considered valid!
+ return nil, {}
end
if data:match('DB::Exception') then