-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
95179: changefeedccl: Add `changefeed_creation_timestamp` function r=miretskiy a=miretskiy Add `changefeed_create_timestamp` function, which returns changefeed creation timestamp. Changefeed transformations restrict access to some of the standard functions, including `now()`. Without such function, it is difficult to express changefeeds that want to emit events restricted by time. This function makes it possible to do this. For example, to create a changefeed that emits events from the `accounts` table that `last_withdrawal` happen starting 12 hours ago, one could do: ``` CREATE CHANGEFEED ... AS SELECT * FROM accounts WHERE last_withdrawal > changefeed_create_timestamp() - interval '12 hours' ``` Epic: CRDB-17161 Release note (enterprise change): Changefeed expressions support `changefeed_create_timestamp` function. 95693: ui: fixes uri encoding for sql identifiers r=j82w a=j82w The database, table, and index names were not properly escaped which causes the request to fail if it has a special character. The endpoint does not support names with /. This will not be an issue since all ui is being converted to sql-over-http. part of: #94328 <img width="1016" alt="Screen Shot 2023-01-23 at 2 48 16 PM" src="https://user-images.githubusercontent.com/8868107/214447103-9a2afe69-9f1e-4bc0-9587-3f888092c547.png"> <img width="1536" alt="Screen Shot 2023-01-23 at 2 48 35 PM" src="https://user-images.githubusercontent.com/8868107/214447118-dbdeb1d7-ddbe-4cc0-b46e-d90fa4c4a61b.png"> <img width="1245" alt="Screen Shot 2023-01-23 at 2 48 52 PM" src="https://user-images.githubusercontent.com/8868107/214447178-7d1cc412-640b-4e3a-962f-173c2b2fade9.png"> Release note: none 96253: sql: explain create function op r=msirek,mgartner a=rharding6373 `EXPLAIN CREATE FUNCTION ...` now emits some output instead of failing. Fixes #96046 Epic: none Release note: none Co-authored-by: Yevgeniy Miretskiy <[email protected]> Co-authored-by: j82w <[email protected]> Co-authored-by: rharding6373 <[email protected]>
- Loading branch information
Showing
15 changed files
with
330 additions
and
148 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
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
Oops, something went wrong.