Is possible to upload a json file using the COPY
from a remote desktop?
Command:
crash --host 192.100.1.15:4200 -c "COPY doc.test FROM '/test.json'"
The file: {"id": 1, "name": "foo"}
Error:
SQLActionException[SQLParseException: Column reference "test.json" has too many parts. A column must not have a schema or a table here.]
Second option:
crash --host 192.100.1.15:4200 -c "COPY doc.test FROM 'file:///test.json'"
COPY OK, 0 rows affected (0.001 sec)