-
Notifications
You must be signed in to change notification settings - Fork 594
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: detect cycle ref in proto (#10499)
Signed-off-by: tabVersion <[email protected]>
- Loading branch information
1 parent
92722c9
commit 21da7f9
Showing
3 changed files
with
92 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
� | ||
recursive.proto recursive"� | ||
ComplexRecursiveMessage | ||
node_name ( RnodeName | ||
node_id (RnodeIdM | ||
|
||
attributes (2-.recursive.ComplexRecursiveMessage.AttributesR | ||
attributesA | ||
parent (2).recursive.ComplexRecursiveMessage.ParentRparent> | ||
children (2".recursive.ComplexRecursiveMessageRchildren4 | ||
|
||
Attributes | ||
key ( Rkey | ||
value ( Rvalue� | ||
Parent | ||
parent_name ( R | ||
parentName | ||
parent_id (RparentId> | ||
siblings (2".recursive.ComplexRecursiveMessageRsiblingsbproto3 |
25 changes: 25 additions & 0 deletions
25
src/connector/src/test_data/proto_recursive/recursive.proto
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
syntax = "proto3"; | ||
|
||
package recursive; | ||
|
||
message ComplexRecursiveMessage { | ||
string node_name = 1; | ||
int32 node_id = 2; | ||
|
||
message Attributes { | ||
string key = 1; | ||
string value = 2; | ||
} | ||
|
||
repeated Attributes attributes = 3; | ||
|
||
message Parent { | ||
string parent_name = 1; | ||
int32 parent_id = 2; | ||
repeated ComplexRecursiveMessage siblings = 3; | ||
} | ||
|
||
Parent parent = 4; | ||
repeated ComplexRecursiveMessage children = 5; | ||
} | ||
|