-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
awitas
committed
Mar 20, 2023
1 parent
46849ae
commit 8ca3ef6
Showing
12 changed files
with
85 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.5.4.0 | ||
v0.5.5.0 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,49 @@ | ||
[ | ||
{ | ||
"className": "com.class.abc.Foo", | ||
"id": 1, | ||
"name": "\"Foo\"", | ||
"preferences": { | ||
"Id": 1, | ||
"Name": "Foo", | ||
"Price": 125.5 | ||
} | ||
}, | ||
{ | ||
"className": "com.class.abc.Boo", | ||
"id": 2, | ||
"preferences": { | ||
"CreatedAt": "01/16/2022", | ||
"Id": 1, | ||
"UpdatedAt": "03/16/2022" | ||
} | ||
}, | ||
{ | ||
"className": "com.class.abc.Bar", | ||
"id": 3, | ||
"preferences": { | ||
"Id": 1, | ||
"Items": [ | ||
0, | ||
"125", | ||
250, | ||
"275" | ||
] | ||
} | ||
}, | ||
{ | ||
"className": "com.class.abc.Bar", | ||
"id": 4, | ||
"preferences": [ | ||
{ | ||
"Id": 1, | ||
"Items": [ | ||
0, | ||
"125", | ||
250, | ||
"275" | ||
] | ||
} | ||
] | ||
} | ||
] |
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,5 @@ | ||
{ | ||
"Name": "$tagId", | ||
"URL": "$path/raw_json_expr.sql", | ||
"Args": "" | ||
} |
12 changes: 12 additions & 0 deletions
12
e2e/local/regression/cases/047_raw_json_tag/raw_json_expr.sql
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,12 @@ | ||
/* {"URI":"raw_json_expr"} */ | ||
|
||
|
||
SELECT main.* | ||
FROM ( | ||
SELECT | ||
ID as Id, | ||
OBJECT AS Preferences /* {"DataType": "json.RawMessage"} */, | ||
(OBJECT->'$.Name') AS Name /* {"DataType":"string"} */, | ||
CLASS_NAME as ClassName | ||
FROM OBJECTS | ||
) main |
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,13 @@ | ||
init: | ||
parentPath: $parent.path | ||
pipeline: | ||
|
||
test: | ||
action: http/runner:send | ||
requests: | ||
- Method: GET | ||
URL: http://127.0.0.1:8080/v1/api/dev/raw_json_expr | ||
Expect: | ||
Code: 200 | ||
JSONBody: $LoadJSON('${parentPath}/expect.json') | ||
|
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
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