Skip to content

Commit

Permalink
Merge pull request #425 from confluentinc/0.1.x-exec-docs
Browse files Browse the repository at this point in the history
Add example for using `--exec`
  • Loading branch information
miguno authored Oct 30, 2017
2 parents d6acef8 + e1b2b46 commit 8020df0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
- [Aggregating, windowing, and sessionization](#aggregating)
- [Working with arrays and maps](#working-with-arrays-and-maps)
- [Configuring KSQL](#configuring-ksql)
- [Running KSQL](#running-ksql)


## Overview

Expand Down Expand Up @@ -301,3 +303,18 @@ Common configuration properties that you might want to change from their default

- [cache.max.bytes.buffering](https://kafka.apache.org/documentation/#streamsconfigs):
The default value in KSQL is `10000000` (~ 10 MB);


## Running KSQL

KSQL supports various [modes of operation](concepts.md#modes-of-operation), including a standalone mode and a
client-server mode.

Additionally, you can also instruct KSQL to execute a single statement from the command line.
The following example command runs the given `SELECT` statement and show the results in the terminal. In this
particular case, the query will run until 5 records have been found, and then terminate.

```shell
$ ksql-cli local --exec "SELECT * FROM pageviews LIMIT 5;"
```

0 comments on commit 8020df0

Please sign in to comment.