-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into tab/telemetry-event
- Loading branch information
Showing
122 changed files
with
3,675 additions
and
902 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,59 @@ | ||
# Set the license key to a free tier key. | ||
statement ok | ||
ALTER SYSTEM SET license_key TO 'eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJydy10ZXN0IiwidGllciI6ImZyZWUiLCJpc3MiOiJ0ZXN0LnJpc2luZ3dhdmUuY29tIiwiZXhwIjo5OTk5OTk5OTk5fQ.ALC3Kc9LI6u0S-jeMB1YTxg1k8Azxwvc750ihuSZgjA_e1OJC9moxMvpLrHdLZDzCXHjBYi0XJ_1lowmuO_0iPEuPqN5AFpDV1ywmzJvGmMCMtw3A2wuN7hhem9OsWbwe6lzdwrefZLipyo4GZtIkg5ZdwGuHzm33zsM-X5gl_Ns4P6axHKiorNSR6nTAyA6B32YVET_FAM2YJQrXqpwA61wn1XLfarZqpdIQyJ5cgyiC33BFBlUL3lcRXLMLeYe6TjYGeV4K63qARCjM9yeOlsRbbW5ViWeGtR2Yf18pN8ysPXdbaXm_P_IVhl3jCTDJt9ctPh6pUCbkt36FZqO9A'; | ||
|
||
query error | ||
SELECT rw_test_paid_tier(); | ||
---- | ||
db error: ERROR: Failed to run the query | ||
|
||
Caused by these errors (recent errors listed first): | ||
1: Expr error | ||
2: error while evaluating expression `test_paid_tier()` | ||
3: feature TestPaid is only available for tier Paid and above, while the current tier is Free | ||
|
||
Hint: You may want to set a license key with `ALTER SYSTEM SET license_key = '...';` command. | ||
|
||
|
||
# Set the license key to an invalid key. | ||
statement ok | ||
ALTER SYSTEM SET license_key TO 'invalid'; | ||
|
||
query error | ||
SELECT rw_test_paid_tier(); | ||
---- | ||
db error: ERROR: Failed to run the query | ||
|
||
Caused by these errors (recent errors listed first): | ||
1: Expr error | ||
2: error while evaluating expression `test_paid_tier()` | ||
3: feature TestPaid is not available due to license error | ||
4: invalid license key | ||
5: InvalidToken | ||
|
||
|
||
# Set the license key to empty. This demonstrates the default behavior in production, i.e., free tier. | ||
statement ok | ||
ALTER SYSTEM SET license_key TO ''; | ||
|
||
query error | ||
SELECT rw_test_paid_tier(); | ||
---- | ||
db error: ERROR: Failed to run the query | ||
|
||
Caused by these errors (recent errors listed first): | ||
1: Expr error | ||
2: error while evaluating expression `test_paid_tier()` | ||
3: feature TestPaid is only available for tier Paid and above, while the current tier is Free | ||
|
||
Hint: You may want to set a license key with `ALTER SYSTEM SET license_key = '...';` command. | ||
|
||
|
||
# Set the license key to default. In debug mode, this will set the license key to a paid tier key. | ||
statement ok | ||
ALTER SYSTEM SET license_key TO DEFAULT; | ||
|
||
query T | ||
SELECT rw_test_paid_tier(); | ||
---- | ||
t |
Oops, something went wrong.