-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Feature][Connector-V2] Support sink connector for HugeGraph #10002
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
Open
Gfreely
wants to merge
20
commits into
apache:dev
Choose a base branch
from
hugegraph:hg-connector-sink
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* docs: init SeaTunnel-HG design doc V1 🚧 (#4) * docs: init hugegraph design doc V1 🚧 * update development docs --------- Co-authored-by: Frui Guo <[email protected]> * update docs --------- Co-authored-by: imbajin <[email protected]>
Replaced GremlinManager-based graph operations with HugeClient REST API methods for vertex management and verification. Updated schema setup and test logic to improve reliability and remove direct Gremlin queries.
Configured maven-jar-plugin to include Implementation-Version in the jar manifest using hugegraph.client.version. Refactored HugeGraphSinkWriterIT to improve import ordering and line wrapping for better readability.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of this pull request
fix #10001
Does this PR introduce any user-facing change?
This PR introduces a new Sink V2 connector:
connector-hugegraph.This allows users to configure a job to sink data into a HugeGraph database. Users can now write
SeaTunnelRowdata as either Vertices or Edges, specifying mappings for labels, ID strategy, and properties.How was this patch tested?
Both Unit Tests (UT) and End-to-End (E2E) Tests were added for this new connector.
Unit Tests:
Added unit tests for HugeGraphSinkConfig to verify the parsing and validation of required sink-side options (e.g., checking necessary fields like url and graph_name).
E2E Tests:
Added a new E2E test module connector-hugegraph-e2e under the seatunnel-e2e/seatunnel-connector-v2-e2t/ directory.
This test uses a Docker container to spin up a temporary HugeGraph service instance.
It runs multiple test cases based on configuration files: testing writing SeaTunnelRow data as vertices, and testing writing SeaTunnelRow data as edges.
Check list
New License Guide