Skip to content

Commit

Permalink
feat: add RangeSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
etolbakov authored Jul 26, 2024
1 parent 7ca3230 commit a26d943
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions proto/substrait_extension/range_select.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Copyright 2023 Greptime Team
//
// Licensed 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.

syntax = "proto3";

option go_package = "github.com/GreptimeTeam/greptime-proto/go/substrait_extension";

package substrait_extension;

enum Fill {
NULL = 0;
PREV = 1;
LINEAR = 2;
CONST = 3; // Const(ScalarValue),
}

message RangeFn {
string name = 1;
// pub data_type: DataType,
// pub expr: Expr,
// pub range: Duration,
repeated Fill fill = 5;
bool need_cast = 6;
}

message RangeSelect {
repeated RangeFn range_expr = 1;
// pub align: Duration,
int64 align_to = 2;
string time_index = 3;
// pub by: Vec<Expr>,
repeated uint32 schema_project = 6;
}

0 comments on commit a26d943

Please sign in to comment.