morrySnow commented on code in PR #27848: URL: https://github.com/apache/doris/pull/27848#discussion_r1411506223
########## docs/zh-CN/docs/sql-manual/sql-functions/debug-functions/non-nullable.md: ########## @@ -0,0 +1,56 @@ +--- +{ + "title": "NON_NULLABLE", + "language": "zh-CN" +} +--- + +<!-- +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. +--> + +## non_nullable + +### description +#### Syntax + +`non_nullable(expr)` + +如果`expr`为nullable类型,则返回值为该表达式的非nullable值;否则报错。 Review Comment: 为啥要报错呢?不变就可以了吧。另外,如果该列中有null如何处理?我看下面把null变成0,这是不可接受的行为,会导致数据错误 ########## docs/zh-CN/docs/sql-manual/sql-functions/debug-functions/non-nullable.md: ########## @@ -0,0 +1,56 @@ +--- +{ + "title": "NON_NULLABLE", + "language": "zh-CN" +} +--- + +<!-- +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. +--> + +## non_nullable + +### description +#### Syntax + +`non_nullable(expr)` + +如果`expr`为nullable类型,则返回值为该表达式的非nullable值;否则报错。 Review Comment: 为啥要报错呢?不变就可以了吧。另外,如果该列中有null如何处理?我看下面把null变成0,这是不可接受的行为,会导致数据错误 -- 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. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org