This is an automated email from the ASF dual-hosted git repository. liaoxin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris-streamloader.git
The following commit(s) were added to refs/heads/master by this push: new 3b2e1ce header parsing compatible with multiple ':' (#14) 3b2e1ce is described below commit 3b2e1ce0dd5e3f7083993dbe1bdba4b90e3c6da4 Author: ZSiHM <38096673+zs...@users.noreply.github.com> AuthorDate: Tue Mar 5 16:46:54 2024 +0800 header parsing compatible with multiple ':' (#14) header parse wrong when contains multiple ':',like header="columns:c1,c2,deviceip=c1.endtime=c2,p_hour=date_format(c2, '%Y-%m-%d %H:%i:%s')" --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 64d7de3..779148e 100644 --- a/main.go +++ b/main.go @@ -245,7 +245,11 @@ func paramCheck() { continue } kv := strings.Split(v, ":") - headers[kv[0]] = kv[1] + if len(kv) > 2 { + headers[kv[0]] = strings.Join(kv[1:], ":") + } else { + headers[kv[0]] = kv[1] + } } } --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org