Skip to content

Commit cc183f5

Browse files
committed
Add key info to the merge join plan output
1 parent c50b0aa commit cc183f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/jrd/recsrc/MergeJoin.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ void MergeJoin::internalGetPlan(thread_db* tdbb, PlanEntry& planEntry, unsigned
363363
{
364364
planEntry.className = "MergeJoin";
365365

366-
planEntry.lines.add().text = "Merge Join (inner)";
366+
string extras;
367+
extras.printf(" (keys: %" ULONGFORMAT", total key length: %" ULONGFORMAT")",
368+
m_keys[0]->getCount(), m_args[0]->getKeyLength());
369+
370+
planEntry.lines.add().text = "Merge Join (inner)" + extras;
367371
printOptInfo(planEntry.lines);
368372

369373
if (recurse)

0 commit comments

Comments
 (0)