Browse Source

[Minor] Add last '\n' as required

tags/1.8.0
Vsevolod Stakhov 5 years ago
parent
commit
f1f676fadc
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lualib/lua_clickhouse.lua

+ 2
- 2
lualib/lua_clickhouse.lua View File

@@ -243,9 +243,9 @@ exports.insert = function (upstream, settings, params, query, rows,
http_params.no_ssl_verify = settings.no_ssl_verify
http_params.user = settings.user
http_params.password = settings.password
http_params.body = table.concat(fun.totable(fun.map(function(row)
http_params.body = {table.concat(fun.totable(fun.map(function(row)
return row_to_tsv(row)
end), rows), '\n')
end), rows), '\n'), '\n'}
http_params.log_obj = params.task or params.config

if not http_params.url then

Loading…
Cancel
Save