Report physical input data size in EXPLAIN ANALYZE#14907
Merged
raunaqmorarka merged 1 commit intotrinodb:masterfrom Nov 10, 2022
Merged
Report physical input data size in EXPLAIN ANALYZE#14907raunaqmorarka merged 1 commit intotrinodb:masterfrom
raunaqmorarka merged 1 commit intotrinodb:masterfrom
Conversation
lukasz-stec
reviewed
Nov 7, 2022
core/trino-main/src/main/java/io/trino/sql/planner/planprinter/TextRenderer.java
Outdated
Show resolved
Hide resolved
9937be9 to
cdd2c4b
Compare
cdd2c4b to
4cbdb82
Compare
Member
|
I think the approach here should be similar to #10472 |
Member
I think we want "physical input data size" displayed even if |
Member
Author
|
@raunaqmorarka As @lukasz-stec wrote, connector metrics are displayed only for verbose output, whereas we want to display |
core/trino-main/src/main/java/io/trino/sql/planner/planprinter/PlanNodeStatsSummarizer.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/sql/planner/planprinter/PlanNodeStatsSummarizer.java
Outdated
Show resolved
Hide resolved
core/trino-main/src/main/java/io/trino/sql/planner/planprinter/TextRenderer.java
Outdated
Show resolved
Hide resolved
4cbdb82 to
3fc3ca9
Compare
sopel39
approved these changes
Nov 8, 2022
Member
sopel39
left a comment
There was a problem hiding this comment.
Please add a test (see BaseJdbcConnectorTest#testExplainAnalyzePhysicalReadWallTime)
sopel39
reviewed
Nov 8, 2022
core/trino-main/src/main/java/io/trino/sql/planner/planprinter/HashCollisionPlanNodeStats.java
Outdated
Show resolved
Hide resolved
3fc3ca9 to
4e5ee25
Compare
4e5ee25 to
7218d33
Compare
78d3fc4 to
8802812
Compare
core/trino-main/src/main/java/io/trino/sql/planner/planprinter/PlanPrinter.java
Outdated
Show resolved
Hide resolved
8802812 to
084b0c4
Compare
core/trino-main/src/main/java/io/trino/sql/planner/planprinter/PlanPrinter.java
Outdated
Show resolved
Hide resolved
084b0c4 to
81814fe
Compare
raunaqmorarka
approved these changes
Nov 9, 2022
Example output:
- ScanFilterProject[table = hive:sf1:orders, filterPredicate = ("orderdate" > DATE '1995-01-01')]
Layout: [clerk:varchar(15), $hashvalue_2:bigint]
Estimates: {rows: 1500000 (41.48MB), cpu: 35.76M, memory: 0B, network: 0B}/{rows: 816424 (22.58MB), cpu: 35.76M, memory: 0B, network: 0B}/{rows: 816424 (22.58MB), cpu: 22.58M, memory: 0B, network: 0B}
CPU: 180.00ms (78.95%), Scheduled: 298.00ms (71.46%), Blocked: 0.00ns (0.00%), Output: 818058 rows (12.98MB)
Input avg.: 1500000.00 rows, Input std.dev.: 0.00%
$hashvalue_2 := combine_hash(bigint '0', COALESCE("$operator$hash_code"("clerk"), 0))
clerk := clerk:varchar(15):REGULAR
orderdate := orderdate:date:REGULAR
Input: 1500000 rows (18.17MB), Filtered: 45.46%, Physical Input: 4.51MB
81814fe to
f276cde
Compare
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Additional information about physical data size used by connector to EXPLAIN ANALYZE in connector metrics section.
Example output.
Non-technical explanation
Additional information about physical data size used by connector to EXPLAIN ANALYZE.
Release notes
( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text: