-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Add example for using --exec
#425
Conversation
See also #380. |
e8db30b
to
31f2cab
Compare
@miguno can you raise this against the 4.0.x branch? |
@dguy : I want to also raise against 4.0.x, but this should also go into the latest Dev Preview (0.1.x), no? |
docs/examples.md
Outdated
|
||
## Running KSQL | ||
|
||
KSQL support various [modes of operation](concepts.md#modes-of-operation), including a standalone mode and a |
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.
KSQL supports...
docs/examples.md
Outdated
|
||
Additionally, you can also instruct KSQL to execute a single statement from the command line. | ||
|
||
Example: |
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'd move this text before the example, and consolidate a few things:
The following example runs a SELECT statement until 5 records have been found and then the results are shown in the terminal.
```shell | ||
$ ksql-cli local --exec "SELECT * FROM pageviews LIMIT 5;" | ||
``` | ||
|
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.
can we add an example of the expected output?
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.
Not needed here IMHO.
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.
@miguno because it's self-explanatory, or?
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.
Because it doesn't add anything to the answer. The question we want to answer is "how to run a single statement". The actual KSQL query as well as its output is irrelevant IMHO.
No description provided.