Conversation
|
This is an automated comment for commit 9c95c47 with description of existing statuses. It's updated for the latest CI running ✅ Click here to open a full report in a separate page Successful checks
|
09378f0 to
df8704c
Compare
|
RMV trigger with version: |
|
Something wrong with version: |
|
I can't quite understand how two and more units in More cases: https://docs.google.com/document/d/1ncSaWYNMzUKkqUWpIoYlsJVQrhVC6fbEPTQhmka8cPQ/edit?usp=sharing |
|
Should the same units be accepted like "EVERY 1 YEAR 2 YEAR"? Now they just being added together. |
5113db3 to
52e42bb
Compare
Fixed, thanks for catching it!
Yeah, it wasn't clear what the user would expect, so I added them together because it's easy and seems natural (since different units are added together). Your comment made it more clear what the user expects :) , so added a check to reject it.
Maybe it was confusing because you tested it on Monday :) . This is the only reasonable-seeming way I could think of to generalize the notion of "start of each hour"/"every Monday"/"1st of every month" etc to ~arbitrary time intervals. Lmk if you have possibly-better ideas.
They're converted to seconds or months and added together. Refresh happens when current time is divisible by that. Added 2 examples in (Unnecessarily long explanation below, feel free to skip.) The desired behavior for I would expect The generalization to SECOND/MINUTE/HOUR/DAY/WEEK (not MONTH/YEAR) is: convert to seconds (say,
For MONTH/YEAR: convert to If you have suggestions for how and which of those things to document, based on what you found confusing - lmk. I'm hoping that the two new examples in |
| void InterpreterCreateQuery::validateMaterializedViewColumnsAndEngine(const ASTCreateQuery & create, const TableProperties & properties, const DatabasePtr & database) | ||
| { | ||
| /// This is not strict validation, just catches common errors that would make the view not work. | ||
| /// It's possible to circumvent these checks by ALTERing the view or target table after creation. |
There was a problem hiding this comment.
Why don't we validate the view on ALTER as well?
There was a problem hiding this comment.
We probably should, I just documented this along the way.
|
Dear @pufit, this PR hasn't been updated for a while. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
|
AST fuzzer - known problem: #56640 |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Refreshable materialized views are now supported in Replicated databases.
Documentation entry for user-facing changes