You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/02/24 06:24:17 UTC

[GitHub] [incubator-doris] Lishi-hub opened a new pull request #2977: Support null_or_empty function

Lishi-hub opened a new pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977
 
 
   It returns true if the string is an empty string or NULL. Otherwise it returns false.
   #2592 #2593 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] morningman commented on issue #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
morningman commented on issue #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#issuecomment-593075673
 
 
   It returns true if the string is empty or NULL. Otherwise it returns false.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] Lishi-hub commented on a change in pull request #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
Lishi-hub commented on a change in pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#discussion_r383631636
 
 

 ##########
 File path: docs/documentation/cn/sql-reference/sql-functions/string-functions/null_or_empty.md
 ##########
 @@ -0,0 +1,54 @@
+<!--
+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.
+-->
+
+# null_or_empty
+## description
+### Syntax
+
+`BOOLEAN NULL_OR_EMPTY (VARCHAR str)`
+
+如果字符串为空字符串或者NULL,返回true。否则,返回false。
+
+## example
+
+```
+MySQL [(none)]> select null_or_empty(null);
++---------------------+
+| null_or_empty(NULL) |
++---------------------+
+|                   1 |
++---------------------+
+
+MySQL [(none)]> select null_or_empty("");
++-------------------+
+| null_or_empty('') |
++-------------------+
+|                 1 |
++-------------------+
+1 row in set (1.84 sec)
 
 Review comment:
   Modified
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] Lishi-hub commented on a change in pull request #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
Lishi-hub commented on a change in pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#discussion_r383633882
 
 

 ##########
 File path: docs/documentation/en/sql-reference/sql-functions/string-functions/null_or_empty.md
 ##########
 @@ -0,0 +1,54 @@
+<!--
+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.
+-->
+
+# null_or_empty
+## description
+### Syntax
+
+`BOOLEAN NULL_OR_EMPTY (VARCHAR str)`
+
+It returns true if the string is an empty string or NULL. Otherwise it returns false.
+
+## example
+
+```
+MySQL [(none)]> select null_or_empty(null);
++---------------------+
+| null_or_empty(NULL) |
++---------------------+
+|                   1 |
++---------------------+
+
+MySQL [(none)]> select null_or_empty("");
++-------------------+
+| null_or_empty('') |
++-------------------+
+|                 1 |
++-------------------+
+1 row in set (1.84 sec)
 
 Review comment:
   Modified

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] Lishi-hub commented on a change in pull request #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
Lishi-hub commented on a change in pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#discussion_r383631681
 
 

 ##########
 File path: docs/documentation/en/sql-reference/sql-functions/string-functions/null_or_empty.md
 ##########
 @@ -0,0 +1,54 @@
+<!--
+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.
+-->
+
+# null_or_empty
+## description
+### Syntax
+
+`BOOLEAN NULL_OR_EMPTY (VARCHAR str)`
+
+It returns true if the string is an empty string or NULL. Otherwise it returns false.
+
+## example
+
+```
+MySQL [(none)]> select null_or_empty(null);
++---------------------+
+| null_or_empty(NULL) |
++---------------------+
+|                   1 |
++---------------------+
+
+MySQL [(none)]> select null_or_empty("");
++-------------------+
+| null_or_empty('') |
++-------------------+
+|                 1 |
++-------------------+
+1 row in set (1.84 sec)
 
 Review comment:
    Modified
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] HangyuanLiu commented on a change in pull request #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
HangyuanLiu commented on a change in pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#discussion_r383269604
 
 

 ##########
 File path: docs/documentation/en/sql-reference/sql-functions/string-functions/null_or_empty.md
 ##########
 @@ -0,0 +1,54 @@
+<!--
+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.
+-->
+
+# null_or_empty
+## description
+### Syntax
+
+`BOOLEAN NULL_OR_EMPTY (VARCHAR str)`
+
+It returns true if the string is an empty string or NULL. Otherwise it returns false.
+
+## example
+
+```
+MySQL [(none)]> select null_or_empty(null);
++---------------------+
+| null_or_empty(NULL) |
++---------------------+
+|                   1 |
++---------------------+
+
+MySQL [(none)]> select null_or_empty("");
++-------------------+
+| null_or_empty('') |
++-------------------+
+|                 1 |
++-------------------+
+1 row in set (1.84 sec)
 
 Review comment:
   ```suggestion
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] HangyuanLiu commented on issue #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
HangyuanLiu commented on issue #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#issuecomment-590787675
 
 
   LGTM

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] morningman removed a comment on issue #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
morningman removed a comment on issue #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#issuecomment-593075673
 
 
   It returns true if the string is empty or NULL. Otherwise it returns false.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] morningman merged pull request #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
morningman merged pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] Lishi-hub commented on a change in pull request #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
Lishi-hub commented on a change in pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#discussion_r383633831
 
 

 ##########
 File path: docs/documentation/cn/sql-reference/sql-functions/string-functions/null_or_empty.md
 ##########
 @@ -0,0 +1,54 @@
+<!--
+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.
+-->
+
+# null_or_empty
+## description
+### Syntax
+
+`BOOLEAN NULL_OR_EMPTY (VARCHAR str)`
+
+如果字符串为空字符串或者NULL,返回true。否则,返回false。
+
+## example
+
+```
+MySQL [(none)]> select null_or_empty(null);
++---------------------+
+| null_or_empty(NULL) |
++---------------------+
+|                   1 |
++---------------------+
+
+MySQL [(none)]> select null_or_empty("");
++-------------------+
+| null_or_empty('') |
++-------------------+
+|                 1 |
++-------------------+
+1 row in set (1.84 sec)
 
 Review comment:
   Modified

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] Lishi-hub commented on a change in pull request #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
Lishi-hub commented on a change in pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#discussion_r383631681
 
 

 ##########
 File path: docs/documentation/en/sql-reference/sql-functions/string-functions/null_or_empty.md
 ##########
 @@ -0,0 +1,54 @@
+<!--
+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.
+-->
+
+# null_or_empty
+## description
+### Syntax
+
+`BOOLEAN NULL_OR_EMPTY (VARCHAR str)`
+
+It returns true if the string is an empty string or NULL. Otherwise it returns false.
+
+## example
+
+```
+MySQL [(none)]> select null_or_empty(null);
++---------------------+
+| null_or_empty(NULL) |
++---------------------+
+|                   1 |
++---------------------+
+
+MySQL [(none)]> select null_or_empty("");
++-------------------+
+| null_or_empty('') |
++-------------------+
+|                 1 |
++-------------------+
+1 row in set (1.84 sec)
 
 Review comment:
    Modified
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] HangyuanLiu commented on a change in pull request #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
HangyuanLiu commented on a change in pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#discussion_r383269448
 
 

 ##########
 File path: docs/documentation/cn/sql-reference/sql-functions/string-functions/null_or_empty.md
 ##########
 @@ -0,0 +1,54 @@
+<!--
+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.
+-->
+
+# null_or_empty
+## description
+### Syntax
+
+`BOOLEAN NULL_OR_EMPTY (VARCHAR str)`
+
+如果字符串为空字符串或者NULL,返回true。否则,返回false。
+
+## example
+
+```
+MySQL [(none)]> select null_or_empty(null);
++---------------------+
+| null_or_empty(NULL) |
++---------------------+
+|                   1 |
++---------------------+
+
+MySQL [(none)]> select null_or_empty("");
++-------------------+
+| null_or_empty('') |
++-------------------+
+|                 1 |
++-------------------+
+1 row in set (1.84 sec)
 
 Review comment:
   ```suggestion
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [incubator-doris] Lishi-hub commented on a change in pull request #2977: Support null_or_empty function

Posted by GitBox <gi...@apache.org>.
Lishi-hub commented on a change in pull request #2977: Support null_or_empty function
URL: https://github.com/apache/incubator-doris/pull/2977#discussion_r383631636
 
 

 ##########
 File path: docs/documentation/cn/sql-reference/sql-functions/string-functions/null_or_empty.md
 ##########
 @@ -0,0 +1,54 @@
+<!--
+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.
+-->
+
+# null_or_empty
+## description
+### Syntax
+
+`BOOLEAN NULL_OR_EMPTY (VARCHAR str)`
+
+如果字符串为空字符串或者NULL,返回true。否则,返回false。
+
+## example
+
+```
+MySQL [(none)]> select null_or_empty(null);
++---------------------+
+| null_or_empty(NULL) |
++---------------------+
+|                   1 |
++---------------------+
+
+MySQL [(none)]> select null_or_empty("");
++-------------------+
+| null_or_empty('') |
++-------------------+
+|                 1 |
++-------------------+
+1 row in set (1.84 sec)
 
 Review comment:
   Modified
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org