Closed philrz closed 2 days ago
Verified in Zed commit f497079.
Now when an attempt is made to use the load
operator in a Zed program invoked via zq
, an error message is shown.
$ zq -version
Version: v1.16.0-6-gf4970799
$ echo '{"foo": "bar"}' | zq 'load foo' -
load operator cannot be used without a lake at line 1, column 1:
load foo
~~~~~~~~
The load
docs have also been updated to clarify this.
Thanks @mattnibs!
Repro is with Zed commit ab603fa.
As reported in a community Slack thread, attempts to use the
load
operator in a Zed query executed viazq
causes a panic.We know this is an unsupported combination of course, but a helpful error message should surely be shown instead.