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 execution interface #48

Merged
merged 19 commits into from
Dec 22, 2024

Conversation

wangpatrick57
Copy link
Member

@wangpatrick57 wangpatrick57 commented Nov 14, 2024

Summary: Added query execution interface in env/.

Demo:
A passing unit test.
Screenshot 2024-12-21 at 12 38 33

Details:

  • The specific interface is the time_query() function in PostgresConn.
  • I chose to have a per-query interface instead of a per-workload interface because different agents might have different ways of executing the queries of an OLAP workload. For example, Proto-X executes multiple "variations" of each query when executing a workload. A future agent might also only execute a subset of queries in a workload.
  • The interface allows you to specify per-query knobs and a timeout. It returns the runtime but not the results of the query. The reason it does not return the results is so that it's compatible with Boot (which estimates the runtime but not the results).

@wangpatrick57 wangpatrick57 marked this pull request as ready for review November 14, 2024 00:56
@wangpatrick57 wangpatrick57 changed the title draft PR for CI (workload-factoring) Query execution interface Dec 21, 2024
@wangpatrick57 wangpatrick57 merged commit b066913 into cmu-db:main Dec 22, 2024
1 check passed
@wangpatrick57 wangpatrick57 deleted the workload-factoring branch December 23, 2024 01:23
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

Successfully merging this pull request may close these issues.

2 participants