RumbleDB/rumble

"An error has occurred: null" when importing module from shell

ingomueller-net opened this issue · 2 comments

I can't seem to import modules with starting Rumble with --shell yes. Running exactly the same query from a file using --query-path works. I have tried a couple of different modules and none of them seems to work.

bash$ cat /path/test.jq
import module namespace hep = "/path/module.jq"; 42
bash$ docker run --rm -it -v $PWD:$PWD rumbledb/rumble:v1.10.0-spark3 --query-path /path/test.jq
42
bash$ docker run --rm -it -v $PWD:$PWD rumbledb/rumble:v1.10.0-spark3 --shell yes
...
rumble$ import module namespace hep = "/path/module.jq"; 42
>>>
>>>
[ERROR] An error has occurred: null
We should investigate this 🙈. Please contact us or file an issue on GitHub with your query.
Link: https://github.com/RumbleDB/rumble/issues

Hi Ingo, I could not reproduce. On my side it either works out of the box, or appropriately returns a not-found error code.

Does it work without docker?

Also, could you try to run this again with --show-error-info yes?

It might be docker works with internal paths, then it cannot see what is on your file system, you need to forward the paths in some docker-specific way. Regardless, I need to fix the null pointer exception.

The same happens if I use v1.10.0 compiled by myself and run against Spark 2.4 outside Docker.

(Note that the command above mounts the current folder into the docker container at the same path, so all absolute paths below the current folder should work in the container as well.)