-
Notifications
You must be signed in to change notification settings - Fork 217
Feat : support MilvusSink dev #3559
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
dominikriemer
left a comment
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.
Thanks a lot for your PR! I added some suggestions how to improve the PR before merging it.
| IndexParam indexParam; | ||
| CreateCollectionReq.CollectionSchema collectionSchema; | ||
|
|
||
| public static final String BYTE = "http://www.w3.org/2001/XMLSchema#byte"; |
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.
There is an Xsd class in org.apache.streampipes.vocabulary which provide these variables, could you reuse these?
| client.createDatabase(createDatabaseReq); | ||
| client.useDatabase(dbName); | ||
| } catch (Exception ignored) { | ||
| //todo add log |
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.
Can you add some logging here? You can throw a SpRuntimeException so that any problems when creating the database connection will show up in the UI.
| DescribeCollectionReq describeCollectionReq = DescribeCollectionReq.builder() | ||
| .collectionName(this.collectionName) | ||
| .build(); | ||
| System.out.println("collection name" + this.collectionName); |
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.
System.out can be replaced by logging
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.
Thanks for your suggestions! I will use these suggestions to modify my code.
|
@Yuukadesu thanks a lot for your PR |
Purpose
support MilvusSink ,and this Sink support FloatVector and BinaryVector now
Remarks
PR introduces (a) breaking change(s): <yes/no>
PR introduces (a) deprecation(s): <yes/no>