-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvements to "from" operator (#5378)
This commit improves the from operator and brings it into closer alignment with SQL. We also deprecated pool, get, and file though they can still be used but appear as "from" when running super compile. Targets of the from operator are now self describing and names are interpreted as files when running locally (super -c) and pools when running on a lake (super db). URLs continue to work in both cases. Const expressions continue to work but now need to be enclosed in brackets, e.g., "from [poolConst]". This makes easy to distinguish a file reference e.g., "from foo.json", from a record deref. e.g., "from [this.pool]" Currently these expressions must evaluate at compile time, but this sets us up to configure "from" to have a parent and make this all dynamic. Note you can also now say 'from ["a.json", "b.json"]', which will do a merge of the scans (not sequential eval). The semantic pass now does existence checks of files and pools so "super compile" tests needed to be updated to "touch" files etc. We will update docs to reflect these changes after we add the parent concept to "from" and have a bit of experience with the new syntax and semantics.
- Loading branch information
Showing
32 changed files
with
3,588 additions
and
3,443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
script: | | ||
! super -I query.zed | ||
! super -I query.spq | ||
inputs: | ||
- name: query.zed | ||
- name: query.spq | ||
data: | | ||
file a.zson | ||
file a.jsup | ||
outputs: | ||
- name: stderr | ||
regexp: | | ||
a.zson: file does not exist | ||
a.jsup: file:///.*/a.jsup: file does not exist.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.