-
Notifications
You must be signed in to change notification settings - Fork 136
Use zed query/describe endpoint #3076
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
Conversation
4dc17e0 to
9713b4b
Compare
a659f08 to
b793fe7
Compare
b793fe7 to
fe70154
Compare
This comment was marked as resolved.
This comment was marked as resolved.
|
This is effectively a note-to-self but I'll record it here in case anyone else has the same question upon reviewing these changes (cc: @jameskerr). In the ztest in brimdata/super#5126 I noticed that the |
9b7479f to
abc397c
Compare
773b41a to
ae6b433
Compare
This commit uses the Zed service query/describe endpoint to describe to contents of a given Zed query- replacing the use of the compile endpoint and the Zed-ast library for this purpose.
ae6b433 to
3b4ce88
Compare
nwt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks good!
| const {poolName, error} = info | ||
| const pool = this.select(Pools.getByName(lakeId, poolName)) | ||
|
|
||
| if (info.error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix this.
| } | ||
|
|
||
| if (!error && history.action === "PUSH") { | ||
| if (history.action === "PUSH") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix this too
| async compile( | ||
| async describeQuery( | ||
| query: string, | ||
| pool?: string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to options
This commit uses the Zed service query/describe endpoint to describe to contents of a given Zed query- replacing the use of the compile endpoint and the Zed-ast library for this purpose.
Fixes #3079