Skip to content
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

CORE-13119 Add resumePoint Avro field to support stable query paging #1229

Merged
merged 3 commits into from
Sep 19, 2023

Conversation

relyafi
Copy link
Contributor

@relyafi relyafi commented Aug 30, 2023

This is a pre-requisite change to enable a resumePoint field to be passed back and forth between ledger custom queries initiated in a flow processor and the query execution logic in a ledger persistence processor.

See corda/corda-runtime-os#4548 for full details of the changes.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title failed to match regex -> ^((CORDA|EG|ENT|INFRA|CORE|DOC|ES)-\d+)(.*)

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title failed to match regex -> ^((CORDA|EG|ENT|INFRA|CORE|DOC|ES)-\d+)(.*)

@relyafi relyafi changed the title Introduce sequence_num primary key on utxo_visible_transaction_states CORE-13119 Introduce sequence_num primary key on utxo_visible_transaction_states Aug 30, 2023
@github-actions github-actions bot dismissed stale reviews from themself August 30, 2023 13:08

All good!

@relyafi relyafi force-pushed the ramzi/core-13119/custom-query-stable-paging branch from d0cfa15 to 6399a7b Compare September 12, 2023 13:01
@relyafi relyafi changed the title CORE-13119 Introduce sequence_num primary key on utxo_visible_transaction_states CORE-13119 Add resumePoint Avro field to support stable query paging Sep 12, 2023
@corda-jenkins-ci02
Copy link
Contributor

corda-jenkins-ci02 bot commented Sep 12, 2023

Jenkins build for PR 1229 build 4

Build Successful:
Jar artifact version produced by this PR: 5.1.0.20-alpha-1695115617201

@relyafi relyafi marked this pull request as ready for review September 13, 2023 07:59
@relyafi relyafi requested a review from a team as a code owner September 13, 2023 07:59
Copy link
Contributor

@blsemo blsemo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

{
"name": "resumePoint",
"doc": "Used by queries that support stable paging to return opaque data that indicates where the next page should resume from",
"type": ["null", "bytes"],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this a byte array rather than a structured type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to be opinionated on the contents of the field, it could vary from query to query - the data is opaque from the perspective of the interface.

@relyafi relyafi merged commit 384de25 into release/os/5.1 Sep 19, 2023
@relyafi relyafi deleted the ramzi/core-13119/custom-query-stable-paging branch September 19, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants