-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: cannot store "AS OF SYSTEM TIME" clause in views #50753
Comments
Note: this is a variant of issue #35712. |
cc @ajwerner @RaduBerinde for triage |
I have looked at this before, the way AOST currently is implemented in the execution layer precludes supporting this. We'll need to come up with a better design for the larger issue (#35712). Note that even this case is arguably a mixed-timestamp case: there is a timestamp inside the view, but there is also the (current) timestamp at which we retrieve the view descriptor itself. |
This issue is additionally complicated by the fact that it's challenging to think about interactions with schema changes. |
@ajwerner when we use AOST what we are trying to tell the database is "give us the data but don't lock anything". Records that are current being written, new records during the query, or schema changes we don't care about. These are generally non-critical analytical queries where a bit of variance from the truth is acceptable. |
Understood, my point is that it seems easier to support in generic queries and in |
@ajwerner actually I was sent here by Paul in support, I don't even use or care about views haha. My request was AOST to work across the aboard, not just top level queries. Sub queries, inserts/upserts that contain selects. Etc. Maybe I'm in the wrong ticket. |
#35712 is a general issue for this kind of thing. |
We have marked this issue as stale because it has been inactive for |
Describe the problem
would like to use AOST on reporting side without having to change the application.
To Reproduce
select ycsb_key from usertable as of system time '-1m' limit 1;
Expected behavior
support AOST inside view
Additional data / screenshots
If applicable, add screenshots to help explain your problem.
Environment:
cockroach sql
Additional context
changes are required on every SQL that require the use of AOST
Add any other context about the problem here.
Epic CRDB-9838
gz#5693
Jira issue: CRDB-4093
The text was updated successfully, but these errors were encountered: