You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql [localhost:8028] {msandbox} (test) >SET @json ='{"advertise-address": "123456","alter-primary-key": false,"ballast-object-size": 0,"performance": {"bind-info-lease": "3s","cross-join": true,"distinct-agg-push-down": false,"enable-stats-cache-mem-quota": false,"enforce-mpp": false,"feedback-probability": 0,"txn-entry-size-limit": 104857600,"txn-total-size-limit": 1048576000}}';
Query OK, 0 rows affected (0.00 sec)
mysql [localhost:8028] {msandbox} (test) >SELECT json_pretty(@json);
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| json_pretty(@json) |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| {
"performance": {
"cross-join": true,
"enforce-mpp": false,
"bind-info-lease": "3s",
"feedback-probability": 0,
"txn-entry-size-limit": 104857600,
"txn-total-size-limit": 1048576000,
"distinct-agg-push-down": false,
"enable-stats-cache-mem-quota": false
},
"advertise-address": "123456",
"alter-primary-key": false,
"ballast-object-size": 0
} |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+1 row inset (0.00 sec)
mysql [localhost:8028] {msandbox} (test) >
mysql [localhost:8028] {msandbox} (test) >SELECT JSON_PRETTY(JSON_REPLACE(@json, '$.performance.txn-entry-size-limit', 'newValue'));
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 34.
mysql [localhost:8028] {msandbox} (test) >SELECT JSON_PRETTY(JSON_REPLACE(@json, '$."performance".txn-entry-size-limit', 'newValue'));
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 36.
mysql [localhost:8028] {msandbox} (test) >SELECT JSON_PRETTY(JSON_REPLACE(@json, '$."performance."txn-entry-size-limit', 'newValue'));
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 16.
mysql [localhost:8028] {msandbox} (test) >SELECT JSON_PRETTY(JSON_REPLACE(@json, '$."performance."txn-entry-size-limit"', 'newValue'));
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 16.
mysql [localhost:8028] {msandbox} (test) >
mysql [localhost:8028] {msandbox} (test) >SELECT JSON_PRETTY(JSON_REMOVE(@json, '$.performance.txn-entry-size-limit'));
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 34.
mysql [localhost:8028] {msandbox} (test) >SELECT JSON_PRETTY(JSON_REMOVE(@json, '$."performance".txn-entry-size-limit'));
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 36.
mysql [localhost:8028] {msandbox} (test) >SELECT JSON_PRETTY(JSON_REMOVE(@json, '$."performance."txn-entry-size-limit'));
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 16.
mysql [localhost:8028] {msandbox} (test) >SELECT JSON_PRETTY(JSON_REMOVE(@json, '$."performance."txn-entry-size-limit"'));
ERROR 3143 (42000): Invalid JSON path expression. The error is around character position 16.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: