github.com/matrixorigin/matrixone@v1.2.0/pkg/sql/colexec/aggexec/serialize.proto (about)

     1  // Copyright 2024 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  syntax = "proto3";
    16  package aggexec;
    17  
    18  import "github.com/gogo/protobuf/gogoproto/gogo.proto";
    19  
    20  option (gogoproto.sizer_all)      = false;
    21  option (gogoproto.protosizer_all) = true;
    22  
    23  message EncodedBasicInfo {
    24      int64 id = 1;
    25      bool is_distinct = 2;
    26      bool null_empty = 3;
    27      repeated bytes args = 4 [
    28          (gogoproto.customtype) = "github.com/matrixorigin/matrixone/pkg/container/types.Type",
    29          (gogoproto.nullable) = false
    30      ];
    31      bytes ret = 5 [
    32          (gogoproto.customtype) = "github.com/matrixorigin/matrixone/pkg/container/types.Type",
    33          (gogoproto.nullable) = false
    34      ];
    35  }
    36  
    37  enum EncodedAggExecType {
    38      single_fixed_fixed = 0;
    39      single_fixed_var = 1;
    40      single_var_fixed = 2;
    41      single_var_var = 3;
    42      multi_return_fixed = 4;
    43      multi_return_var = 5;
    44      special_group_concat = 6;
    45      special_count_column = 7;
    46      special_count_star = 8;
    47      special_approx_count = 9;
    48      special_median = 10;
    49      special_cluster_center = 11;
    50      single_window = 12;
    51  }
    52  
    53  message EncodedAgg {
    54      EncodedAggExecType exec_type = 1;
    55      EncodedBasicInfo info = 2;
    56      bytes  result = 3;
    57      repeated bytes groups = 4;
    58  }