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

sql: fix JSON deserialization for sql stats lastExecAt field #70281

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

Azhng
Copy link
Contributor

@Azhng Azhng commented Sep 15, 2021

Previsouly, lastExecAt field for roachpb.CollectedStatementStatistics
was not properly updated. This caused the status API to return
empty data for that field.
This commit fixes the deserialization and extended the randomize
testing framework to also test time.Time type.

Partially Resolves #69675

Release Justification: Bug fixes and low-risk updates to new
functionality

Release note (bug fix): Last Execution Timestamp is now properly
updating.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@Azhng Azhng requested a review from a team September 15, 2021 21:01
Copy link
Member

@xinhaoz xinhaoz left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@Azhng Azhng force-pushed the sqlstats-last-exec branch 2 times, most recently from 4e0e5c8 to 75d806b Compare September 15, 2021 21:10
Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (and 1 stale) (waiting on @Azhng)

Previsouly, lastExecAt field for roachpb.CollectedStatementStatistics
was not properly updated. This caused the status API to return
empty data for that field.
This commit fixes the deserialization and extended the randomize
testing framework to also test time.Time type.

Partially Resolves cockroachdb#69675

Release Justification: Bug fixes and low-risk updates to new
functionality

Release note (bug fix): Last Execution Timestamp is now properly
updating.
@Azhng Azhng force-pushed the sqlstats-last-exec branch from 75d806b to 4d0c386 Compare September 15, 2021 21:38
@Azhng
Copy link
Contributor Author

Azhng commented Sep 15, 2021

TFTR!

bors r=maryliag,xinhaoz

@craig
Copy link
Contributor

craig bot commented Sep 15, 2021

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Sep 16, 2021

Build succeeded:

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.

ui: Invalid or missing fields on statements page
4 participants