Commit a2375c5
fix(abstract): patch jsonb operator for pg if value is json (#13780)
* fix(abstract): dialog query-generator for JSON in PG
Added check to traverseJSON that checks if value is JSON and passes
result to jsonPathExtrationQuery
Added isJson param to jsonPathExtractionQuery
Updated postgres JSON join arrow to change if value is JSON
with '#' will be ignored, and an empty message aborts the commit.
* fix(abstract): updated unit tests
Added check if value is string and operator is contains
Updated unit tests with new expected outputs
* fix(abstract): add query generator unit tests
Added tests to validate jsonPathExtractionQuery works with and without
isJSON
* fix(abstract): Fix merge error
Removed extra bracket from merge conflict
* fix(abstract): Patch failing tests
Updated query generator tests to handle all supported DB types
* fix(tests): update test name
Co-authored-by: Sascha Depold <[email protected]>1 parent b532ab1 commit a2375c5
2 files changed
Lines changed: 70 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
1101 | 1102 | | |
1102 | 1103 | | |
1103 | | - | |
| 1104 | + | |
1104 | 1105 | | |
1105 | 1106 | | |
1106 | 1107 | | |
| |||
1135 | 1136 | | |
1136 | 1137 | | |
1137 | 1138 | | |
| 1139 | + | |
1138 | 1140 | | |
1139 | | - | |
| 1141 | + | |
1140 | 1142 | | |
1141 | 1143 | | |
1142 | 1144 | | |
| |||
2484 | 2486 | | |
2485 | 2487 | | |
2486 | 2488 | | |
2487 | | - | |
| 2489 | + | |
2488 | 2490 | | |
2489 | 2491 | | |
2490 | 2492 | | |
2491 | 2493 | | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
2492 | 2504 | | |
2493 | 2505 | | |
2494 | 2506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
137 | 187 | | |
138 | 188 | | |
139 | 189 | | |
| |||
0 commit comments