Skip to content

Commit c50b0aa

Browse files
committed
Add key info to the hash join plan output
1 parent e1ffa20 commit c50b0aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/jrd/recsrc/HashJoin.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,11 @@ void HashJoin::internalGetPlan(thread_db* tdbb, PlanEntry& planEntry, unsigned l
481481
{
482482
planEntry.className = "HashJoin";
483483

484-
planEntry.lines.add().text = "Hash Join (inner)";
484+
string extras;
485+
extras.printf(" (keys: %" ULONGFORMAT", total key length: %" ULONGFORMAT")",
486+
m_leader.keys->getCount(), m_leader.totalKeyLength);
487+
488+
planEntry.lines.add().text = "Hash Join (inner)" + extras;
485489
printOptInfo(planEntry.lines);
486490

487491
if (recurse)

0 commit comments

Comments
 (0)