[improvement] Avoid print large string in error log (#8436)

1. Avoid print large string in error log
    If user load a unqualified large string, the all string will be saved in error log,
    so the error log is too big that can not be shown be using `show load warnings on "url"`.
    Err: `Got packet bigger than 'max_allowed_packet' bytes`

2. Remove duplicate help doc
    Do not allow doc with same title, or error thrown when starting FE:
    `java.lang.IllegalArgumentException: Multiple entries with same key:`
This commit is contained in:
Mingyu Chen
2022-03-11 17:23:47 +08:00
committed by GitHub
parent e0ef9b8f6c
commit a76889b319
8 changed files with 10 additions and 134 deletions

View File

@ -1,62 +0,0 @@
---
{
"title": "coalesce",
"language": "en"
}
---
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
# coalesce
## Description
### Syntax
`VARCHAR coalesce(VARCHAR, ...)`
`...`
`INT coalesce(INT, ...)`
` coalesce ` function will return the first not null value. If it's all value is null, return null
## example
```
MySQL> select coalesce(1,null,2);
+----------------------+
| coalesce(1, NULL, 2) |
+----------------------+
| 1 |
+----------------------+
MySQL> select coalesce(null,"asd",1);
+--------------------------+
| coalesce(NULL, 'asd', 1) |
+--------------------------+
| asd |
+--------------------------+
MySQL> select coalesce(null,null,null);
+----------------------------+
| coalesce(NULL, NULL, NULL) |
+----------------------------+
| NULL |
+----------------------------+
```
## keyword
coalesce