At the moment I am only able to work on dfs.tmp. workspace, which is quite annoying. So I tried to change the default workspace to a new (existing) folder (owned by the drill user):
"workspaces": {
"default": {
"location": "/var/drill",
"writable": true,
"defaultInputFormat": null
},
"root": {
"location": "/",
"writable": false,
"defaultInputFormat": null
},
...
But it does not work:
CREATE TABLE `test` as SELECT 'Test' FROM (VALUES(1))
Returns the following error, which indicates that the modified settings get ignored.
org.apache.drill.common.exceptions.UserRemoteException: PARSE ERROR: Root schema is immutable. Creating or dropping tables/views is not allowed in root schema.Select a schema using 'USE schema' command.
I also tried it with prefix (without success)
CREATE TABLE dfs.default.`test` as SELECT 'Test' FROM (VALUES(1))
PARSE ERROR: Encountered ". default" at line 1, column 17.
Also also tried to restart drill and make root writable.