LemonLiTree opened a new pull request, #19646:
URL: https://github.com/apache/doris/pull/19646
Invalid json path prompts an error instead of null:
before:
```sql
mysql> SELECT jsonb_extract('[{"k1":"v41","k2":400},1,"a",3.14]', '$[a]');
+--------------------------------------------------------+
| jsonb_extract('{"k1":[1,2],"k2.a1": 300}', '$.[LAST]') |
+--------------------------------------------------------+
| NULL |
+--------------------------------------------------------+
1 row in set (0.00 sec)
```
now
```sql
mysql> SELECT jsonb_extract('[{"k1":"v41","k2":400},1,"a",3.14]', '$[a]');
ERROR 1105 (HY000): errCode = 2, detailMessage =
(127.0.0.1)[INVALID_ARGUMENT]Json path error: Invalid Json Path for value: $[a]
```
fix some problem: https://github.com/apache/doris/pull/19185
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]