Skip to content

Conversation

@RiteshKarki27
Copy link

No description provided.

JensenMax10 and others added 6 commits August 31, 2025 15:27
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>
Copy link
Contributor

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?

Copy link
Author

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)
Copy link
Contributor

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)
Copy link
Contributor

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?

Copy link
Contributor

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.
Copy link
Contributor

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>
Copy link
Contributor

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
Copy link
Contributor

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

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.

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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.

@stv0g
Copy link
Contributor

stv0g commented Nov 5, 2025

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:

grafik

This would also unblock, from running the CI tests

@RiteshKarki27
Copy link
Author

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.
The only changes I made was to replace the json library (nlohmann) with libjansson. If we were to use libcurl instead, then a lot of the client logic will have to be rebuilt.

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.

@RiteshKarki27
Copy link
Author

RiteshKarki27 commented Nov 7, 2025

I will push my future commits directly to the feature branch and we can maybe keep this as a draft ticket until completely resolved.

@stv0g
Copy link
Contributor

stv0g commented Nov 17, 2025

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.

@RiteshKarki27
Copy link
Author

Hi @stv0g.
Great! I shall revert to the original implementation with nlohmann::json and push it to the feature branch.

@al3xa23 al3xa23 deleted the branch VILLASframework:node-delta-sharing November 24, 2025 15:09
@al3xa23 al3xa23 closed this Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants