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

addressing previous comments in metrics in explain #3124

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

normen662
Copy link
Contributor

No description provided.

final long expectedMetric = (long)expected.getField(fieldDescriptor);
final long actualMetric = (long)actual.getField(fieldDescriptor);
if (expectedMetric != actualMetric) {
logger.warn("‼️ metric {} differs; lineNumber = {}; expected = {}; actual = {}",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason this isn't using a KeyValueLogMessage?

@@ -3,9 +3,9 @@ agg-index-tests-count-empty:
explain: 'AISCAN(MV1 <,> BY_GROUP -> [_0: VALUE:[0]]) | MAP (_ AS _0) | ON EMPTY
NULL | MAP (coalesce_long(_._0._0, promote(0l AS LONG)) AS _0)'
task_count: 434
task_total_time_ms: 13
task_total_time_ms: 19
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this PR need to update all of the checked in metrics? It we can avoid doing it, it would be nice just to avoid churn on these files if it's not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes -- there was a mistake int the previous PR that it also kept metrics for explainContains: which causes problems for downstream tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So I am recreating all metrics here since I don't want any of the explainContains: metrics to be kept at all.

@alecgrieser alecgrieser merged commit 8f1fd74 into FoundationDB:main Feb 10, 2025
1 check passed
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.

2 participants