-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: none-shared source to secret dependence (#19263)
Signed-off-by: tabversion <[email protected]> Co-authored-by: tabversion <[email protected]>
- Loading branch information
1 parent
0f78e6a
commit a945f52
Showing
3 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Note: control substitution on will force us to use "\n" instead of "\n" in commands | ||
control substitution on | ||
|
||
# for non-shared source | ||
statement ok | ||
set streaming_use_shared_source to false; | ||
|
||
system ok | ||
rpk topic create test_secret_ref -p 3 | ||
|
||
statement ok | ||
CREATE SECRET sec WITH (backend = 'meta') AS 'test_secret_ref'; | ||
|
||
statement ok | ||
CREATE SOURCE s(x varchar) | ||
WITH( | ||
${RISEDEV_KAFKA_WITH_OPTIONS_COMMON}, | ||
topic = secret sec, | ||
scan.startup.mode = 'earliest', | ||
) FORMAT PLAIN ENCODE JSON; | ||
|
||
statement error | ||
DROP SECRET sec; | ||
|
||
statement ok | ||
DROP SOURCE s; | ||
|
||
statement ok | ||
DROP SECRET sec; | ||
|
||
statement ok | ||
set streaming_use_shared_source to true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters