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

information_schema does not have the details of a newly created connection #4456

Open
pskrbasu opened this issue Dec 11, 2024 · 1 comment
Open
Labels
bug Something isn't working needs review needs planning, discussion or investigation

Comments

@pskrbasu
Copy link
Contributor

pskrbasu commented Dec 11, 2024

Create a new dynamic connection eg csv:

connection "csv5" {
  plugin = "csv"
  paths = [ "~/.steampipe/csv/*.csv" ]
}

Run query:

steampipe query "SELECT table_name FROM information_schema.tables WHERE table_schema = 'csv5';"

Returns empty:

+------------+
| table_name |
+------------+
+------------+

Running it the second time returns the results:

+------------+
| table_name |
+------------+
| new22      |
| MyFile     |
| MyFile111  |
| new2 copy  |
| new2       |
+------------+

Weirdly, the information_schema does not have the new created connection details yet, but the connection is ready to be used/queried.

Querying the connection works:

steampipe query "SELECT * from csv5.new2;"
+---+---+---+---+---+---+----------------------------------------------------------------+
| a | b | c | d | e | f | _ctx                                                           |
+---+---+---+---+---+---+----------------------------------------------------------------+
| 1 | 2 | 3 | 4 | 5 | 6 | {"connection_name":"csv5","steampipe":{"sdk_version":"5.8.0"}} |
+---+---+---+---+---+---+----------------------------------------------------------------+
@pskrbasu pskrbasu added bug Something isn't working needs review needs planning, discussion or investigation labels Dec 11, 2024
@pskrbasu pskrbasu changed the title information_schema does not have the dfetails of a newly created connection information_schema does not have the details of a newly created connection Dec 11, 2024
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale No recent activity has been detected on this issue/PR and it will be closed label Feb 10, 2025
@pskrbasu pskrbasu removed the stale No recent activity has been detected on this issue/PR and it will be closed label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review needs planning, discussion or investigation
Projects
None yet
Development

No branches or pull requests

1 participant