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
{{ message }}
Repository navigation
[Bug]: load data inline format jsonline is not working correctly #12020
- Version or commit-id (e.g. v0.1.0 or 8b23a93): main 1c22af44b
- Hardware parameters:
- OS type:
- Others:
Actual Behavior
-- bug: this will load data as csv, should be unsupported/unknown format
mysql> load data inline format='foo', data='1,2\n' into table t;
Query OK, 1 row affected (0.01 sec)
-- bug: this will also load data as csv, not json
mysql> load data inline format='json', data='1,2\n' into table t;
Query OK, 1 row affected (0.01 sec)
-- jsonline is not implemented, we want this ...
mysql> load data inline format='jsonline', data='1,2\n' into table t;
ERROR 20105 (HY000): not supported: the jsonline format '' is not supported now
mysql>
--jsontype field is needed if inline format is 'jsonline', and it only supports 'object' and 'array' now
load data inline format='jsonline', data='[1,2]', jsontype ='array' into table t;
createtablet5(col1 text);
load data inline format='jsonline', data='{"col1":"good"}' , jsontype ='object' into table t5;
Activity
Morranto commentedon Nov 27, 2023
load data inline example:
.