-
Notifications
You must be signed in to change notification settings - Fork 15
Add installation scripts for dependencies for node delta sharing. #972
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
Add installation scripts for dependencies for node delta sharing. #972
Conversation
Signed-off-by: riteshk <ritesh.karki@rwth-aachen.de>
Signed-off-by: riteshk <ritesh.karki@rwth-aachen.de>
Signed-off-by: riteshk <riteshkarki6@gmail.com>
…sharing Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
…ring Signed-off-by: Ritesh.K <riteshkarki6@gmail.com>
| #define __DELTASHARINGRESTCLIENT_H__ | ||
|
|
||
| #include <iostream> | ||
| #include <nlohmann/json.hpp> |
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.
Why are you using this instead of jansson what we are alreay using?
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.
The json library was changed in the last pull request. I think when I created a new one, it is also including all the previous commits made for this branch.
The json library was changed in this commit.
|
|
||
| }; | ||
|
|
||
| NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Format, provider) |
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.
If we stay with jansson, this would propably be more to be implemented like a json_t object?
| cmake_dependent_option(WITH_NODE_WEBSOCKET "Build with websocket node-type" "${WITH_DEFAULTS}" "WITH_WEB" OFF) | ||
| cmake_dependent_option(WITH_NODE_ZEROMQ "Build with zeromq node-type" "${WITH_DEFAULTS}" "LIBZMQ_FOUND; NOT WITHOUT_GPL" OFF) | ||
| cmake_dependent_option(WITH_NODE_OPENDSS "Build with opendss node-type" "${WITH_DEFAULTS}" "OpenDSSC_FOUND" OFF) | ||
| cmake_dependent_option(WITH_NODE_DELTASHARING "Build with delta-sharing node-type" "${WITH_DEFAULTS}" "" ON) |
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.
Could you please fix the indentation, so that all options are aligned?
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.
You are not checking the presence of any of the dependencies used by this node-type: arrow,...
| @@ -0,0 +1,298 @@ | |||
| /* Node type: Delta Share. | |||
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.
What is the correct name of this protocol?
- Delta Sharing
- or Delta Share?
| #include <map> | ||
| #include <string> | ||
| #include <vector> | ||
| #include <boost/optional.hpp> |
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 do not use Boost in this project. Please limit yourself to the C++20 standard library (which also provides an optional type).
| #include <boost/optional.hpp> | ||
| #include <boost/optional/optional_io.hpp> | ||
|
|
||
| namespace DeltaSharing |
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.
Please format this code with clang-format. There is also a script to do so in the tools folder, or you can use pre-commit.
| #include <thread> | ||
|
|
||
|
|
||
| //namespace ds = arrow::dataset; |
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.
Please remove dead-code from the PR.
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.
This is C++ code, please use the .hpp extension.
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.
This is C++ code, please use the .hpp extension.
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.
This is C++ code, please use the .hpp extension.
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.
This is C++ code, please use the .hpp extension.
Also, please use snake case capitalization for file names.
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 we use curl as for the other web-based node-types? I dont think we should introduce another dependency for web-requests.
|
Hi @RiteshKarki27, I propose you directly push to the feature branch in this repo, rather than on your fork. There seem to be some conflicts which stop me from merging this PR:
This would also unblock, from running the CI tests |
|
The Delta Sharing Client I used for the implementing the Delta Sharing node is an unofficial client implementation mentioned in the GitHub page of the Delta Sharing Protocol. This is also the reason why most of the header files have the .h extension since it came directly from their repo, but I will change those to .hpp and push the changes. |
|
I will push my future commits directly to the feature branch and we can maybe keep this as a draft ticket until completely resolved. |
|
Hi @RiteshKarki27, I thought again about your usage of nlohmann::json. And concluded, that in the long term, we should migrate VILLASnode to it. So, I think we can start using it already in the Delta Sharing node-type. |
|
Hi @stv0g. |

No description provided.