[MDEV-17254] Load failing on json data Created: 2018-09-20 Updated: 2018-10-25 Resolved: 2018-10-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.3.9 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Ramesh | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
RedHat 7.2 |
||
| Description |
|
We we try to load data from json file the escape characters dont get padded and the load fails.
Sample row:
Not sure how we can load the data as it come from the source like shown on the first sample line.}} |
| Comments |
| Comment by Alice Sherepa [ 2018-09-26 ] | ||||||||||||||||||||||||||||||||||||||||||||
|
You should use ESCAPED BY '' in this case. (https://mariadb.com/kb/en/library/load-data-infile/)
And maybe in the column 'body' it should be JSON_EXTRACT function instead of JSON_Value.
|