github.com/matrixorigin/matrixone@v0.7.0/pkg/sql/plan/function/function_kind.go (about) 1 // Copyright 2021 - 2022 Matrix Origin 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package function 16 17 type FuncExplainLayout int32 18 19 const ( 20 STANDARD_FUNCTION FuncExplainLayout = 0 //standard function 21 UNARY_ARITHMETIC_OPERATOR FuncExplainLayout = 1 //unary arithmetic operator 22 BINARY_ARITHMETIC_OPERATOR FuncExplainLayout = 2 //binary arithmetic operator 23 UNARY_LOGICAL_OPERATOR FuncExplainLayout = 3 // unary logical operator 24 BINARY_LOGICAL_OPERATOR FuncExplainLayout = 4 // binary logical operator 25 COMPARISON_OPERATOR FuncExplainLayout = 5 // comparison operator 26 CAST_EXPRESSION FuncExplainLayout = 6 // cast expression 27 CASE_WHEN_EXPRESSION FuncExplainLayout = 7 // case when expression 28 BETWEEN_AND_EXPRESSION FuncExplainLayout = 8 29 IN_PREDICATE FuncExplainLayout = 9 //query 'in' predicate 30 EXISTS_ANY_PREDICATE FuncExplainLayout = 10 //query predicate,such as exist,all,any 31 IS_NULL_EXPRESSION FuncExplainLayout = 11 // is null expression 32 NOPARAMETER_FUNCTION FuncExplainLayout = 12 // noparameter function 33 DATE_INTERVAL_EXPRESSION FuncExplainLayout = 13 // date expression,interval expression 34 EXTRACT_FUNCTION FuncExplainLayout = 14 // extract function,such as extract(MONTH/DAY/HOUR/MINUTE/SECOND FROM p) 35 POSITION_FUNCTION FuncExplainLayout = 15 // position function, such as POSITION(substr IN str) 36 UNKNOW_KIND_FUNCTION FuncExplainLayout = 16 37 )