You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@impala.apache.org by "Surya Hebbar (Code Review)" <ge...@cloudera.org> on 2025/05/13 15:35:15 UTC
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Surya Hebbar has uploaded this change for review. ( http://gerrit.cloudera.org:8080/22893
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Currently, the missing event timestamps are substituted by zeros
and then reported(i.e. unreported_event_instance_idxs) within
event sequences of the JSON profile. See IMPALA-13555 for more details.
Even with micro/nanosecond precision, some event timestamps are recorded
as zeros (i.e. Prepare Finished - 0ns).
The current implementation of aggregated event sequences was incorrectly
considering these zeros as substituted missing timestamps.
Although, these can be distinguished from missing timestamps through
the exposed 'unreported_event_instance_idxs', it is more helpful
to represent missing values as -ve values or constants(i.e. -1).
This representation is favorable for summary and visualization, and is
necessary for skipping missing values and maintaing alignment between
instance timestamps.
The patch also fixes null values in "info_strings" fields within
the JSON profile.
Fixed runtime-profile-test to consider -ve values(i.e. -1) as missing
event timestamps, instead of 0.
Updated the generated profiles in testdata/impala-profiles.
Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
---
M be/src/util/runtime-profile-test.cc
M be/src/util/runtime-profile.cc
M testdata/impala-profiles/impala_profile_log_tpcds_compute_stats.expected.json
M testdata/impala-profiles/impala_profile_log_tpcds_compute_stats.expected.pretty.json
M testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json
5 files changed, 165 insertions(+), 179 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/22893/1
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 1
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
Patch Set 2: Verified+1
Carry Verified vote from tip of chain.
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 2
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Wed, 14 May 2025 00:21:27 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
Patch Set 2: Code-Review+2
(2 comments)
http://gerrit.cloudera.org:8080/#/c/22893/1/be/src/util/runtime-profile.cc
File be/src/util/runtime-profile.cc:
http://gerrit.cloudera.org:8080/#/c/22893/1/be/src/util/runtime-profile.cc@3046
PS1, Line 3046: st
> Consider creating a constant for this -1 and use it everywhere else.
Done
http://gerrit.cloudera.org:8080/#/c/22893/1/testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json
File testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json:
http://gerrit.cloudera.org:8080/#/c/22893/1/testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json@a2563
PS1, Line 2563:
> RapidJSON was adding another "info_strings" field instead of replacing the
Ack
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 2
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 13 May 2025 16:35:23 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Surya Hebbar (Code Review)" <ge...@cloudera.org>.
Surya Hebbar has posted comments on this change. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
Patch Set 2:
> I have rebased and have updated this on top of IMPALA-13624 in a relation chaing.
I mean this IMPALA-14069 as IMPALA-13624^1
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 2
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 13 May 2025 16:41:47 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Surya Hebbar (Code Review)" <ge...@cloudera.org>.
Surya Hebbar has uploaded a new patch set (#2). ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Currently, the missing event timestamps are substituted by zeros
and then reported(i.e. unreported_event_instance_idxs) within
event sequences of the JSON profile. See IMPALA-13555 for more details.
Even with micro/nanosecond precision, some event timestamps are recorded
as zeros (i.e. Prepare Finished - 0ns).
The current implementation of aggregated event sequences was incorrectly
considering these zeros as substituted missing timestamps.
Although, these can be distinguished from missing timestamps through
the exposed 'unreported_event_instance_idxs', it is more helpful
to represent missing values as -ve values or constants(i.e. -1).
This representation is favorable for summary and visualization, and is
necessary for skipping missing values and maintaing alignment between
instance timestamps.
The patch also fixes null values in "info_strings" fields within
the JSON profile.
Fixed runtime-profile-test to consider -ve values(i.e. -1) as missing
event timestamps, instead of 0.
Updated the generated profiles in testdata/impala-profiles.
Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
---
M be/src/util/runtime-profile-test.cc
M be/src/util/runtime-profile.cc
M testdata/impala-profiles/impala_profile_log_tpcds_compute_stats.expected.json
M testdata/impala-profiles/impala_profile_log_tpcds_compute_stats.expected.pretty.json
M testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json
5 files changed, 166 insertions(+), 179 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/93/22893/2
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 2
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Surya Hebbar (Code Review)" <ge...@cloudera.org>.
Surya Hebbar has posted comments on this change. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
Patch Set 2:
Thanks a lot for recognizing this, it seems we had missed it in JSON profile, better that this was found through text profile. Thank you again.
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 2
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 13 May 2025 16:44:49 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has posted comments on this change. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
Patch Set 1:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/22893/1/be/src/util/runtime-profile.cc
File be/src/util/runtime-profile.cc:
http://gerrit.cloudera.org:8080/#/c/22893/1/be/src/util/runtime-profile.cc@3046
PS1, Line 3046: -1
Consider creating a constant for this -1 and use it everywhere else.
const int64_t MISSING_TIMESTAMP = -1;
http://gerrit.cloudera.org:8080/#/c/22893/1/testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json
File testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json:
http://gerrit.cloudera.org:8080/#/c/22893/1/testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json@a2563
PS1, Line 2563:
Was this a bug?
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 1
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Tue, 13 May 2025 15:50:26 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
Patch Set 1:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/19187/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 1
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Comment-Date: Tue, 13 May 2025 16:01:50 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Surya Hebbar (Code Review)" <ge...@cloudera.org>.
Surya Hebbar has posted comments on this change. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
Patch Set 2:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/22893/1/be/src/util/runtime-profile.cc
File be/src/util/runtime-profile.cc:
http://gerrit.cloudera.org:8080/#/c/22893/1/be/src/util/runtime-profile.cc@3046
PS1, Line 3046: st
> Consider creating a constant for this -1 and use it everywhere else.
Done
http://gerrit.cloudera.org:8080/#/c/22893/1/testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json
File testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json:
http://gerrit.cloudera.org:8080/#/c/22893/1/testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json@a2563
PS1, Line 2563:
> Was this a bug?
RapidJSON was adding another "info_strings" field instead of replacing the existing one.
JSON.parse and almost all implementations of JSON parsing replace two mentions of same key with the last and latest value, so this won't cause problems even if left as is.
But, it is better to correct it.
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 2
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 13 May 2025 16:33:33 +0000
Gerrit-HasComments: Yes
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Surya Hebbar (Code Review)" <ge...@cloudera.org>.
Surya Hebbar has posted comments on this change. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
Patch Set 2:
I have rebased and have updated this on top of IMPALA-13624 in a relation chaing.
The build has been scheduled with these new outputs and correct tests.
https://gerrit.cloudera.org/c/22245/
IMPALA-13624: Implement textual representation for aggregate event sequences
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 2
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 13 May 2025 16:39:44 +0000
Gerrit-HasComments: No
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Riza Suminto (Code Review)" <ge...@cloudera.org>.
Riza Suminto has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Currently, the missing event timestamps are substituted by zeros
and then reported(i.e. unreported_event_instance_idxs) within
event sequences of the JSON profile. See IMPALA-13555 for more details.
Even with micro/nanosecond precision, some event timestamps are recorded
as zeros (i.e. Prepare Finished - 0ns).
The current implementation of aggregated event sequences was incorrectly
considering these zeros as substituted missing timestamps.
Although, these can be distinguished from missing timestamps through
the exposed 'unreported_event_instance_idxs', it is more helpful
to represent missing values as -ve values or constants(i.e. -1).
This representation is favorable for summary and visualization, and is
necessary for skipping missing values and maintaing alignment between
instance timestamps.
The patch also fixes null values in "info_strings" fields within
the JSON profile.
Fixed runtime-profile-test to consider -ve values(i.e. -1) as missing
event timestamps, instead of 0.
Updated the generated profiles in testdata/impala-profiles.
Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Reviewed-on: http://gerrit.cloudera.org:8080/22893
Reviewed-by: Riza Suminto <ri...@cloudera.com>
Tested-by: Riza Suminto <ri...@cloudera.com>
---
M be/src/util/runtime-profile-test.cc
M be/src/util/runtime-profile.cc
M testdata/impala-profiles/impala_profile_log_tpcds_compute_stats.expected.json
M testdata/impala-profiles/impala_profile_log_tpcds_compute_stats.expected.pretty.json
M testdata/impala-profiles/impala_profile_log_tpcds_compute_stats_extended.expected.pretty.json
5 files changed, 166 insertions(+), 179 deletions(-)
Approvals:
Riza Suminto: Looks good to me, approved; Verified
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 3
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
[Impala-ASF-CR] IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
Posted by "Impala Public Jenkins (Code Review)" <ge...@cloudera.org>.
Impala Public Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/22893 )
Change subject: IMPALA-14069: Factor possibility of zero timestamps in aggregated event sequences
......................................................................
Patch Set 2:
Build Successful
https://jenkins.impala.io/job/gerrit-code-review-checks/19188/ : Initial code review checks passed. Use gerrit-verify-dryrun-external or gerrit-verify-dryrun to run full precommit tests.
--
To view, visit http://gerrit.cloudera.org:8080/22893
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I9f1efd2aad5f62084075cd8f9169ef72c66942b6
Gerrit-Change-Number: 22893
Gerrit-PatchSet: 2
Gerrit-Owner: Surya Hebbar <sh...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <im...@cloudera.com>
Gerrit-Reviewer: Riza Suminto <ri...@cloudera.com>
Gerrit-Reviewer: Surya Hebbar <sh...@cloudera.com>
Gerrit-Comment-Date: Tue, 13 May 2025 17:00:00 +0000
Gerrit-HasComments: No