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

Query Result Table is deleted when is empty #7188

Open
jesus-hergueta opened this issue Oct 10, 2024 · 0 comments
Open

Query Result Table is deleted when is empty #7188

jesus-hergueta opened this issue Oct 10, 2024 · 0 comments

Comments

@jesus-hergueta
Copy link

Issue Summary

When a query returns 0 rows the query result table is deleted and is not possible to use it in another queries, giving this error:

Error running query: Error creating table query_28: near ")": syntax error.

If I run this: SELECT name FROM sqlite_master WHERE type='table' AND name='query_28'; gives 0 rows, the table does not exists.

Steps to Reproduce

  1. Create a Query, that returns data (Data Source: JSON API)
  2. Make the Query return 0 rows.
  3. Try to consume the Query anywhere else using Query Results as source.

In my opinion the table should exists while the query does, emptiness is not a real reason to delete the table.

Technical details:

  • Redash Version:
  • Browser/OS: Chrome 129.0.6668.90
  • How did you install Redash: I'm running Redash in Docker Compose hosted in a EC2 machine.
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