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

[CLI] Improve UX for analysis and debugging purposes #144

Open
amotl opened this issue May 7, 2024 · 1 comment
Open

[CLI] Improve UX for analysis and debugging purposes #144

amotl opened this issue May 7, 2024 · 1 comment

Comments

@amotl
Copy link
Member

amotl commented May 7, 2024

About

GH-88 mostly revolves around queries to leverage information from CrateDB's internal sys.* tables. On a subsequent iteration, corresponding WTF-like tooling to support analysis and debugging purposes would also be helpful.

References

@amotl
Copy link
Member Author

amotl commented May 7, 2024

Support for EXPLAIN ANALYSE

The idea, in form of a synopsis, would be to run an EXPLAIN ANALYSE on a specific query before invoking it, and presenting the user relevant information parsed from its response in a more appealing way, also eventually highlighting possible flaws or caveats about it.

export CRATEDB_EXPLAIN=true
ctk query "SELECT * FROM foo WHERE ..."

On STDERR, before invoking the query, there could be an informative message like INFO: The query at hand will touch N partitions..

Later, with more information conveyed through EXPLAIN ANALYSE, the STDERR micro report could be expanded like INFO: The query at hand will touch partitions X, Y, Z, located on shards A, B, and C.

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