I start org.apache.drill.TestExampleQueries via regular "run tests" button, and it produces the following exception:
In fact IDEA creates "run configuration" that uses "/Users/vladimirsitnikov/Documents/work/drill" as "Working directory".
That directory is a root where all drill sources are located (i.e. I have /Users/vladimirsitnikov/Documents/work/drill/exec, /Users/vladimirsitnikov/Documents/work/drill/exec/java-exec and so on).
It looks like java-exec tests assume working directory is set to /Users/vladimirsitnikov/Documents/work/drill/exec/java-exec, however it is not the case when individual tests are run.
The workaround is to add "exec/java-exec" to "working directory".
It would be so much better if tests could be run from both working directories.