Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support protobuf representation of arr.ai values #597

Open
marcelocantos opened this issue Aug 25, 2020 · 0 comments
Open

Support protobuf representation of arr.ai values #597

marcelocantos opened this issue Aug 25, 2020 · 0 comments
Labels
enhancement P2 Low priority issue

Comments

@marcelocantos
Copy link
Contributor

Please do not post any internal, closed source snippets on this public issue tracker!

Purpose

Please describe the end goal you are trying to achieve that has led you to request this feature.

In order to efficiently stream and store arr.ai values, a binary representation is useful.

Suggested approaches

What have you tried, and how might this problem be solved?

syntax = "proto3";

message Value {
    oneof which {
        Number number = 1;
        Tuple tuple = 2;
        Values set = 3;
        Values array = 4;
        string str = 5;
        bytes byt = 6;
        Relation relation = 7;
    }
}

message Number {
    oneof which {
        int64 i = 1;
        uint64 u = 2;
        float64 f = 3;
    }
}

message Tuple {
    repeated KeyValue kvs = 1;

    message KeyValue {
        Value key = 1;
        Value value = 2;
    }
}

message Values {
    repeated Value elements = 1;
}

message Relation {
    repeated string names = 1;
    repeated Values valueses = 2;
}
@orlade-anz orlade-anz added the P2 Low priority issue label Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement P2 Low priority issue
Projects
None yet
Development

No branches or pull requests

2 participants