Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions prompt/prompt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ CREATE RANDOM STREAM test_generate(
location string default generate('city', rand())
)


Copy link
Contributor

Choose a reason for hiding this comment

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

lets have two prompt
one use generate
and one does not use it

WARNING: The `generate()` function is not supported in Timeplus currently.

Do NOT use `generate('type', rand())`. Use alternatives like `array_element()` or `random_printable_ascii()` instead.


### Essential Patterns
1. Conditional Logic (Use multi_if, NOT CASE WHEN)
sqlfield_name type DEFAULT multi_if(
Expand Down