Skip to content

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

Merged
merged 7 commits into from
Jun 23, 2023
Merged

feat: Add Plugin V3 #1

merged 7 commits into from
Jun 23, 2023

Conversation

yevgenypats
Copy link
Contributor

No description provided.

Comment on lines 25 to 44
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;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of suggestions:

Copy link
Contributor Author

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;
Copy link
Member

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?

Comment on lines 72 to 80
message WriteOptions {
bool migrate_force = 1;
}

message MessageMigrateTable {
// marshalled arrow.Schema
bytes table = 1;
bool migrate_force = 2;
}
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this one.

@yevgenypats yevgenypats requested a review from hermanschaaf June 23, 2023 09:05
@yevgenypats yevgenypats added the automerge Add to automerge PRs once requirements are met label Jun 23, 2023
@yevgenypats yevgenypats merged commit 075f316 into main Jun 23, 2023
@yevgenypats yevgenypats deleted the feat/plugin/v3 branch June 23, 2023 09:18
kodiakhq bot pushed a commit to cloudquery/plugin-pb-go that referenced this pull request Jun 23, 2023
Instead of #15.

Plugin V3 Protocol client/server regenerated from cloudquery/plugin-pb#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to automerge PRs once requirements are met
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants