morrySnow commented on code in PR #2269: URL: https://github.com/apache/doris-website/pull/2269#discussion_r2034371929
########## docs/sql-manual/basic-element/operators/arithmetic-operators.mdx: ########## @@ -0,0 +1,122 @@ +--- +{ + "title": "Arithmetic Operators", + "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. */} + + +## Description + +You can use arithmetic operators with one or two parameters to perform negation, addition, subtraction, multiplication, and division on numbers. Some of these operators are also used for arithmetic operations on date and time intervals. The parameters of the operators must be parsed as numeric data types, or any data type that can be implicitly converted to numeric data types. + +Unary arithmetic operators return the same data type as the parameter numeric data type. For binary arithmetic operators, Doris will convert the parameters to the appropriate type for computation according to implicit type conversion rules, and return the appropriate type as the result. For specific conversion rules, please refer to the "Type Conversion" section. + +## Operators + +<table border="1"> Review Comment: 这个是啥? ########## docs/sql-manual/basic-element/object-identifiers.md: ########## Review Comment: 这里的正则表达式,需要对着不同版本的代码,修正一下:代码位置: master: https://github.com/apache/doris/blob/master/fe/fe-core/src/main/java/org/apache/doris/common/FeNameFormat.java 3.0: https://github.com/apache/doris/blob/branch-3.0/fe/fe-core/src/main/java/org/apache/doris/common/FeNameFormat.java 2.1: https://github.com/apache/doris/blob/branch-2.1/fe/fe-core/src/main/java/org/apache/doris/common/FeNameFormat.java -- 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