-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add Plugin V3 #1
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
Conversation
plugin/v3/plugin.proto
Outdated
enum REGISTRY { | ||
REGISTRY_GITHUB = 0; | ||
REGISTRY_GRPC = 1; | ||
REGISTRY_LOCAL = 2; | ||
} | ||
|
||
enum SCHEDULER { | ||
SCHEDULER_DFS = 0; | ||
SCHEDULER_ROUND_ROBIN = 1; | ||
} | ||
|
||
enum Operator { | ||
EQUAL = 0; | ||
LESS_THAN = 1; | ||
} | ||
|
||
enum PK_MODE { | ||
DEFAULT = 0; | ||
CQ_ID_ONLY = 1; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum REGISTRY { | |
REGISTRY_GITHUB = 0; | |
REGISTRY_GRPC = 1; | |
REGISTRY_LOCAL = 2; | |
} | |
enum SCHEDULER { | |
SCHEDULER_DFS = 0; | |
SCHEDULER_ROUND_ROBIN = 1; | |
} | |
enum Operator { | |
EQUAL = 0; | |
LESS_THAN = 1; | |
} | |
enum PK_MODE { | |
DEFAULT = 0; | |
CQ_ID_ONLY = 1; | |
} | |
enum Registry { | |
REGISTRY_UNSPECIFIED = 0; | |
REGISTRY_GITHUB = 1; | |
REGISTRY_GRPC = 2; | |
REGISTRY_LOCAL = 3; | |
} | |
enum Scheduler { | |
SCHEDULER_UNSPECIFIED = 0; | |
SCHEDULER_DFS = 1; | |
SCHEDULER_ROUND_ROBIN = 2; | |
} | |
enum PKMode { | |
PK_MODE_UNSPECIFIED = 0; | |
PK_MODE_DEFAULT = 0; | |
PK_MODE_CQ_ID_ONLY = 1; | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of suggestions:
- Use Pascal case for enum names (follows the style guide: https://protobuf.dev/programming-guides/style/#enums)
- Add an "_UNSPECIFIED" as the first entry in each case so it's possible to distinguish unset values
- Removes unused enums
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed.
message Write { | ||
message Request { | ||
oneof message { | ||
WriteOptions options = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should options
not be outside of the oneof?
plugin/v3/plugin.proto
Outdated
message WriteOptions { | ||
bool migrate_force = 1; | ||
} | ||
|
||
message MessageMigrateTable { | ||
// marshalled arrow.Schema | ||
bytes table = 1; | ||
bool migrate_force = 2; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We now have migrate_force in two places: which one should be preferred?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed this one.
Instead of #15. Plugin V3 Protocol client/server regenerated from cloudquery/plugin-pb#1
No description provided.