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

Connections must be fully qualified with their schema when querying via service mode #218

Closed
MichaelBurgess opened this issue Feb 22, 2021 · 0 comments · Fixed by #225
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@MichaelBurgess
Copy link
Contributor

MichaelBurgess commented Feb 22, 2021

Issue

If you are querying Steampipe via service mode (e.g. in your own data client, rather than interactively in the CLI) and try to use a relation in a schema that exists, you have to fully-qualify that relation with its schema name.

Expected outcome

If you have a schema called aws and have a table aws_iam_user in it, I should be able to query select * from aws_iam_user and the correct schema be found via the search path.

Actual outcome

select * from aws_iam_user gives this error:

ERROR:  relation "aws_iam_user" does not exist
LINE 1: select * from aws_iam_user;
                      ^
SQL state: 42P01
Character: 15

...instead you have to fully-qualify the table with its schema:

select * from aws.aws_iam_user;

Env

CLI: 0.2.0
OS: macOS Big Sur 11.2.1
Terminal: iTerm 3.4.4 / zsh

@MichaelBurgess MichaelBurgess added the bug Something isn't working label Feb 22, 2021
@MichaelBurgess MichaelBurgess changed the title Connections must be fully qualified with schema when running in service mode Connections must be fully qualified with their schema when querying via service mode Feb 22, 2021
@binaek binaek added this to the 0.2.2 milestone Feb 23, 2021
@binaek binaek self-assigned this Feb 23, 2021
@binaek binaek linked a pull request Feb 23, 2021 that will close this issue
kaidaguerre pushed a commit that referenced this issue Feb 24, 2021
kaidaguerre pushed a commit that referenced this issue Feb 24, 2021
ahirreddy pushed a commit to ahirreddy/steampipe that referenced this issue Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants