Skip to content

Commit

Permalink
move from protobuf struct value
Browse files Browse the repository at this point in the history
  • Loading branch information
delta003 committed Jun 7, 2024
1 parent 681e7b3 commit 730d9f9
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 263 deletions.
2 changes: 1 addition & 1 deletion vortex-scalar/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ workspace = true

[features]
# Uncomment for improved IntelliJ support
# default = ["flatbuffers", "proto", "serde"]
default = ["flatbuffers", "proto", "serde"]
flatbuffers = [
"dep:flatbuffers",
"dep:flexbuffers",
Expand Down
19 changes: 18 additions & 1 deletion vortex-scalar/proto/vortex/scalar/scalar.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,29 @@ package vortex.scalar;

import "vortex/dtype/dtype.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";

message Scalar {
vortex.dtype.DType dtype = 1;
ScalarValue value = 2;
}

message ScalarValue {
google.protobuf.Value value = 1;
oneof kind {
google.protobuf.NullValue null_value = 1;
bool bool_value = 2;
int32 int32_value = 3;
int64 int64_value = 4;
uint32 uint32_value = 5;
uint64 uint64_value = 6;
float float_value = 7;
double double_value = 8;
string string_value = 9;
bytes bytes_value = 10;
ListValue list_value = 12;
}
}

message ListValue {
repeated ScalarValue values = 1;
}
Loading

0 comments on commit 730d9f9

Please sign in to comment.