Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In Calcite's implementation, JsonValueExpressionOperator currently returns a null value no matter the argument is JSON NULL value or SQL NULL value. But in MySQL, some JSON functions behave differently on different null inputs. For instance for a MySQL JSON function JSON_STORAGE_SIZE, if we execute:
SELECT JSON_STORAGE_SIZE(null), JSON_STORAGE_SIZE('null')
The result should be:
JSON_STORAGE_SIZE(null) | JSON_STORAGE_SIZE('null') |
---|---|
null | 2 |
We should improve the operator a bit to support different behaviors.
Attachments
Issue Links
- blocks
-
CALCITE-2985 Implement JSON_STORAGE_SIZE function
-
- Closed
-
- links to