Skip to content
Advertisement

Unable to run simple presto shell query

I am trying to run simplest query. However it is not working.

But –file option works fine

Any ideas? UPD: Trying to escape ‘;’ with backslash doesn’t help(

Advertisement

Answer

This turned out to be an issue with the wrapper around presto CLI executable jar.

The wrapper script needs to use "$@" to preserve parameter with spaces (like the SQL query being passed to --execute).

Note: there is usually no need to have a wrapper script for CLI executable. It’s executable, so you can place it directly on $PATH. (Or, place a symlink on path)

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement