You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I was converting examples in #5489, in other cases where there was direct SELECT or yield of static values, I often morphed them into having explicit inputs, such as a null input that would work in this case, or a non-null value referenced as this in the query in other cases. However, this kind of direct SELECT/yield is indeed a convenience for the user so it seems like it would be nice to be able to show in the docs. Furthermore, this specific example seems like one where its original purpose was to show exactly that, so morphing it to have an echo'ed input seems like it would be inappropriate.
At the moment if I try to turn it into an mdtest-spq by just leaving the input portion blank, it doesn't render the result.
So maybe supporting empty input wouldn't be too hard?
If we come up with a way, it'd be ideal if the Playground rendering side can pick up on the empty input as a special case so that way when it creates the command line for the "CLI" tab it can leave out the leading echo .. | portion entirely.
The text was updated successfully, but these errors were encountered:
tl;dr
At the moment, it seems
mdtest-spq
can't support examples that have no input.Details
Here's an example of where this would be useful:
super/docs/commands/super.md
Lines 644 to 650 in 8e86ac0
Currently rendered as:
When I was converting examples in #5489, in other cases where there was direct
SELECT
oryield
of static values, I often morphed them into having explicit inputs, such as anull
input that would work in this case, or a non-null
value referenced asthis
in the query in other cases. However, this kind of directSELECT
/yield
is indeed a convenience for the user so it seems like it would be nice to be able to show in the docs. Furthermore, this specific example seems like one where its original purpose was to show exactly that, so morphing it to have anecho
'ed input seems like it would be inappropriate.At the moment if I try to turn it into an
mdtest-spq
by just leaving the input portion blank, it doesn't render the result.Ideas
mdtest-spq
already supports an empty output portion and this renders fine. See for instance:super/docs/language/functions/grep.md
Lines 48 to 55 in 8e86ac0
So maybe supporting empty input wouldn't be too hard?
If we come up with a way, it'd be ideal if the Playground rendering side can pick up on the empty input as a special case so that way when it creates the command line for the "CLI" tab it can leave out the leading
echo .. |
portion entirely.The text was updated successfully, but these errors were encountered: