Skip to content

Commit

Permalink
docs: remove variables in where expressions (#8272)
Browse files Browse the repository at this point in the history
Co-authored-by: Confluent Jenkins Bot <[email protected]>
  • Loading branch information
spena and ConfluentJenkins authored Oct 22, 2021
1 parent badaf17 commit 2cb82cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/how-to-guides/substitute-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ INSERT INTO ${streamName} (
'${val2}'
);

SELECT * FROM ${streamName}
WHERE ${colName1} == ${val1} and ${colName2} == '${val2}'
EMIT CHANGES;
SELECT * FROM ${streamName} EMIT CHANGES;
```

Using a variable in a statement that doesn't support variables causes a SQL parsing error.
Expand Down

0 comments on commit 2cb82cd

Please sign in to comment.