Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Athena query after first space treated as additional CLI option #297

Closed
kherrera-ebsco opened this issue May 15, 2019 · 0 comments
Closed

Comments

@kherrera-ebsco
Copy link
Contributor

Describe the bug

In macOS, when executing a query in Athena, if the query has a space in it, anything following the space will be treated as an additional command line option.

To Reproduce

Steps to reproduce the behavior:

  1. Execute okta-aws live athena start-query-execution --query-string 'SELECT COUNT(1);' --result-configuration '{"OutputLocation":"s3:https://aws-athena-query-results-012345678901-us-east-1"}'
  2. See error: Unknown options: COUNT(1);

Expected behavior

AWS response to start-query-execution.

Screenshots

Screen Shot 2019-05-15 at 7 01 51 AM

Additional context

  1. BASH scripts generated by install.sh do not properly quote arguments.
    a. ~/.okta/bash_functions: $@ should be "$@"
    b. ~/.okta/bin/withokta: $@ should be "$@"
kherrera-ebsco added a commit to kherrera-ebsco/okta-aws-cli-assume-role that referenced this issue May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant