Skip to content
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

docs: update sql syntax and options table (part 3) #30689

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

kay-kim
Copy link
Contributor

@kay-kim kay-kim commented Dec 2, 2024

No description provided.

@kay-kim kay-kim requested a review from a team as a code owner December 2, 2024 19:44
@@ -29,21 +29,36 @@ You can use `SUBSCRIBE` to:

## Syntax

{{< diagram "subscribe-stmt.svg" >}}
```mzsql
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I finish up with the SHOW pages, I thought I'd include the SUBSCRIBE as a POC.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

| **WITHIN TIMESTAMP ORDER BY** \<column1\>, ... | If specified, use an `ORDER BY` clause to sort the subscription output within a timestamp. For each `ORDER BY` column, you can optionally specify: <ul><li> `ASC` or `DESC`</li><li> `NULLS FIRST` or `NULLS LAST`</li></ul> For more information, see [Modifying the output format](#modifying-the-output-format). |
| **AS OF** \<timestamp_expression\> | If specified, no rows whose timestamp is earlier than the specified timestamp will be returned. For more information, see [`AS OF`](#as-of). |
| **UP TO** \<timestamp_expression\> | If specified, no rows whose timestamp is greater than or equal to the specified timestamp will be returned. For more information, see [`UP TO`](#up-to). |
| **WITH** \<option_name\> [= \<option_value\>] | If specified, use the specified option. For more information, see [`WITH` options](#with-options). |
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The WITH options on our pages have been treated a bit differently with its own sections, so, in keeping with that, I just listed in the table with all options and then, kept the WITH options section.

Alternatively, I could also go with:

### Options

#### With options

Or, even put the WITH options table from below into the Description here.

@kay-kim kay-kim merged commit 34f0839 into MaterializeInc:main Jan 9, 2025
11 checks passed
@kay-kim kay-kim deleted the docs-sql-syntax-options-part3 branch January 9, 2025 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants